• riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    78
    arrow-down
    1
    ·
    2 months ago

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

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      72
      ·
      2 months 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”

    • xmunk
      link
      fedilink
      arrow-up
      20
      ·
      2 months ago

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