asfdec_o: reject size > INT64_MAX in asf_read_unknown
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 5 Jan 2016 12:20:11 +0000 (13:20 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 14 Jan 2016 23:37:13 +0000 (00:37 +0100)
commitaa180169961b46cf0d2bcc23cb686f93c079b256
tree391dd19ff62b7da877f2630e5cdf71d424a50de0
parent763c572801a3db1cc7a2f07a52fee9d2e35ec95a
asfdec_o: reject size > INT64_MAX in asf_read_unknown

Both avio_skip and detect_unknown_subobject use int64_t for the size
parameter.

This fixes a segmentation fault due to infinite recursion.

Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/asfdec_o.c