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

Memory allocation failure in parseABC_NS_SET_INFO (parser.c:3081) #225

Open
cxlzff opened this issue Jun 21, 2021 · 0 comments
Open

Memory allocation failure in parseABC_NS_SET_INFO (parser.c:3081) #225

cxlzff opened this issue Jun 21, 2021 · 0 comments

Comments

@cxlzff
Copy link

cxlzff commented Jun 21, 2021

==17274==ERROR: AddressSanitizer failed to allocate 0x376edde000 (238083235840) bytes of LargeMmapAllocator (error code: 12)
==17274==Process memory map follows:
0x000000400000-0x0000005e9000 /libming-ming-0_4_8/util/swftophp
0x0000007e9000-0x0000007ed000 /libming-ming-0_4_8/util/swftophp
0x0000007ed000-0x000000800000 /libming-ming-0_4_8/util/swftophp
0x000000800000-0x000001577000
0x00007fff7000-0x00008fff7000
0x00008fff7000-0x02008fff7000
0x02008fff7000-0x10007fff8000
0x600000000000-0x602000000000
0x602000000000-0x602000010000
0x602000010000-0x602e00000000
0x602e00000000-0x602e00010000
0x602e00010000-0x607000000000
0x607000000000-0x607000010000
0x607000010000-0x607e00000000
0x607e00000000-0x607e00010000
0x607e00010000-0x608000000000
0x608000000000-0x608000010000
0x608000010000-0x608e00000000
0x608e00000000-0x608e00010000
0x608e00010000-0x60c000000000
0x60c000000000-0x60c000010000
0x60c000010000-0x60ce00000000
0x60ce00000000-0x60ce00010000
0x60ce00010000-0x611000000000
0x611000000000-0x611000010000
0x611000010000-0x611e00000000
0x611e00000000-0x611e00010000
0x611e00010000-0x612000000000
0x612000000000-0x612000010000
0x612000010000-0x612e00000000
0x612e00000000-0x612e00010000
0x612e00010000-0x615000000000
0x615000000000-0x615000010000
0x615000010000-0x615e00000000
0x615e00000000-0x615e00010000
0x615e00010000-0x616000000000
0x616000000000-0x616000010000
0x616000010000-0x616e00000000
0x616e00000000-0x616e00010000
0x616e00010000-0x617000000000
0x617000000000-0x617000010000
0x617000010000-0x617e00000000
0x617e00000000-0x617e00010000
0x617e00010000-0x619000000000
0x619000000000-0x619000020000
0x619000020000-0x619e00000000
0x619e00000000-0x619e00010000
0x619e00010000-0x61a000000000
0x61a000000000-0x61a000010000
0x61a000010000-0x61ae00000000
0x61ae00000000-0x61ae00010000
0x61ae00010000-0x61b000000000
0x61b000000000-0x61b000010000
0x61b000010000-0x61be00000000
0x61be00000000-0x61be00010000
0x61be00010000-0x61c000000000
0x61c000000000-0x61c000010000
0x61c000010000-0x61ce00000000
0x61ce00000000-0x61ce00010000
0x61ce00010000-0x621000000000
0x621000000000-0x621000010000
0x621000010000-0x621e00000000
0x621e00000000-0x621e00010000
0x621e00010000-0x624000000000
0x624000000000-0x624000010000
0x624000010000-0x624e00000000
0x624e00000000-0x624e00010000
0x624e00010000-0x640000000000
0x640000000000-0x640000003000
0x7fa299c00000-0x7fa299d00000
0x7fa299e00000-0x7fa299f00000
0x7fa29a000000-0x7fa29a100000
0x7fa29a1f9000-0x7fa29c54b000
0x7fa29c54b000-0x7fa29c70b000 /lib/x86_64-linux-gnu/libc-2.23.so 0x7fa29c70b000-0x7fa29c90b000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7fa29c90b000-0x7fa29c90f000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7fa29c90f000-0x7fa29c911000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7fa29c911000-0x7fa29c915000
0x7fa29c915000-0x7fa29c92b000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7fa29c92b000-0x7fa29cb2a000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7fa29cb2a000-0x7fa29cb2b000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7fa29cb2b000-0x7fa29cb2e000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7fa29cb2e000-0x7fa29cd2d000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7fa29cd2d000-0x7fa29cd2e000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7fa29cd2e000-0x7fa29cd2f000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7fa29cd2f000-0x7fa29ce37000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7fa29ce37000-0x7fa29d036000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7fa29d036000-0x7fa29d037000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7fa29d037000-0x7fa29d038000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7fa29d038000-0x7fa29d03f000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7fa29d03f000-0x7fa29d23e000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7fa29d23e000-0x7fa29d23f000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7fa29d23f000-0x7fa29d240000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7fa29d240000-0x7fa29d258000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7fa29d258000-0x7fa29d457000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7fa29d457000-0x7fa29d458000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7fa29d458000-0x7fa29d459000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7fa29d459000-0x7fa29d45d000
0x7fa29d45d000-0x7fa29d501000 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
0x7fa29d501000-0x7fa29d700000 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
0x7fa29d700000-0x7fa29d706000 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
0x7fa29d706000-0x7fa29d707000 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
0x7fa29d707000-0x7fa29d720000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7fa29d720000-0x7fa29d91f000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7fa29d91f000-0x7fa29d920000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7fa29d920000-0x7fa29d921000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7fa29d921000-0x7fa29d945000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7fa29d945000-0x7fa29db44000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7fa29db44000-0x7fa29db45000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7fa29db45000-0x7fa29db46000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7fa29db46000-0x7fa29db6c000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7fa29dbe3000-0x7fa29dd63000
0x7fa29dd63000-0x7fa29dd6b000
0x7fa29dd6b000-0x7fa29dd6c000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7fa29dd6c000-0x7fa29dd6d000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7fa29dd6d000-0x7fa29dd6e000
0x7ffedf3ed000-0x7ffedf40e000 [stack]
0x7ffedf58d000-0x7ffedf590000 [vvar]
0x7ffedf590000-0x7ffedf592000 [vdso]
0xffffffffff600000-0xffffffffff601000 [vsyscall]
==17274==End of process memory map.
==17274==AddressSanitizer CHECK failed: /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cc:120 "((0 && "unable to mmap")) != (0)" (0x0, 0x0)
#0 0x4dc6ef in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/asan_rtl.cc:69
#1 0x4f7665 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_termination.cc:79
#2 0x4e6b81 in __sanitizer::ReportMmapFailureAndDie(unsigned long, char const*, char const*, int, bool) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cc:120
#3 0x4f07d6 in __sanitizer::MmapOrDie(unsigned long, char const*, bool) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc:132
#4 0x424224 in __sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback>::Allocate(__sanitizer::AllocatorStats*, unsigned long, unsigned long) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_secondary.h:41
#5 0x424224 in __sanitizer::CombinedAllocator<__sanitizer::SizeClassAllocator64<__asan::AP64>, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64> >, __sanitizer::LargeMmapAllocator<__asan::AsanMapUnmapCallback> >::Allocate(__sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator64<__asan::AP64> >, unsigned long, unsigned long, bool, bool) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:70
#6 0x424224 in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace
, __asan::AllocType, bool) /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/asan_allocator.cc:407
#7 0x4d2534 in malloc /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:67
#8 0x58b17c in parseABC_NS_SET_INFO /libming-ming-0_4_8/util/parser.c:3081:15
#9 0x58d625 in parseABC_CONSTANT_POOL /libming-ming-0_4_8/util/parser.c:3191:5
#10 0x592370 in parseABC_FILE /libming-ming-0_4_8/util/parser.c:3426:3
#11 0x594039 in parseSWF_DOABC /libming-ming-0_4_8/util/parser.c:3481:3
#12 0x5298b5 in blockParse /libming-ming-0_4_8/util/blocktypes.c:145:14
#13 0x5285bb in readMovie /libming-ming-0_4_8/util/main.c:265:11
#14 0x526ddc in main /libming-ming-0_4_8/util/main.c:350:2
#15 0x7fa29c56b82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
#16 0x419ed8 in _start (/libming-ming-0_4_8/util/swftophp+0x419ed8)

@cxlzff cxlzff changed the title Memory allocation failure in parser.c:3081 (parser.c:3081) Memory allocation failure in parseABC_NS_SET_INFO (parser.c:3081) Jun 21, 2021
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