[FFmpeg-cvslog] r19307 - trunk/libavcodec/h264.c

Reimar Döffinger Reimar.Doeffinger
Tue Jun 30 20:22:40 CEST 2009


On Tue, Jun 30, 2009 at 02:02:48PM -0400, Alexander Strange wrote:
>
> On Jun 30, 2009, at 8:11 AM, reimar wrote:
>
>> Author: reimar
>> Date: Tue Jun 30 14:11:29 2009
>> New Revision: 19307
>>
>> Log:
>> Fix nalsize check to avoid an integer overflow that made the check
>> incorrect for nalsize >= INT_MAX
>
> Did you mean > INT_MAX - buf_index?
> nalsize can't be > INT_MAX, since it is an int.

well, I wrote >=, and that is possible.
Your variant is more correct though.



More information about the ffmpeg-cvslog mailing list