A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python/cpython/commit/d751040b1a4e35fd3b01fc919cd8f9374ed714fd below:

Prevent buffer overflow in get_data · python/cpython@d751040 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-0

lines changed Original file line number Diff line number Diff line change

@@ -10,6 +10,9 @@ What's New in Python 3.3.7?

10 10

Core and Builtins

11 11

-----------------

12 12 13 +

- Issue #26171: Fix possible integer overflow and heap corruption in

14 +

zipimporter.get_data().

15 + 13 16

- Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.

14 17 15 18

- Issue #24407: Fix crash when dict is mutated while being updated.

Original file line number Diff line number Diff line change

@@ -1089,6 +1089,11 @@ get_data(PyObject *archive, PyObject *toc_entry)

1089 1089

PyMarshal_ReadShortFromFile(fp); /* local header size */

1090 1090

file_offset += l; /* Start of file data */

1091 1091 1092 +

if (data_size > LONG_MAX - 1) {

1093 +

fclose(fp);

1094 +

PyErr_NoMemory();

1095 +

return NULL;

1096 +

}

1092 1097

bytes_size = compress == 0 ? data_size : data_size + 1;

1093 1098

if (bytes_size == 0)

1094 1099

bytes_size++;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4