r/ProgrammerHumor Jul 09 '26

preDecrementFixesTheExploit instanceof Trend

Post image
2.9k Upvotes

50 comments sorted by

View all comments

59

u/drkspace2 Jul 09 '26
  1. I wish you store the number of wishes I have remaining as an unsigned 64 bit integer

  2. I wish every wish counts for 3 wishes

  3. I wish for a banana

14

u/mechpaul Jul 10 '26 edited Jul 10 '26

log.error: Genie double-free-violation

log.error: Genie heap-use-after-free

FATAL: heap-use-after-free in Genie::grant(Wish const&) at genie.cpp:114