Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bfec3e

Browse files
committed
Improve NEWS entry
1 parentc981205 commit4bfec3e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Improvezipfilevalidation in `zipfile.is_zipfile`.
1+
ImproveZip filevalidation in:func:`zipfile.is_zipfile`.
22

3-
Before this change `zipfile.is_zipfile()` only checked the End Central Directory
3+
Before this change:func:`zipfile.is_zipfile` only checked the End Central Directory
44
signature. If the signature could be found in the last 64k of the file,
5-
success! This produced false positives on any file with `'PK\x05\x06'` in the
5+
success! This produced false positives on any file with ``'PK\x05\x06'`` in the
66
last 64k of the file - including PDFs and PNGs.
77

88
This is now corrected by actually validating the Central Directory location
9-
and size based on the information provided by the End Central Directory
9+
and size based on the information provided by the EndofCentral Directory
1010
along with verifying the Central Directory signature of the first entry.
1111

12-
This should be sufficient for the vast number ofzipfiles with fewer
12+
This should be sufficient for the vast number ofZip files with fewer
1313
false positives.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp