[openh264] ASAN SEGV on unknown address in WelsFree
- Fixed in 44 days
- Paid in 48 days
- Disclosed after 44 days
Created attachment 8540728
repro.264
The attached testcase crashes the ASAN build of h264dec of the upcoming openh264 firefox branch (https://github.com/cisco/openh264/tree/v1.3-Firefox36).
The crash occurs while attempting to free an invalid memory address.
This affects the ASM optimised 32-bit build. The non-asm 32 and 64bit builds crash on a read violation, probably because ASAN is bailing early.
ASAN output:
==28962==ERROR: AddressSanitizer: SEGV on unknown address 0xf3f3f3e3 (pc 0x080801bf bp 0x0829ca98 sp 0xffdd0800 T0)
#0 0x80801be in __asan::Deallocate(void*, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType) /home/bobthebuilder/llvm/llvm/projects/compiler-rt/lib/asan/asan_allocator2.cc:487:3
#1 0x80800a9 in __asan::asan_free(void*, __sanitizer::BufferedStackTrace*, __asan::AllocType) (/home/nils/264/h264dec-ff-1.3+0x80800a9)
#2 0x80f23e2 in __interceptor_free /home/bobthebuilder/llvm/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:31:3
#3 0x81953a6 in WelsFree (/home/nils/264/h264dec-ff-1.3+0x81953a6)
#4 0x8196cbe in WelsDec::FreePicture(WelsDec::TagPicture*) (/home/nils/264/h264dec-ff-1.3+0x8196cbe)
#5 0x8127519 in WelsFreeMem (/home/nils/264/h264dec-ff-1.3+0x8127519)
#6 0x812b014 in WelsEndDecoder (/home/nils/264/h264dec-ff-1.3+0x812b014)
#7 0x811dbc9 in WelsDec::CWelsDecoder::Uninitialize() (/home/nils/264/h264dec-ff-1.3+0x811dbc9)
#8 0x811a77b in main (/home/nils/264/h264dec-ff-1.3+0x811a77b)
#9 0xf7414a82 (/lib/i386-linux-gnu/libc.so.6+0x19a82)
#10 0x807e69b in _start (/home/nils/264/h264dec-ff-1.3+0x807e69b)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity security bug in Audio/Video: GMP. Mozilla made it public on 5 February 2015.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.