summaryrefslogtreecommitdiff
path: root/libavcodec/targa.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-27 00:20:02 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-26 16:39:01 -0700
commit5484170ac729d739b2747979408f47bd9aa31c7c (patch)
tree7e8dc5fe3de1c12ce660130926603e058040e58c /libavcodec/targa.c
parent72ccfb3cb7a85d35cfe2c99ab53e981974e599cd (diff)
rv34: set mb_num_left to 0 after finishing a frame
Prevents running error resilience on a previous frame which will write to the pic->mb_type[] array of the previous image. The array might already be re-used for a new image in a subsequent thread, thus cause two threads to write to the same pic->mb_type[] array, causing a race condition which can crash in rv34_decode_cbp(), called by rv34_decode_inter_mb_header() (which accesses mb_type[] twice, assuming values are maintained, which the race condition breaks). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/targa.c')
0 files changed, 0 insertions, 0 deletions