hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.65k stars 232 forks source link

Remove `bomb.zip` test file to stop anti-virus noise #424

Closed picatz closed 1 year ago

picatz commented 1 year ago

This PR aims to fix #419. The bomb.zip file was useful to verify the zip bomb protections worked properly, but is not required to verify our mitigations work. Including a real zip bomb lead to confusion and reports of anti-virus causing issues for users. Instead, a zip file is created inline with the test before verifying the decompression limit works.

picatz commented 1 year ago

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

nywilken commented 1 year ago

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged.

nywilken commented 1 year ago

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged.