Logo
First tweet ever: 'just setting up my twttr'
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Loophole Memes

Posts tagged with Loophole

Integer Overflow: The Ultimate Wish Hack

Programming Debugging Security C++ Algorithms
1 year ago 448.8K views 1 shares
Integer Overflow: The Ultimate Wish Hack
When the genie says "no wishing for more wishes," every programmer knows there's a workaround. This dev just exploited the classic integer overflow vulnerability! By storing wishes in an unsigned 32-bit integer (max value: 4,294,967,295) and then cleverly manipulating the order of operations, they've essentially created an infinite wish glitch. The coup de grâce? Wishing for 0 wishes. Since the subtraction happens after the wish is granted, they'll still have 4,294,967,295 wishes left. The genie's face says it all - outsmarted by someone who clearly debugs race conditions for a living. And this, friends, is why you always validate your inputs and use proper synchronization primitives. Otherwise some smartass in a code review will point out how your entire wish-granting API can be exploited.

Today's picks

Have you tried explaining it to the Rubber Duck Debug T-Shirt

Have you tried explaining it to the Rubber Duck Debug T-Shirt

Affiliate
$17.99
Developers vs. Users: The Eternal Struggle

Developers vs. Users: The Eternal Struggle

Programming
347.4K views 6 months ago
body { background-color: teal; }

body { background-color: teal; }

Javascript
181.8K views 4 years ago