• azertyfun@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    ·
    8 months ago

    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.

    • stringere
      link
      fedilink
      arrow-up
      6
      ·
      8 months ago

      some will parse 010 as 10, others as 0o10 == 8

      …and that’s me in the fetal position, thanks.