]> git.sesse.net Git - ffmpeg/commit
lavf/mov.c: Avoid heap allocation wrap in mov_read_uuid
authorMatt Wolenetz <wolenetz@google.com>
Wed, 14 Dec 2016 23:26:19 +0000 (15:26 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 02:57:10 +0000 (03:57 +0100)
commit2d453188c2303da641dafb048dc1806790526dfd
treebfbf26717badecb802c64baa6ec1e009fa31c3d8
parentfd30e4d57fe5841385f845440688505b88c0f4a9
lavf/mov.c: Avoid heap allocation wrap in mov_read_uuid

Core of patch is from paul@paulmehta.com
Reference https://crbug.com/643951

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Check value reduced as the code does not support values beyond INT_MAX
Also the check is moved to a more common place and before integer truncation
libavformat/mov.c