History

tests/checkasm/sw_rgb: increase plane array buffers

Fixes stack-buffer-overflow errors running under asan.

James Almer committed 1 year ago

Commit 7a16bfa1 parent 8f4819c1 file · +9 −9Browse files

Unified · Split

tests/checkasm/sw_rgb.c+9−9
@@ -549,21 +549,21 @@ static void check_yuv2packed1(void) · 548 unmodified lines
549549 const int16_t *chrv[2];
550550 const int16_t *alpha;
551551
552− LOCAL_ALIGNED_8(int32_t, src_y, [INPUT_SIZE]);
553− LOCAL_ALIGNED_8(int32_t, src_u, [INPUT_SIZE]);
554− LOCAL_ALIGNED_8(int32_t, src_v, [INPUT_SIZE]);
555− LOCAL_ALIGNED_8(int32_t, src_a, [INPUT_SIZE]);
552+ LOCAL_ALIGNED_8(int32_t, src_y, [2 * INPUT_SIZE]);
553+ LOCAL_ALIGNED_8(int32_t, src_u, [2 * INPUT_SIZE]);
554+ LOCAL_ALIGNED_8(int32_t, src_v, [2 * INPUT_SIZE]);
555+ LOCAL_ALIGNED_8(int32_t, src_a, [2 * INPUT_SIZE]);
556556
557557 LOCAL_ALIGNED_8(uint8_t, dst0, [INPUT_SIZE * sizeof(int32_t[4])]);
558558 LOCAL_ALIGNED_8(uint8_t, dst1, [INPUT_SIZE * sizeof(int32_t[4])]);
559559
560− randomize_buffers((uint8_t*)src_y, INPUT_SIZE * sizeof(int32_t));
561− randomize_buffers((uint8_t*)src_u, INPUT_SIZE * sizeof(int32_t));
562− randomize_buffers((uint8_t*)src_v, INPUT_SIZE * sizeof(int32_t));
563− randomize_buffers((uint8_t*)src_a, INPUT_SIZE * sizeof(int32_t));
560+ randomize_buffers((uint8_t*)src_y, 2 * INPUT_SIZE * sizeof(int32_t));
561+ randomize_buffers((uint8_t*)src_u, 2 * INPUT_SIZE * sizeof(int32_t));
562+ randomize_buffers((uint8_t*)src_v, 2 * INPUT_SIZE * sizeof(int32_t));
563+ randomize_buffers((uint8_t*)src_a, 2 * INPUT_SIZE * sizeof(int32_t));
564564
565565 /* Limit to 14 bit input range */
566− for (int i = 0; i < INPUT_SIZE; i++) {
566+ for (int i = 0; i < 2 * INPUT_SIZE; i++) {
567567 src_y[i] &= 0x3FFF3FFF;
568568 src_a[i] &= 0x3FFF3FFF;
569569 src_u[i] &= 0x3FFF3FFF;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t