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

Allocate Failure in function openWavFile #3

Open
fouzhe opened this issue Jul 24, 2018 · 1 comment
Open

Allocate Failure in function openWavFile #3

fouzhe opened this issue Jul 24, 2018 · 1 comment

Comments

@fouzhe
Copy link

fouzhe commented Jul 24, 2018

I used gcc 5.4 and AddressSanitizer to build sound, this file can cause allocate failure when executing this command:

./parseSpeech -f allocate_failure_openWavFile

This is the ASAN information:

Input file : allocate_failure_openWavFileSize of chunk8
Size of chunk8
wBufferLength : 4293066752maxInSamples 4293066752
==29066==WARNING: AddressSanitizer failed to allocate 0xffffffffffe30000 bytes
==29066==AddressSanitizer's allocator is terminating the process instead of returning 0
==29066==If you don't like this behavior set allocator_may_return_null=1
==29066==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_allocator.cc:147 "((0)) != (0)" (0x0, 0x0)
    #0 0x7f5578ebd631  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa0631)
    #1 0x7f5578ec25e3 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa55e3)
    #2 0x7f5578e3a425  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x1d425)
    #3 0x7f5578ec0865  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa3865)
    #4 0x7f5578e3fb4d  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x22b4d)
    #5 0x7f5578eb667e in operator new[](unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9967e)
    #6 0x4070d9 in WavFile::openWavFile(char*) /home/fouzhe/my_fuzz/sound/src/wav-file.cc:345
    #7 0x4025c2 in main /home/fouzhe/my_fuzz/sound/main.cc:148
    #8 0x7f55781d282f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #9 0x402a38 in _start (/home/fouzhe/my_fuzz/sound/parseSpeech+0x402a38)
@dilawar
Copy link
Owner

dilawar commented Jul 25, 2018

I could not reproduce it with either gcc-5.5 or gcc-7.3. So I guess, this is due to the old compiler version.

Following is with gcc-5.5. And similar with gcc-7.3.

[100%] Built target parseSpeech
[dilawars@Ace sound (issue3)]$ ./parseSpeech -f wav_samples/allocate_failure_openWavFile 
Input file : wav_samples/allocate_failure_openWavFile
Bad RIFF format. I am not cool enough to support everything.

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

2 participants