To be fair, that is a downstream effect of C's worst mistake (NUL terminated strings). Also, if every allocation you'd get is ptr+size you could just derive it by also copying the size.
Basically, the issue is C having unsized allocations and related not tracking string length.
[–] teo_zero 3 days ago
[–] NekkoDroid 3 days ago
Basically, the issue is C having unsized allocations and related not tracking string length.