Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 25, 2017

Original patch by Demian Brecht.

Changed for the 3.3 backport:

  • remove subTest() from change
  • _is_legal_header_name regex: replace .fullmatch with .match, but
    add \A at start and \Z at end of the regex

(cherry picked from commit a112a8a)

https://bugs.python.org/issue22928

Original patch by Demian Brecht.

Changed for the 3.3 backport:

* remove subTest() from change
* _is_legal_header_name regex: replace .fullmatch with .match, but
  add \A at start and \Z at end of the regex

(cherry picked from commit a112a8a)
@vstinner vstinner added the type-security A security issue label Jul 25, 2017
@vstinner vstinner changed the title [3.3][security] Issue #22928: Disabled HTTP header injections in http.client. [3.3][security] bpo-22928: Disabled HTTP header injections in http.client Jul 25, 2017
@vstinner
Copy link
Member Author

About the CI: test_pty failed once, but passed when run again.

It seems like on 3.3, if a test fails once, the overall test suite is considered as failed, even if the test pass when run again. On all other branches, regrtest would succeed in that case.

@vstinner
Copy link
Member Author

I scheduled a new Travis CI run and now all tests fail (test_pty didn't fail).

@vstinner
Copy link
Member Author

Oh, @serhiy-storchaka proposed almost the same PR a few days ago: PR #2817. I will close this one, once @serhiy-storchaka updated his PR with my suggestions.

@vstinner
Copy link
Member Author

Abandonned in favor of @serhiy-storchaka PR #2817 which now LGTM.

@vstinner vstinner closed this Jul 25, 2017
@vstinner vstinner deleted the http_injection33 branch July 25, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants