commit | 73331a6a0481067628f065ffe87bb1d8f787d10c | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@chromium.org> | Fri Aug 18 11:05:33 2023 +0200 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sat Aug 19 11:56:12 2023 -0700 |
tree | 69e8314d5c83a11107efe6a0ccc7adf6a83310de | |
parent | 726e18943df8c3bd75e6fa91f2ff24ba956a4f95 [diff] |
Reject overflows of zip header fields in minizip. This checks the lengths of the file name, extra field, and comment that would be put in the zip headers, and rejects them if they are too long. They are each limited to 65535 bytes in length by the zip format. This also avoids possible buffer overflows if the provided fields are too long.