mirror of
https://github.com/MariaDB/server.git
synced 2026-01-13 18:02:43 +03:00
if the Ptr="abc", then str_length=3, and for a C ptr it needs Ptr[3]=0; but it passes str_length+1 (=4) to realloc, and realloc allocates arg_length+1 bytes (that is 5) and does Ptr[arg_length]= 0; (Ptr[4]=0)
32 KiB
32 KiB