ElCanut@jlai.lu to Programmer Humor@programming.dev · 1 year agoAsking the real questionsjlai.luimagemessage-square75fedilinkarrow-up118arrow-down10
arrow-up118arrow-down1imageAsking the real questionsjlai.luElCanut@jlai.lu to Programmer Humor@programming.dev · 1 year agomessage-square75fedilink
minus-squareDrew Belloc@programming.devlinkfedilinkarrow-up1·1 year agoThat’s easy, just call it Jhon\nDoe
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up1·1 year agoJohn\0Doe will fuck with all C (and C based derivatives) software that touches it.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up1·1 year agoC and C derivatives will be fine unless they’re fucking up encoding.
minus-squareAnUnusualRelic@lemmy.worldlinkfedilinkarrow-up1·1 year agoWhich rarely, if ever, happens. Especially with US software.
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up1·1 year agoNah, 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”
That’s easy, just call it Jhon\nDoe
John\0Doe will fuck with all C (and C based derivatives) software that touches it.
C and C derivatives will be fine unless they’re fucking up encoding.
Which rarely, if ever, happens. Especially with US software.
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”