forked from hugovk/python-library-fuzzers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzipfile.py
27 lines (25 loc) · 783 Bytes
/
zipfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import io
import zipfile
def FuzzerRunOne(FuzzerInput):
try:
with zipfile.ZipFile(io.BytesIO(FuzzerInput), strict_timestamps=False) as zf:
for info in zf.infolist():
info.filename
info.date_time
info.compress_type
info.comment
info.extra
info.create_system
info.create_version
info.extract_version
info.reserved
info.flag_bits
info.volume
info.internal_attr
info.external_attr
info.header_offset
info.CRC
info.compress_size
info.file_size
except zipfile.BadZipFile:
return