Comment by staticassertion
Comment by staticassertion 3 days ago
What if you wrote something more like:
# terrible code, never use ty
def cleanup(dir):
system("rm -rf {dir}")
def main():
work_dir = os.env["WORK_DIR"]
cleanup(work_dir)
and then due to a misconfiguration "$WORK_DIR" was truncated to be just "/"?At what point is it negligent?
This is not hypothetical. Steam and Bumblebee did it.