Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid memory address dereference in huffcode (in libfaac/huff2.c:115) #20

Closed
fantasy7082 opened this issue Dec 5, 2018 · 0 comments
Closed

Comments

@fantasy7082
Copy link

fantasy7082 commented Dec 5, 2018

Hi, i found a issue in the FAAC 1.29.9.2, it is crashed by function huffcode .It just cause a Invalid memory address dereference.the details are below(ASAN):

 ./faac  faac_res/unkown_addr_huff2_115  -o out.aac
Freeware Advanced Audio Coder
FAAC 1.29.9.2

Initial quantization quality: 20
Average bitrate: 26 kbps/channel
Bandwidth: 115 Hz
PNS level: 4
Object type: Low Complexity(MPEG-2) + IS + PNS
Container format: Transport Stream (ADTS)
Encoding faac_res/unkown_addr_huff2_115 to out.aac
   frame          | bitrate | elapsed/estim | play/CPU | ETA
ASAN:SIGSEGV

=================================================================
==27195==ERROR: AddressSanitizer: SEGV on unknown address 0x7fbf2b1a2b3c (pc 0x7fc12af99c9a bp 0x7ffd4bb3fdb0 sp 0x7ffd4bb3fce0 T0)
    #0 0x7fc12af99c99 in huffcode /root/faac_asan/faac/libfaac/huff2.c:115
    #1 0x7fc12af9b6e7 in huffbook /root/faac_asan/faac/libfaac/huff2.c:405
    #2 0x7fc12af97be6 in qlevel /root/faac_asan/faac/libfaac/quantize.c:282
    #3 0x7fc12af97ff8 in BlocQuant /root/faac_asan/faac/libfaac/quantize.c:312
    #4 0x7fc12af8b38e in faacEncEncode /root/faac_asan/faac/libfaac/frame.c:586
    #5 0x4057cf in main /root/faac_asan/faac/frontend/main.c:1071
    #6 0x7fc12abd382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #7 0x401968 in _start (/usr/local/faac-asan/bin/faac+0x401968)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /root/faac_asan/faac/libfaac/huff2.c:115 huffcode
==27195==ABORTING

POC FILE:https://github.com/fantasy7082/image_test/blob/master/001_unkown_addr_huff2_115_wav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant