Menu
git commit -m 'Fix bug' --no-verify
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
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
9 months ago
399.5K 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
S300 - Mini-ITX PC Gaming Case - Front I/O USB 3.0 Type - C Port - SFX Power Supply 100-130mm - Cable Management System - luminum Mini-ITX Motherboard Small Portable PC Case (PCIe 3.0 16X Riser Cable)
Affiliate
$89.99
The Perfect Monster
C++
321.1K views
8 months ago
Life Update
Programming
76.3K views
1 year ago