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

AddressSanitizer: FPE in mp42aac #966

Open
gpriamo opened this issue May 28, 2024 · 0 comments
Open

AddressSanitizer: FPE in mp42aac #966

gpriamo opened this issue May 28, 2024 · 0 comments

Comments

@gpriamo
Copy link

gpriamo commented May 28, 2024

Describe the bug

AddressSanitizer: FPE on unknown address in mp42aac.

To Reproduce

Built Bento4 main branch according to the instructions in the README.md file.

ASAN Output

./mp42aaac <testcase> /dev/null

AddressSanitizer:DEADLYSIGNAL
=================================================================
==1929927==ERROR: AddressSanitizer: FPE on unknown address 0x00000062e380 (pc 0x00000062e380 bp 0x7fff78068250 sp 0x7fff78067d40 T0)
    #0 0x62e380 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) Source/C++/Core/Ap4TfraAtom.cpp:153:53
    #1 0x62d7fb in AP4_TfraAtom::Create(unsigned int, AP4_ByteStream&) Source/C++/Core/Ap4TfraAtom.cpp:53:16
    #2 0x558a62 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:443:20
    #3 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:234:14
    #4 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) Source/C++/Core/Ap4ContainerAtom.cpp:196:12
    #5 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4ContainerAtom.cpp:140:5
    #6 0x4ddc16 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4MoovAtom.cpp:79:5
    #7 0x55c11d in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4MoovAtom.h:56:20
    #8 0x55855b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:393:20
    #9 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:234:14
    #10 0x55542e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:154:12
    #11 0x4da683 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) Source/C++/Core/Ap4File.cpp:104:12
    #12 0x4dad7d in AP4_File::AP4_File(AP4_ByteStream&, bool) Source/C++/Core/Ap4File.cpp:78:5
    #13 0x4cf8ee in main Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
    #14 0x7fd70b154082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
    #15 0x41d5ed in _start (target+0x41d5ed)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE Source/C++/Core/Ap4TfraAtom.cpp:153:53 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
==1929927==ABORTING

Environment info

OS: Ubuntu 20.04.6
Bento v1.6.0-641 (and main branch)

Testcase

testcase.zip

EDIT: I just noticed a similar crash was reported in #946 though the stacktraces diverge starting from frame number 4

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