]> git.sesse.net Git - ffmpeg/commitdiff
FATE/dnn: fix stack buffer overflow
authorZhao Zhili <zhilizhao@tencent.com>
Tue, 1 Oct 2019 06:36:49 +0000 (14:36 +0800)
committerPedro Arthur <bygrandao@gmail.com>
Fri, 4 Oct 2019 12:58:22 +0000 (09:58 -0300)
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
tests/dnn/dnn-layer-pad-test.c

index 1fb2be15900f4066e6425902306b7dceae8c40fe..ea8c824d1e9c006cf3bbd700264a282924517e1a 100644 (file)
@@ -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;