From 788418cff20a047a9f0124a02d465c8d2eeda2c7 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Fri, 25 May 2018 03:42:40 -0700 Subject: [PATCH] Add unit test to show that we handle tars safely --- .../decompress-tar/outside_parent.tar | Bin 0 -> 10240 bytes post-processor/vagrant/virtualbox.go | 8 ++++++++ post-processor/vagrant/virtualbox_test.go | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 common/test-fixtures/decompress-tar/outside_parent.tar diff --git a/common/test-fixtures/decompress-tar/outside_parent.tar b/common/test-fixtures/decompress-tar/outside_parent.tar new file mode 100644 index 0000000000000000000000000000000000000000..f08df1e6560b1137d6103ab0968518339bb3566c GIT binary patch literal 10240 zcmeIxOAdlC5P;#XIYo_oC@t12cmvnSBanbKg7>#*OppZ|Bq8RX&9t;>r(c*bjPjy& z;mu`Ytx!I!QewzQdw6A~lXo6I8Y5z(4^|s(wG}E({6-