Page MenuHomeFreeBSD

Python 3.3 fix for CVE-2016-5699 backported from 3.4
ClosedPublic

Authored by vlad-fbsd_acheronmedia.com on Jul 5 2016, 12:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 24, 7:32 AM
Unknown Object (File)
Fri, Sep 19, 4:28 PM
Unknown Object (File)
Thu, Sep 18, 8:22 PM
Unknown Object (File)
Thu, Sep 18, 8:54 AM
Unknown Object (File)
Thu, Sep 18, 2:57 AM
Unknown Object (File)
Wed, Sep 17, 8:08 AM
Unknown Object (File)
Fri, Sep 12, 2:16 AM
Unknown Object (File)
Sep 5 2025, 11:08 PM

Details

Summary

This is a backport of fix for CVE-2016-5699 from Python 3.4 to 3.3, from upstream. The issue is explained in this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210539

Upstream patch for 3.4 is here: https://hg.python.org/cpython/rev/bf3e1c9b80e9

Modifications that were required to have it run on 3.3 were minimal:

  • lang/python33/files/patch-Lib_http_client.py: re.fullmatch() does not exist, so re.match is used with anchors
  • lang/python33/files/patch-Lib_test_test__httplib.py: in test_invalid_headers() , TestCase.subTest() was thrown out in favor of simple asserts (if one fails, whole test fails)
  • NEWS item was not backported

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

vlad-fbsd_acheronmedia.com retitled this revision from to Python 3.3 fix for CVE-2016-5699 backported from 3.4.
vlad-fbsd_acheronmedia.com updated this object.
vlad-fbsd_acheronmedia.com edited the test plan for this revision. (Show Details)
vlad-fbsd_acheronmedia.com set the repository for this revision to rP FreeBSD ports repository.

@vlad-fbsd_acheronmedia.com can you please add upstream links/references as comments to the headers of these patches please (include issue and commit links if both exist)

@brnrd Can you take care of this if it hasn't been already?

Add patch comment/header from upstream.