Hacker News new | past | comments | ask | show | jobs | submit login

Actually no, many OSes do have APIs to validate pointer integrity.

But even then, most experienced C programmers don't care about using them anyway, that is why Apple, Oracle, Microsoft, ARM, Google, Cambridge university are all leading efforts for hardware memory tagging.

So it won't matter how much they care, as the OS will kill their beloved application when pointers get misused.

A scenario already made reality in platforms like Solaris SPARC.




> many OSes

Are outside the scope of the C language. But if you allow these special APIs, you can use them to implement a safe strcpy. Either way your point from above is still invalid.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: