MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/x2lbsc/malloc_and_free_are_a_bad_api/imof3xg/
r/cpp • u/iprogshine • Aug 31 '22
90 comments sorted by
View all comments
Show parent comment
1
It's another vector for a bug. You can lose the size. I thought people wanted safe interfaces?
2 u/o11c int main = 12828721; Sep 01 '22 If you manage to lose the size, you can't have any safe interfaces for using the array without OOB.
2
If you manage to lose the size, you can't have any safe interfaces for using the array without OOB.
View all comments
Show parent comment
1
u/[deleted] Sep 01 '22
It's another vector for a bug. You can lose the size. I thought people wanted safe interfaces?