[FFmpeg-devel] [PATCH] avcodec/tests/rangecoder: initialize array to avoid valgrind warning
Steven Liu
lingjiujianke at gmail.com
Fri Jan 4 11:19:21 EET 2019
Michael Niedermayer <michael at niedermayer.cc> 于2019年1月4日周五 上午9:48写道:
>
> Found-by: jamrial
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> 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 b6edc1493f..d6cf9ec380 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};
Hi Michael,
> uint8_t r[9 * SIZE];
Why don't initial variable too?
> int i, p, actual_length, version;
> uint8_t state[10];
> --
> 2.20.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list