General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Low Level
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "new Linux feature makes hacking IMPOSSIBLE" video.
This is an interesting idea, but I'll say it again, the actual biggest source of errors is not checking user input. If you use gets() or if you use scanf() in that way, you are not checking user input at all. That is the real error. The memory corruption is merely a side effect of what you've already done wrong.
23
@chainingsolid A language like C could easily support modules, and should, but I'd still advocate for keeping the #include directive, not merely for legacy support, but also because it has other uses beyond just normal programming. The complaint about arrays doesn't really make sense though, because pointers are not only used for arrays and if you really want the behavior of other languages when it comes to arrays you can wrap them in a struct. You could use macros or static functions in a header to permit checked access. If you don't already know about its existence, look into _Generic. It has existed in the language as a very useful feature since C11.
1