[FFmpeg-devel] [PATCH] avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations

Michael Niedermayer michael at niedermayer.cc
Wed Oct 26 20:47:09 EEST 2016


On Sun, Sep 25, 2016 at 11:54:00PM +0200, Michael Niedermayer wrote:
> Allowing larger timestamps makes it impossible to calculate basic things like the
> difference of 2 timestamps or their sum without checking each individual computation for
> overflow.
> This should avoid a significant number of overflow checks
> 
> Fixes Ticket5136
> 
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavformat/utils.c | 6 ++++++
>  1 file changed, 6 insertions(+)

applied

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

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161026/1d6cefc8/attachment.sig>


More information about the ffmpeg-devel mailing list