aeubanks wrote: previous passing output
``` 2: ================================================================= 3: ==7382==ERROR: AddressSanitizer: requested allocation size 0x10000000001 (0x10000001008 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0) 4: #0 0x0001032a9268 in _Znwm+0x6c (libclang_rt.asan_osx_dynamic.dylib:arm64+0x61268) 5: #1 0x000102cd775c in main allocator_returns_null.cpp:82 6: #2 0x00018cc07150 (<unknown module>) 7: #3 0x3a08fffffffffffc (<unknown module>) 8: 9: ==7382==HINT: if you don't care about these errors you may set allocator_may_return_null=1 10: SUMMARY: AddressSanitizer: allocation-size-too-big allocator_returns_null.cpp:82 in main 11: ==7382==ABORTING ``` failing output with this PR ``` 2: ================================================================= 3: ==6635==ERROR: AddressSanitizer: requested allocation size 0x10000000001 (0x10000001008 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0) 4: #0 0x0001029b60ec in malloc+0x70 (libclang_rt.asan_osx_dynamic.dylib:arm64+0x520ec) 5: #1 0x00018cf4abd0 in operator new(unsigned long)+0x1c (libc++abi.dylib:arm64+0x16bd0) 6: #2 0xde678001023f375c (<unknown module>) 7: #3 0x00018cc07150 (<unknown module>) 8: #4 0x9c0d7ffffffffffc (<unknown module>) 9: 10: ==6635==HINT: if you don't care about these errors you may set allocator_may_return_null=1 11: SUMMARY: AddressSanitizer: allocation-size-too-big (libc++abi.dylib:arm64+0x16bd0) in operator new(unsigned long)+0x1c 12: ==6635==ABORTING ``` https://github.com/llvm/llvm-project/pull/107899 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits