SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 35 C++

Poison and unpoison on realloc

Prior to this change, the asan guard size meant that the fast path for realloc never triggered in asan mode, masking the fact that the realloc fast path did not unpoison the newly extended memory region. This change also poisons the "previous" memory area if an alloc+copy is performed, to match the C realloc behavior of freeing the previous memory.

PiperOrigin-RevId: 734278556
P
Protobuf Team Bot committed
584340d3d9951b32ba8849fed58fdfb2565d8732
Parent: e9803f4
Committed by Copybara-Service <copybara-worker@google.com> on 3/6/2025, 10:06:22 PM