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 20:17:51 +0000 (21:17 +0100)
commit4adc99ecb6e9aec301fdd79ec097d433346045b6
tree8c6481b3a3e8e3b47f8300a7d97e5bf239f8b7f3
parent8be3724e55b2c55337c14c9cb7a69c5a85d42a65
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

(cherry picked from commit 2d453188c2303da641dafb048dc1806790526dfd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c