this post was submitted on 16 Nov 2024
746 points (99.5% liked)

Programmer Humor

19564 readers
1478 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 98 points 12 hours ago (1 children)

That's easy, just call it Jhon\nDoe

[–] [email protected] 64 points 12 hours ago (3 children)

John\0Doe will fuck with all C (and C based derivatives) software that touches it.

[–] [email protected] 61 points 11 hours ago

Nah, it will end up simply as "John" in the database. You need "John%sDoe" to crash C software with unsafe printf() calls, and even then it's better to use several "%s"

[–] [email protected] 17 points 11 hours ago (1 children)

C and C derivatives will be fine unless they're fucking up encoding.

[–] [email protected] 12 points 11 hours ago

Which rarely, if ever, happens. Especially with US software.

[–] [email protected] 6 points 11 hours ago

With an address in 's-Hertogenbosch to help people who are lazy about escaping.