lagarith: check count before writing zeros.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Apr 2012 16:28:31 +0000 (18:28 +0200)
committerReinhard Tartler <siretart@tauware.de>
Fri, 4 Jan 2013 06:43:37 +0000 (07:43 +0100)
commit44da556815fc02ed0c763e8e8bda3ea7824b7954
tree03f3362367cfc89757d7805bcf1f632dbf670a0a
parentaa097b4d5fd41679cda6780fd8d70a3de33c6820
lagarith: check count before writing zeros.

Fixes CVE-2012-2793

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit b631e4ed64f7d1b9ca8f897fda31140e8d1fad81)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/lagarith.c