Mac to Programmer [email protected] • 1 year agoGoOnprogramming.devimagemessage-square96fedilinkarrow-up11.02Karrow-down146
arrow-up1971arrow-down1imageGoOnprogramming.devMac to Programmer [email protected] • 1 year agomessage-square96fedilink
minus-square@[email protected]linkfedilink6•1 year agoFuck that, if for whatever reason I’m writing an IP validator by hand I’m disallowing leading zeros. Parsers are very inconsistent, some will parse 010 as 10, others as 0o10 == 8 (you can try that right now with a POSIX ping). Talk about a footgun.
minus-square@[email protected]linkfedilink6•1 year ago some will parse 010 as 10, others as 0o10 == 8 …and that’s me in the fetal position, thanks.
Fuck that, if for whatever reason I’m writing an IP validator by hand I’m disallowing leading zeros. Parsers are very inconsistent, some will parse 010 as 10, others as 0o10 == 8 (you can try that right now with a POSIX
ping
). Talk about a footgun.…and that’s me in the fetal position, thanks.