<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/difflib.py, branch faster-bytes-iter</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-40394 - difflib.SequenceMatched.find_longest_match default args (GH-19742)</title>
<updated>2020-04-30T03:42:45+00:00</updated>
<author>
<name>lrjball</name>
<email>50599110+lrjball@users.noreply.github.com</email>
</author>
<published>2020-04-30T03:42:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3209cbd99b6d65aa18b3beb124fac9c792b8993d'/>
<id>3209cbd99b6d65aa18b3beb124fac9c792b8993d</id>
<content type='text'>
* bpo-40394 - difflib.SequenceMatched.find_longest_match default args

Added default args to find_longest_match, as well as related tests.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-40394 - difflib.SequenceMatched.find_longest_match default args

Added default args to find_longest_match, as well as related tests.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39481: PEP 585 for difflib, filecmp, fileinput (#19422)</title>
<updated>2020-04-10T04:47:31+00:00</updated>
<author>
<name>Ethan Smith</name>
<email>ethan@ethanhs.me</email>
</author>
<published>2020-04-10T04:47:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e3ec44d692d9442e640cf5b2d8708157a65cec3e'/>
<id>e3ec44d692d9442e640cf5b2d8708157a65cec3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38738: Fix formatting of True and False. (GH-17083)</title>
<updated>2019-11-12T14:57:03+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-11-12T14:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=138ccbb02216ca086047c3139857fb44f3dab1f9'/>
<id>138ccbb02216ca086047c3139857fb44f3dab1f9</id>
<content type='text'>
* "Return true/false" is replaced with "Return ``True``/``False``"
  if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns &lt;bool&gt;" is replaced with "Return &lt;bool&gt;".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* "Return true/false" is replaced with "Return ``True``/``False``"
  if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns &lt;bool&gt;" is replaced with "Return &lt;bool&gt;".
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix difflib `?` hint in diff output when dealing with tabs (#15201)</title>
<updated>2019-08-21T18:59:25+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-08-21T18:59:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e1c638da6a065af6803028ced1afcc679e63f59d'/>
<id>e1c638da6a065af6803028ced1afcc679e63f59d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356)</title>
<updated>2019-01-02T12:49:25+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-01-02T12:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=830ddc74c495ac1a5c03172a31006074967571a3'/>
<id>830ddc74c495ac1a5c03172a31006074967571a3</id>
<content type='text'>
This reverts commit 78de01198b047347abc5e458851bb12c48429e24.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 78de01198b047347abc5e458851bb12c48429e24.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)</title>
<updated>2018-12-29T08:53:14+00:00</updated>
<author>
<name>Xtreak</name>
<email>tir.karthi@gmail.com</email>
</author>
<published>2018-12-29T08:53:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=78de01198b047347abc5e458851bb12c48429e24'/>
<id>78de01198b047347abc5e458851bb12c48429e24</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381)</title>
<updated>2018-04-05T18:19:57+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-04-05T18:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=01b731fc2b04744a11e32f93aba8bfb9ddb3dd29'/>
<id>01b731fc2b04744a11e32f93aba8bfb9ddb3dd29</id>
<content type='text'>

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32981: Fix catastrophic backtracking vulns (#5955)</title>
<updated>2018-03-04T05:33:32+00:00</updated>
<author>
<name>Jamie Davis</name>
<email>davisjam@vt.edu</email>
</author>
<published>2018-03-04T05:33:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0e6c8ee2358a2e23117501826c008842acb835ac'/>
<id>0e6c8ee2358a2e23117501826c008842acb835ac</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29762: More use "raise from None". (#569)</title>
<updated>2017-04-05T06:37:24+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-04-05T06:37:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5affd23e6f42125998724787025080a24839266e'/>
<id>5affd23e6f42125998724787025080a24839266e</id>
<content type='text'>
This hides unwanted implementation details from tracebacks.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This hides unwanted implementation details from tracebacks.</pre>
</div>
</content>
</entry>
<entry>
<title>#27364: fix "incorrect" uses of escape character in the stdlib.</title>
<updated>2016-09-08T17:59:53+00:00</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2016-09-08T17:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=44b548dda872c0d4f30afd6b44fd74b053a55ad8'/>
<id>44b548dda872c0d4f30afd6b44fd74b053a55ad8</id>
<content type='text'>
And most of the tools.

Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And most of the tools.

Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
</pre>
</div>
</content>
</entry>
</feed>
