mss1: improve check if decoded pivot is invalid
authorPaul B Mahol <onemda@gmail.com>
Sat, 14 Jul 2012 23:27:21 +0000 (23:27 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 15 Jul 2012 02:12:02 +0000 (02:12 +0000)
commit6ad45600313f0df1abf31abdd28f4339dbdc7ca0
tree16a21717e85adc4011d64e8b15ffe2f49151d664
parentab46300078d6c047c975c43baa71a32ca707e312
mss1: improve check if decoded pivot is invalid

The pivot has to lie between 0 and base.
Check of ==base is insufficient.
Thus replace it by a proper check.

Fixes out of array write.

Fixes bug #1531.

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/mss1.c