[FFmpeg-devel] [PATCH] avcodec/ccaption_dec: Add a blank like at the end to avoid rollup reading from outside

Michael Niedermayer michael at niedermayer.cc
Mon Apr 22 23:23:57 EEST 2019


On Mon, Apr 22, 2019 at 09:49:41AM +0200, Alexander Strasser wrote:
> Hi Michael!
> 
> On 2019-04-20 18:11 +0200, Michael Niedermayer wrote:
> > Fixes: index 20 out of bounds for type 'const char *[4][128]'
> 
> Somehow I don't understand this diagnostic message. It says "index
> 20 out of bounds for [4][128]".
> 
> You're change looks like an off-by-one fix.
> 
> Sorry; I'm surely missing something as I didn't look up the code,
> just thought I might as well ask...

yes, the out of array read causes a value that is out of range to be
used and later cause the quoted 2nd out of array read

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- 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/20190422/639f57b2/attachment.sig>


More information about the ffmpeg-devel mailing list