Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pretty sure you still have to use plain arrays and strcmp, what are these "safe" libraries you were going to use? Unless we are talking about C++ here?

glib: https://en.wikipedia.org/wiki/GLib

There are others. Basically, if you wrap your dangerous C app in a thin, impenetrable layer of solid string processing and input validation, it's very manageable.

Valgrind and input fuzzing help considerably to work out any bugs.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: