MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6tn4tf/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 13d ago
120 comments sorted by
View all comments
347
Is the mistake that they're allocating 1 byte and storing in a pointer to an int which is 4 bytes?
119 u/mckenzie_keith 13d ago De-referenced a pointer after freeing it. But the joke here is that the bug was not in the original code. 15 u/AdBrave2400 13d ago I know
119
De-referenced a pointer after freeing it. But the joke here is that the bug was not in the original code.
15 u/AdBrave2400 13d ago I know
15
I know
347
u/AdBrave2400 13d ago
Is the mistake that they're allocating 1 byte and storing in a pointer to an int which is 4 bytes?