Modify the frame context memory deallocation
authorYunqing Wang <yunqingwang@google.com>
Thu, 30 Oct 2014 01:38:18 +0000 (18:38 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 6 Nov 2014 19:34:19 +0000 (11:34 -0800)
commit122843343021b75fced01ebbca46e1f95b7151ab
tree5e62887550f628d45b8c8fe63b34ae196fec31a1
parente8860693eaaa606f865ab3166ae09fba32235beb
Modify the frame context memory deallocation

This patch was to fix the vpxdec fuzzing3 test failure. When an
error occurs, setjmp() is invoked, which calls the decoder
removing routine. In multiple thread situation, other threads
could try to access the frame context memory that is already
deallocated, thus causing a segfault.

An invalid unit test was added for this issue.

Change-Id: Ida7442154f3d89759483f0f4fe0324041fffb952
test/invalid_file_test.cc
test/test-data.mk
test/test-data.sha1
vp9/common/vp9_alloccommon.c
vp9/decoder/vp9_decoder.c
vp9/encoder/vp9_encoder.c