How to corrupt header of tar.gz for testing purpose? So that when the application tries to unzip it … it fails.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s awfully simple to create a file that gzip won’t recognize:
While of course it’s possible to create a valid gzip file with
/dev/urandom, it’s about as likely as being struck by lightning. Under a clear sky.