<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/difflib.py, branch enum-lost-fixes</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>[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)</title>
<updated>2021-10-07T15:49:47+00:00</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2021-10-07T15:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cfca4a67745cb9ed040fade3fd54f5002a6e75a6'/>
<id>cfca4a67745cb9ed040fade3fd54f5002a6e75a6</id>
<content type='text'>
Fix typos in the Lib directory as identified by codespell.

Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;.
(cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be)

Co-authored-by: Christian Clauss &lt;cclauss@me.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix typos in the Lib directory as identified by codespell.

Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;.
(cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be)

Co-authored-by: Christian Clauss &lt;cclauss@me.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505)</title>
<updated>2021-09-21T21:53:47+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-21T21:53:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e6b6c1d23b3702052637f70551451d12695403a1'/>
<id>e6b6c1d23b3702052637f70551451d12695403a1</id>
<content type='text'>
(cherry picked from commit 06e1773c8d8fe375423bb7fcf5922b49bc737b75)

Co-authored-by: Nikita Sobolev &lt;mail@sobolevn.me&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 06e1773c8d8fe375423bb7fcf5922b49bc737b75)

Co-authored-by: Nikita Sobolev &lt;mail@sobolevn.me&gt;</pre>
</div>
</content>
</entry>
<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>
</feed>
