My thoughts on Linux kills strncpy: Linux kills strncpy

Commentary

  • Stephen Smith’s Blog: Linux kills strncpy
  • Oh! That is nasty. I didn’t knew strncpy was that dangerous. Copying data from the stack was a gigachad move from hackers. being a hacker is so underrated, like it takes some thinking to break code, though the direction is wrong so its not worth it.
  • But the other point is that it took 5-6 years to remove this from the kernel. This shows how hard it could get if some code remains in the system for a long time. This is legacy code, if we are vibe coding things, ai generated code will at some point become this, and the problem is not that it becomes hard to remove things, but the knowledge of where the code should be and should not be removed is also gone. Engineers might not know the code anymore, so it remains on the whim of AIs to generate and clean up things. Adding the complexity.