exr: fix out of bounds read in get_code
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 13 Dec 2015 22:17:09 +0000 (23:17 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 18 Dec 2015 14:30:04 +0000 (15:30 +0100)
commit90b99a81071d10e6b5efe86a4602d54d4f45bbcb
tree452dce9366363a2f8741a1a40f0965d7c002e2e3
parent4d5c3b02e9d2c9a630ca433fabca43285879e0b8
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>
libavcodec/exr.c