Logo
Why do Java developers wear glasses? Because they don't C#!
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • 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

Array-out-of-bounds Memes

Posts tagged with Array-out-of-bounds

Bugs Exclusively On Sunday

Debugging Java Programming Testing Backend
6 hours ago 37.3K views 0 shares
Bugs Exclusively On Sunday
So someone built a system assuming weeks start on Monday (like civilized people do), made their `tm_wday` 1-based instead of the standard 0-based, and created a bug that only manifests on Sundays. Beautiful. Just beautiful. The code is accessing `WEEKDAYS[timeinfo.tm_wday - 1]`, which means on Sunday (when `tm_wday` is 0 in the actual C standard), it's trying to access index -1. Array goes "nope" and throws a bounds check error. The best part? This bug literally only happens once a week, making it the perfect "works on my machine" scenario. You test it Monday through Saturday, ship it to production, then Sunday morning rolls around and everything explodes. The passive-aggressive "I hope you are happy" at the end really seals the deal. Nothing says "I've been debugging for 3 hours on a Sunday" quite like that energy.

Today's picks

Where's The Love

Where's The Love

Programming
149.5M views 11 days ago
Late 2020 Apple MacBook Air with Apple M1 Chip (13.3 inch, 8GB RAM, 128GB SSD) Space Gray (Renewed)

Late 2020 Apple MacBook Air with Apple M1 Chip (13.3 inch, 8GB RAM, 128GB SSD) Space Gray (Renewed)

Affiliate
$383.00
How I design my applications

How I design my applications

Programming
93.4K views 4 years ago