forked from FFmpeg/FFmpeg
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue