crosvm/media
Daniel Verkamp 147b0fe6c2 media: ffmpeg: fix undefined behavior in test_avpacket_drop
The AvBufferSource pointer gets converted into a Rust slice, so it is
not valid to use a null pointer (even though the length is 0). Return a
valid pointer derived from an empty slice instead.

BUG=b:365852007

Change-Id: I12930c98241d2d711826c577ae23944ec8d5d93b
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6013082
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-11-13 00:12:14 +00:00
..
ffmpeg media: ffmpeg: fix undefined behavior in test_avpacket_drop 2024-11-13 00:12:14 +00:00
libvda Rebuild testvm and devcontainer 2024-06-11 22:24:48 +00:00