[FFmpeg-cvslog] avcodec/tests/rangecoder: initialize array to avoid valgrind warning

Michael Niedermayer git at videolan.org
Mon Jan 21 13:21:04 EET 2019


ffmpeg | branch: release/4.1 | Michael Niedermayer <michael at niedermayer.cc> | Fri Jan  4 02:46:29 2019 +0100| [3a52cae2c70a8409c96f4df63dff85dd5460d8bc] | committer: Michael Niedermayer

avcodec/tests/rangecoder: initialize array to avoid valgrind warning

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit c15972f0af7679b466dd4a10a54ab2f04f9372c8)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/tests/rangecoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tests/rangecoder.c b/libavcodec/tests/rangecoder.c
index 2da5c0ce33..3a8ba6759c 100644
--- a/libavcodec/tests/rangecoder.c
+++ b/libavcodec/tests/rangecoder.c
@@ -29,7 +29,7 @@
 int main(void)
 {
     RangeCoder c;
-    uint8_t b[9 * SIZE];
+    uint8_t b[9 * SIZE] = {0};
     uint8_t r[9 * SIZE];
     int i;
     uint8_t state[10];



More information about the ffmpeg-cvslog mailing list