<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/difflib.py, branch 3.4</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/difflib.py?h=3.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/difflib.py?h=3.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-03-11T18:28:53Z</updated>
<entry>
<title>[3.4] bpo-32981: Fix catastrophic backtracking vulns (GH-5955) (#6035)</title>
<updated>2018-03-11T18:28:53Z</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2018-03-11T18:28:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=942cc04ae44825ea120e3a19a80c9b348b8194d0'/>
<id>urn:sha1:942cc04ae44825ea120e3a19a80c9b348b8194d0</id>
<content type='text'>
* Prevent low-grade poplib REDOS (CVE-2018-1060)

The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.

Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.

A 2KB evil response from the mail server would result in small slowdowns
(milliseconds vs. microseconds) accumulated over many apop calls.
This is a potential DOS vector via accumulated slowdowns.

Replace it with a similar non-vulnerable regex.

The new regex is RFC compliant.
The old regex was non-compliant in edge cases.

* Prevent difflib REDOS (CVE-2018-1061)

The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.

Replace it with an equivalent non-vulnerable regex.

Also introduce unit and REDOS tests for difflib.

Co-authored-by: Tim Peters &lt;tim.peters@gmail.com&gt;
Co-authored-by: Christian Heimes &lt;christian@python.org&gt;.</content>
</entry>
<entry>
<title>Issue #25523: Correct "a" article to "an" article</title>
<updated>2015-11-02T03:37:02Z</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2015-11-02T03:37:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7462b64911f1e2df2de2285ddbf8b156b5cdc418'/>
<id>urn:sha1:7462b64911f1e2df2de2285ddbf8b156b5cdc418</id>
<content type='text'>
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
</content>
</entry>
<entry>
<title>Issue 21635:  Fix caching in difflib.SequenceMatcher.get_matching_blocks().</title>
<updated>2014-06-21T18:57:36Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2014-06-21T18:57:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fabefc3c5b9e174e4eef2cb351a6ed8c81d721b0'/>
<id>urn:sha1:fabefc3c5b9e174e4eef2cb351a6ed8c81d721b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #20976: pyflakes: Remove unused imports</title>
<updated>2014-03-20T08:16:38Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2014-03-20T08:16:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7fa767e517882f4d3503d168d3a4d4caad317752'/>
<id>urn:sha1:7fa767e517882f4d3503d168d3a4d4caad317752</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #19936: Added executable bits or shebang lines to Python scripts which</title>
<updated>2014-01-16T15:33:23Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-01-16T15:33:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f8ec92de85b40b9e7bec81ae87f18cc3996c560'/>
<id>urn:sha1:8f8ec92de85b40b9e7bec81ae87f18cc3996c560</id>
<content type='text'>
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang lines in the unittestgui and checkpip scripts.
</content>
</entry>
<entry>
<title>Issue #19936: Added executable bits or shebang lines to Python scripts which</title>
<updated>2014-01-16T15:15:49Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-01-16T15:15:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b992a0e102c1dcc8d038983755f792c2f65a233f'/>
<id>urn:sha1:b992a0e102c1dcc8d038983755f792c2f65a233f</id>
<content type='text'>
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang line to use python3 executable in the unittestgui script.
</content>
</entry>
<entry>
<title>#18705: merge with 3.3.</title>
<updated>2013-08-17T12:53:55Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-08-17T12:53:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a3777e525b389ec5881c3f80a482fb821ab3ea5'/>
<id>urn:sha1:9a3777e525b389ec5881c3f80a482fb821ab3ea5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>#18705: fix a number of typos.  Patch by Févry Thibault.</title>
<updated>2013-08-17T12:50:46Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-08-17T12:50:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=30b9d5d3af043fc2687ad11a188a34fe355e20ef'/>
<id>urn:sha1:30b9d5d3af043fc2687ad11a188a34fe355e20ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #13248: removed deprecated and undocumented difflib.isbjunk, isbpopular.</title>
<updated>2013-03-19T23:44:04Z</updated>
<author>
<name>Terry Jan Reedy</name>
<email>tjreedy@udel.edu</email>
</author>
<published>2013-03-19T23:44:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f027a204b0eda96ac6cc2a6ebf9faaab209a981a'/>
<id>urn:sha1:f027a204b0eda96ac6cc2a6ebf9faaab209a981a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>utilize yield from</title>
<updated>2012-10-01T19:53:43Z</updated>
<author>
<name>Philip Jenvey</name>
<email>pjenvey@underboss.org</email>
</author>
<published>2012-10-01T19:53:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4993cc0a5b34dc91da2b41c50e33d809f0191355'/>
<id>urn:sha1:4993cc0a5b34dc91da2b41c50e33d809f0191355</id>
<content type='text'>
</content>
</entry>
</feed>
