[FFmpeg-devel] Fix undefined behavior in ff_configure_buffers_for_index()

Dale Curtis dalecurtis at chromium.org
Wed Jan 29 02:52:16 EET 2020


When e2_pts == INT64_MIN and e1_pts >= 0 the calculation of
e2_pts - e1_pts will overflow an int64_t. So instead check
for overflow and default to |time_tolerance| if the value
is too large for an int64_t.

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubfix.patch
Type: text/x-patch
Size: 1766 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200128/ce22b5a5/attachment.bin>


More information about the ffmpeg-devel mailing list