OSDN Git Service

apetag: Fix APE tag size check
authorKaterina Barone-Adesi <katerinab@gmail.com>
Mon, 15 Sep 2014 23:40:24 +0000 (01:40 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 17 Sep 2014 13:37:05 +0000 (06:37 -0700)
commitc5560e72d0bb69f8a1ac9536570398f84388f396
tree107f12985cbf2aa447a24689ffd213559b51c8d0
parent44caf99ecae7bc1b907fab849ecaa72dd340ba2e
apetag: Fix APE tag size check

The size variable is (correctly) unsigned, but is passed to several functions
which take signed parameters, such as avio_read, sometimes after having
numbers added to it. So ensure that size remains within the bounds that
these functions can handle.

CC: libav-stable@libav.org
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/apetag.c