diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-26 22:05:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2019-06-26 22:05:04 (GMT) |
commit | b950cdb4beabeb093fa3ccc35f53d51cc0193aba (patch) | |
tree | 72c465d5287f25bcd573ceaaad28ae49d2eff86c /PC/python_uwp.cpp | |
parent | 6ef103fbdbc05adbc20838c94b1f0c40fa6c159a (diff) | |
download | cpython-b950cdb4beabeb093fa3ccc35f53d51cc0193aba.zip cpython-b950cdb4beabeb093fa3ccc35f53d51cc0193aba.tar.gz cpython-b950cdb4beabeb093fa3ccc35f53d51cc0193aba.tar.bz2 |
bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14412)
* patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS.
* Raise HeaderParseError instead of continuing when parsing a word.
(cherry picked from commit 7213df7bbfd85378c6e42e1ac63144d5974bdcf6)
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Diffstat (limited to 'PC/python_uwp.cpp')
0 files changed, 0 insertions, 0 deletions