summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2019-10-01 14:36:49 +0800
committerPedro Arthur <bygrandao@gmail.com>2019-10-04 09:58:22 -0300
commit7c145b64417fbe674f90785d2e5a5afea1a1b821 (patch)
tree591a1e41fa6e2a0bbdcc3c35271feca0c9cc5ff8 /tests
parente6625ca41f85ed10b3108d37bd897f0ae063250e (diff)
downloadffmpeg-streaming-7c145b64417fbe674f90785d2e5a5afea1a1b821.zip
ffmpeg-streaming-7c145b64417fbe674f90785d2e5a5afea1a1b821.tar.gz
FATE/dnn: fix stack buffer overflow
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/dnn/dnn-layer-pad-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dnn/dnn-layer-pad-test.c b/tests/dnn/dnn-layer-pad-test.c
index 1fb2be1..ea8c824 100644
--- a/tests/dnn/dnn-layer-pad-test.c
+++ b/tests/dnn/dnn-layer-pad-test.c
@@ -203,7 +203,7 @@ static int test_with_mode_constant(void)
params.paddings[3][1] = 2;
operands[0].data = input;
- operands[0].dims[0] = 3;
+ operands[0].dims[0] = 1;
operands[0].dims[1] = 2;
operands[0].dims[2] = 2;
operands[0].dims[3] = 3;
OpenPOWER on IntegriCloud