<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_int.py, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_int.py?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_int.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-10-11T21:14:05Z</updated>
<entry>
<title>[3.7] gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717) (#98195)</title>
<updated>2022-10-11T21:14:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-11T21:14:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7fe11186504ec59937a3364cf62e76848d32361'/>
<id>urn:sha1:e7fe11186504ec59937a3364cf62e76848d32361</id>
<content type='text'>
gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717)

A regression would still absolutely fail and even a flaky pass isn't
harmful as it'd fail most of the time across our N system test runs.

Windows has a low resolution timer and CI systems are prone to odd
timing so this just gives more leeway to avoid flakiness.
(cherry picked from commit 11e3548fd1d3445ccde971d613633b58d73c3016)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.7] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (GH-96504)</title>
<updated>2022-09-06T05:24:36Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2022-09-06T05:24:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15ec1afd4fcd2da1e2d2b256c562fb42d8d886a2'/>
<id>urn:sha1:15ec1afd4fcd2da1e2d2b256c562fb42d8d886a2</id>
<content type='text'>
Converting between `int` and `str` in bases other than 2
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now
raises a `ValueError` if the number of digits in string form is above a
limit to avoid potential denial of service attacks due to the algorithmic
complexity. This is a mitigation for CVE-2020-10735
(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735).

This new limit can be configured or disabled by environment variable, command
line flag, or :mod:`sys` APIs. See the `Integer String Conversion Length
Limitation` documentation.  The default limit is 4300
digits in string form.

Patch by Gregory P. Smith [Google] and Christian Heimes [Red Hat] with feedback
from Victor Stinner, Thomas Wouters, Steve Dower, Ned Deily, and Mark Dickinson.</content>
</entry>
<entry>
<title>bpo-31619: Fixed a ValueError when convert a string with large number of underscores (#3827)</title>
<updated>2017-10-03T11:13:44Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-10-03T11:13:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3'/>
<id>urn:sha1:85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3</id>
<content type='text'>
to integer with binary base.</content>
</entry>
<entry>
<title>bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() and tuple(). (#518)</title>
<updated>2017-03-06T15:01:06Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-03-06T15:01:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e5642422f6234fd8d0c082142b27340e588f96e'/>
<id>urn:sha1:2e5642422f6234fd8d0c082142b27340e588f96e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-29695: Deprecated using bad named keyword arguments in builtings: (#486)</title>
<updated>2017-03-05T22:53:39Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-03-05T22:53:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58d23e68068996c76cac78887ec67dee68cdbc72'/>
<id>urn:sha1:58d23e68068996c76cac78887ec67dee68cdbc72</id>
<content type='text'>
int(), bool(), float(), list() and tuple().  Specify the value as a
positional argument instead.</content>
</entry>
<entry>
<title>Issue #26331: Implement the parsing part of PEP 515.</title>
<updated>2016-09-09T21:57:09Z</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2016-09-09T21:57:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a721abac299bb6529021000a71847486d531b41a'/>
<id>urn:sha1:a721abac299bb6529021000a71847486d531b41a</id>
<content type='text'>
Thanks to Georg Brandl for the patch.
</content>
</entry>
<entry>
<title>Issue #26984: int() now always returns an instance of exact int.</title>
<updated>2016-08-21T17:03:08Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-08-21T17:03:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54cd1969eacf27405e2fe265817ee60a8ece93ab'/>
<id>urn:sha1:54cd1969eacf27405e2fe265817ee60a8ece93ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #24731: Fixed crash on converting objects with special methods</title>
<updated>2015-11-25T13:52:04Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-11-25T13:52:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f9afda57ad7d0394531982b2c9de8301c5a54e45'/>
<id>urn:sha1:f9afda57ad7d0394531982b2c9de8301c5a54e45</id>
<content type='text'>
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
</content>
</entry>
<entry>
<title>Issue #24731: Fixed crash on converting objects with special methods</title>
<updated>2015-11-25T13:47:01Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-11-25T13:47:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15095800a381a396cbc077cb5320203a8feae51a'/>
<id>urn:sha1:15095800a381a396cbc077cb5320203a8feae51a</id>
<content type='text'>
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
</content>
</entry>
<entry>
<title>Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary</title>
<updated>2015-11-07T02:32:21Z</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2015-11-07T02:32:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eeb896c4116dd763efea45cb3c1b53257128f4e4'/>
<id>urn:sha1:eeb896c4116dd763efea45cb3c1b53257128f4e4</id>
<content type='text'>
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch by John Leitch, Serhiy Storchaka and Martin Panter.
</content>
</entry>
</feed>
