[FFmpeg-cvslog] FATE/dnn: fix stack buffer overflow

Zhao Zhili git at videolan.org
Fri Oct 4 16:06:43 EEST 2019


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Tue Oct  1 14:36:49 2019 +0800| [7c145b64417fbe674f90785d2e5a5afea1a1b821] | committer: Pedro Arthur

FATE/dnn: fix stack buffer overflow

Signed-off-by: Pedro Arthur <bygrandao at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c145b64417fbe674f90785d2e5a5afea1a1b821
---

 tests/dnn/dnn-layer-pad-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dnn/dnn-layer-pad-test.c b/tests/dnn/dnn-layer-pad-test.c
index 1fb2be1590..ea8c824d1e 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;



More information about the ffmpeg-cvslog mailing list