diff options
author | Gregory P. Smith <greg@krypto.org> | 2022-11-08 00:54:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 00:54:41 (GMT) |
commit | d315722564927c7202dd6e111dc79eaf14240b0d (patch) | |
tree | 328a7944a0194dfb3cff8cd6433eb69ff7e4e518 /Lib/test/test_builtin.py | |
parent | 9430d27355c9f7d386abdac30d688dd6b68bb067 (diff) | |
download | cpython-d315722564927c7202dd6e111dc79eaf14240b0d.zip cpython-d315722564927c7202dd6e111dc79eaf14240b0d.tar.gz cpython-d315722564927c7202dd6e111dc79eaf14240b0d.tar.bz2 |
gh-98433: Fix quadratic time idna decoding. (#99092)
There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.
This also adds an early length check in IDNA decoding to outright reject
huge inputs early on given the ultimate result is defined to be 63 or fewer
characters.
Diffstat (limited to 'Lib/test/test_builtin.py')
0 files changed, 0 insertions, 0 deletions