avcodec/webp: add assert to ensure palette is not larger than 256
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Oct 2014 11:00:40 +0000 (13:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Oct 2014 11:00:40 +0000 (13:00 +0200)
commit436206c1756ce10a5f1cab45ac1d8a974c352e5a
tree0e632ffafec430e89c79e6f04a8800f2fa0a69c2
parent19fb47684193891b8399dfc8faf1ecfd35ac8a6a
avcodec/webp: add assert to ensure palette is not larger than 256

it should not be possible to be larger as its stored as 8bit value
but we would be overwriting a stack buffer if it is ...

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/webp.c