[FFmpeg-devel] [PATCH] alac: validate k before using show_bits in decode_scalar

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Apr 23 20:53:29 CEST 2015


On 23.04.2015 16:37, Michael Niedermayer wrote:
> On Wed, Apr 22, 2015 at 06:24:54PM +0200, Andreas Cadhalpun wrote:
>> The k != 1 case calls show_bits(gb, k), which doesn't make sense if k
>> is 0.
> 
> i dont think k = 0 is allowed
> i suggest you check rice_limit when it is set, i assume that is the
> source of k=0
> asking for a sample with rice_limit=0 if it occurs is also a good idea

OK, new patch attached.

Best regards,
Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-alac-reject-rice_limit-0.patch
Type: text/x-diff
Size: 1111 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150423/e38273de/attachment.bin>


More information about the ffmpeg-devel mailing list