Menu
Keyboard not found. Press F1 to continue.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Clever tricks Memes
Posts tagged with Clever tricks
Wish Underflow
Programming
Debugging
Algorithms
Math
1 year ago
531.1K views
0 shares
The genie just got outsmarted by integer underflow! When asked to make the wish count 0, the genie accidentally triggered the classic 8-bit unsigned integer underflow. Decrementing below 0 wraps around to 255 (2^8 - 1), giving our clever programmer way more wishes than the standard package. It's basically a buffer overflow exploit, but for magical entities. Bet the genie's code wasn't properly sanitizing user input!
Today's picks
UnionSine 1TB Ultra Slim Portable External Hard Drive HDD-USB 3.0 for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)
Affiliate
$69.71
Can you imagine
Programming
95.1K views
3 years ago
Never forget your edge cases
Programming
104.2K views
4 years ago