mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 02:19:35 +00:00
tests/checkasm/sw_rgb: don't write random data past the end of the buffer
Should fix fate-checkasm-sw_rgb under gcc-ubsan. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
This commit is contained in:
parent
d2ed52dc02
commit
e1d1ba4cbc
@ -287,7 +287,7 @@ static void check_deinterleave_bytes(void)
|
||||
int width, int height, int srcStride,
|
||||
int dst1Stride, int dst2Stride);
|
||||
|
||||
randomize_buffers(src, 2*MAX_STRIDE*MAX_HEIGHT+2);
|
||||
randomize_buffers(src, 2*MAX_STRIDE*MAX_HEIGHT);
|
||||
|
||||
if (check_func(deinterleaveBytes, "deinterleave_bytes")) {
|
||||
for (int i = 0; i <= 16; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user