==47598==WARNING: AddressSanitizer failed to allocate 0x32028000000 bytes
==47598==AddressSanitizer's allocator is terminating the process instead of returning 0
==47598==If you don't like this behavior set allocator_may_return_null=1
==47598==AddressSanitizer CHECK failed: /build/llvm-toolchain-6.0-QjOn7h/llvm-toolchain-6.0-6.0/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0)
#0 0x4e37f5 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/seviezhou/matio/tools/matdump+0x4e37f5)
#1 0x5010a5 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/seviezhou/matio/tools/matdump+0x5010a5)
#2 0x4e9be6 in __sanitizer::ReportAllocatorCannotReturnNull() (/home/seviezhou/matio/tools/matdump+0x4e9be6)
#3 0x4e9c26 in __sanitizer::ReturnNullOrDieOnFailure::OnBadRequest() (/home/seviezhou/matio/tools/matdump+0x4e9c26)
#4 0x4257a6 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) (/home/seviezhou/matio/tools/matdump+0x4257a6)
#5 0x4da67b in __interceptor_malloc (/home/seviezhou/matio/tools/matdump+0x4da67b)
#6 0x53bb07 in Mat_VarRead5 /home/seviezhou/matio/src/mat5.c:3775:32
#7 0x5c4f32 in ReadNextCell /home/seviezhou/matio/src/mat5.c:1115:39
#8 0x5bb922 in Mat_VarReadNextInfo5 /home/seviezhou/matio/src/mat5.c:5234:27
#9 0x522ae1 in Mat_VarReadNextInfo /home/seviezhou/matio/src/mat.c:2418:22
#10 0x515e15 in main /home/seviezhou/matio/tools/matdump.c:944:31
#11 0x7f3a49056b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#12 0x41a7e9 in _start (/home/seviezhou/matio/tools/matdump+0x41a7e9)
System info
Ubuntu X64, gcc (Ubuntu 5.5.0-12ubuntu1), matdump (latest master 7a1831)
Command line
./tools/matdump @@
AddressSanitizer output
POC
malloc-size-error-Mat_VarRead5-mat5-3775.zip