this post was submitted on 16 Nov 2024
780 points (99.4% liked)

Programmer Humor

19572 readers
1663 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
[–] drew_belloc@programming.dev 100 points 14 hours ago (5 children)

That's easy, just call it Jhon\nDoe

[–] riodoro1@lemmy.world 69 points 13 hours ago (4 children)

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

[–] pelya@lemmy.world 66 points 13 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"

load more comments (3 replies)
load more comments (3 replies)