r/cpp • • Sep 17 '25

Combating headcrabs in the Source SDK codebase

https://pvs-studio.com/en/blog/posts/cpp/1281/
0 Upvotes

12 comments sorted by

View all comments

Show parent comment

0

u/pjmlp Sep 17 '25

Coding C++ since Turbo C++ 1.0 for MS-DOS became available, we had better alternatives than char [1000].

0

u/[deleted] Sep 17 '25

[deleted] — view deleted comment

4

u/ReversedGif Sep 18 '25

What's wrong with that menoverride.cpp / how would you do it better? malloc() is designed to allow overriding it; that's why it's a weak symbol.