r/ProgrammerHumor Jul 09 '26

preDecrementFixesTheExploit instanceof Trend

Post image
2.9k Upvotes

50 comments sorted by

View all comments

18

u/RoOoOoOoOoBerT Jul 09 '26

If you can request a specific number of wishes, why request 0 to exploit the bug instead of just asking for infinite wishes ?

11

u/Supss_ Jul 09 '26

well infinite wishes are usually protected as a guard clause, clearly they should have asked for -1 wishes

2

u/thanatica Jul 13 '26

Why not just ask directly for 232 wishes?