Re:My Reaction to Dr. Stroustrup’s Recent Memory Safety Comm...
by pjmlp on Friday February 03, 2023 @02:50AM
(#34638379)
Plenty of C++ developers still mix up delete versus delete[].
[ Parent
| on HN ]
Re:My Reaction to Dr. Stroustrup’s Recent Memory Safety Comm...
by olliej on Friday February 03, 2023 @03:18AM
(#34638618)
Which is my point: the type system doesn't distinguish T* (a single object) T* (an array of objects), so delete vs delete[] only shows up as runtime heap corruption that may or may not eagerly terminate or lead to RCE.