Menu
There are 10 types of people in this world. Those who understand binary and those who don't.
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
Post-decrement Memes
Posts tagged with Post-decrement
Pre Decrement Fixes The Exploit
Security
Java
Programming
Debugging
Csharp
3 months ago
203.6M views
0 shares
When you're dealing with a critical security vulnerability and someone suggests using pre-decrement (--i) instead of post-decrement (i--) as the "fix," you're basically asking a genie to reduce your problem count to zero... and getting exactly what you asked for. The joke here is that the programmer wants to make their problem count "0" (meaning no problems), but the genie interprets this literally and just sets their wish count to 0 instead. It's like changing i-- to --i in your code and calling it a security patch when you've fundamentally changed nothing about the actual vulnerability. You've just shifted when the decrement happens—before or after the expression evaluation—but the exploit is still there, laughing at your PR. Classic "technically correct but completely useless" energy that every code reviewer has seen at 3 AM.
Today's picks
8586D 2 In 1 Soldering Station, SMD Hot Air Rework Station LED Dual Digital Display with Heat Gun and Solder Iron Kit, Electric Soldering Iron Station with Temperature Control, Auto Sleep Functions
Affiliate
$31.49
How My Day Is Going: The House Of Cards
Devops
581.8K views
1 year ago
Well, it isn't bad for a first try tho
Programming
92.6K views
4 years ago