lavf/mov.c: Avoid heap allocation wrap in mov_read_hdlr
authorMatt Wolenetz <wolenetz@google.com>
Wed, 14 Dec 2016 23:24:42 +0000 (15:24 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 02:31:01 +0000 (03:31 +0100)
commitfd30e4d57fe5841385f845440688505b88c0f4a9
treeed1feed6d70bb38162adf92626fddeb5f41a264d
parent1835ed19bb16f2963ef566560a2b4faf3d754fd2
lavf/mov.c: Avoid heap allocation wrap in mov_read_hdlr

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Check value reduced as the code does not support larger lengths
libavformat/mov.c