exr: fix out of bounds read in get_code
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Sun, 13 Dec 2015 22:37:25 +0000 (23:37 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 16 Dec 2015 21:22:06 +0000 (22:22 +0100)
commit5ea59b1f424f0efc7805d837e6fdb80561fb0f3a
tree866038c8f6d01f97a798efa550f67684c5113009
parent17776638c392d104975aba169e17b186490e1d5e
exr: fix out of bounds read in get_code

This macro unconditionally used out[-1], which causes an out of bounds
read, if out is the very beginning of the buffer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/exr.c