[FFmpeg-devel] [PATCH] avcodec/tests/rangecoder: initialize array to avoid valgrind warning
Michael Niedermayer
michael at niedermayer.cc
Fri Jan 4 16:59:57 EET 2019
On Fri, Jan 04, 2019 at 05:19:21PM +0800, Steven Liu wrote:
> 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?
which variable do you mean ? i think i dont understand your comment
r is initialized completely a few lines later
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190104/cc8847a3/attachment.sig>
More information about the ffmpeg-devel
mailing list