r/ProgrammerHumor 2d ago

Meme bugIntroducedDebugging

Post image
1.1k Upvotes

120 comments sorted by

View all comments

343

u/AdBrave2400 2d ago

Is the mistake that they're allocating 1 byte and storing in a pointer to an int which is 4 bytes?

-4

u/[deleted] 2d ago

[deleted]

4

u/AdBrave2400 2d ago

The pointer is already allocated on the stack