• FizzyOrange
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 months ago

    You wouldn’t be hosed on Linux for example. Note that this applies to the arguments to the program, not just the program itself.

    In other words if I do run(["echo", untrusted_input]) it would be totally fine on Linux.

    • hatedbad@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      3
      ·
      8 months ago

      honestly i wouldn’t trust your linux example at all, what happens with run([“echo”, “&& rm -rf /“])

      • arendjr
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 months ago

        It would print “&& rm -rf /“ and nothing bad would happen.