cpython/Lib/encodings
Gregory P. Smith d315722564
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.
2022-11-07 16:54:41 -08:00
..
__init__.py bpo-46659: Fix the MBCS codec alias on Windows (GH-31218) 2022-02-22 22:04:07 +01:00
aliases.py bpo-34519: Add additional aliases for HP Roman 8 (GH-8956) 2019-09-11 14:08:41 +01:00
ascii.py
base64_codec.py
big5.py
big5hkscs.py
bz2_codec.py
charmap.py
cp037.py
cp273.py
cp424.py
cp437.py
cp500.py
cp720.py
cp737.py
cp775.py
cp850.py
cp852.py
cp855.py
cp856.py
cp857.py
cp858.py
cp860.py
cp861.py
cp862.py
cp863.py
cp864.py
cp865.py
cp866.py
cp869.py
cp874.py
cp875.py
cp932.py
cp949.py
cp950.py
cp1006.py
cp1026.py
cp1125.py
cp1140.py
cp1250.py
cp1251.py
cp1252.py
cp1253.py
cp1254.py
cp1255.py
cp1256.py
cp1257.py
cp1258.py
euc_jis_2004.py
euc_jisx0213.py
euc_jp.py
euc_kr.py
gb2312.py
gb18030.py
gbk.py
hex_codec.py
hp_roman8.py Add some "used with permission" mentions where external resources are referenced. 2016-01-15 09:53:51 -08:00
hz.py
idna.py gh-98433: Fix quadratic time idna decoding. (#99092) 2022-11-07 16:54:41 -08:00
iso2022_jp.py
iso2022_jp_1.py
iso2022_jp_2.py
iso2022_jp_3.py
iso2022_jp_2004.py
iso2022_jp_ext.py
iso2022_kr.py
iso8859_1.py
iso8859_2.py
iso8859_3.py
iso8859_4.py
iso8859_5.py
iso8859_6.py
iso8859_7.py
iso8859_8.py
iso8859_9.py
iso8859_10.py
iso8859_11.py
iso8859_13.py
iso8859_14.py
iso8859_15.py
iso8859_16.py
johab.py
koi8_r.py
koi8_t.py Added forgotten new files for issues #22681 and #22682. 2015-05-13 00:34:53 +03:00
koi8_u.py
kz1048.py Added forgotten new files for issues #22681 and #22682. 2015-05-13 00:34:53 +03:00
latin_1.py
mac_arabic.py
mac_croatian.py
mac_cyrillic.py
mac_farsi.py
mac_greek.py
mac_iceland.py
mac_latin2.py
mac_roman.py
mac_romanian.py
mac_turkish.py
mbcs.py
oem.py Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup 2016-09-06 19:42:27 -07:00
palmos.py
ptcp154.py
punycode.py bpo-30566: Fix IndexError when using punycode codec (GH-18632) 2020-02-25 06:19:03 +03:00
quopri_codec.py Issue #16473: Fix byte transform codec documentation; test quotetabs=True 2015-09-12 00:34:28 +00:00
raw_unicode_escape.py bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) 2021-10-14 20:04:19 +03:00
rot_13.py bpo-32943: Fix confusing error message for rot13 codec (GH-5869) 2018-03-25 12:09:21 +08:00
shift_jis.py
shift_jis_2004.py
shift_jisx0213.py
tis_620.py
undefined.py
unicode_escape.py bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) 2021-10-14 13:17:00 +03:00
utf_7.py
utf_8.py
utf_8_sig.py
utf_16.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
utf_16_be.py
utf_16_le.py
utf_32.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
utf_32_be.py
utf_32_le.py
uu_codec.py bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (#17418) 2019-12-02 14:25:21 -08:00
zlib_codec.py