r/ProgrammerAnimemes • • Oct 29 '19

Uh oh

[deleted] — view deleted post

1.5k Upvotes

30 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Oct 29 '19 edited Oct 29 '19

Bug in the compiler where it accidentally overlays 0x01D6 onto the line count due to a buffer overflow.

I have done it with my own code with a string that wasn’t null terminated, an array of pointers, and using strcpy instead of strncpy.

Rebooted and the error went away mysteriously, until I ran the app again.

Probably can’t happen in modern OSs probably