nutdec: check maxpos in read_sm_data before returning success
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 27 Jun 2015 15:50:56 +0000 (17:50 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 27 Jun 2015 17:22:27 +0000 (19:22 +0200)
commit6b9fdf7f4f07926557048070cc2af3cfd0e3fe50
tree72a13ad7967e20c5258309eb11c059be82ef99f6
parentf620315fa5b1710e3a47b80ca2cd4597510804ba
nutdec: check maxpos in read_sm_data before returning success

Otherwise sm_size can be larger than size, which results in a negative
packet size.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/nutdec.c