[Bug 58293] Regression caused by switch to realloc which doesn't zero added memory