[FFmpeg-devel] [libav-devel] [PATCH 3/3] nutdec: abort if EOF is reached in decode_info_header/read_sm_data

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Wed May 20 19:15:10 CEST 2015


On 20.05.2015 16:58, Luca Barbato wrote:
> On 20/05/15 16:35, Andreas Cadhalpun wrote:
>> On 20.05.2015 03:46, Michael Niedermayer wrote:
>>> this could check the return code from get_str()
>>> which would return failure on EOF already i think
>>> that would be slightly simpler
>>
>> No, get_str only fails if len > maxlen, which is not necessarily
>> the case on EOF.
>>
> 
> I think the idea is to embed in get_str the eof check and check its
> result then.

Michael did that [1], so attached is a patch relying on this.

Best regards,
Andreas

1: https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=6bbb2f8f4da67af374d62403742482cc5962aa21
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-nutdec-abort-if-EOF-is-reached-in-decode_info_header.patch
Type: text/x-diff
Size: 2062 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150520/128310b8/attachment.bin>


More information about the ffmpeg-devel mailing list