cpython/Lib/test
Victor Stinner 524b8de630
bpo-39603: Prevent header injection in http methods (GH-18485) (#21946)
reject control chars in http method in http.client.putrequest to prevent http header injection

(cherry picked from commit 8ca8a2e8fb)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
2020-09-03 17:54:15 -07:00
..
audiodata
capath [3.5] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (#13200) 2019-07-13 17:35:34 +02:00
cjkencodings
crashers
data
decimaltestdata
eintrdata
encoded_modules
imghdrdata
leakers
sndhdrdata
subprocessdata
support
test_asyncio bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
test_email bpo-39073: validate Address parts to disallow CRLF (#19007) (#20450) 2020-06-12 08:33:19 -07:00
test_import
test_importlib
test_json
test_tools
test_warnings
tracedmodules
xmltestdata
__init__.py
__main__.py
_test_multiprocessing.py
allsans.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
audiotest.au
audiotests.py
autotest.py
bad_coding.py
bad_coding2.py
badcert.pem
badkey.pem
badsyntax_3131.py
badsyntax_async1.py
badsyntax_async2.py
badsyntax_async3.py
badsyntax_async4.py
badsyntax_async5.py
badsyntax_async6.py
badsyntax_async7.py
badsyntax_async8.py
badsyntax_future3.py
badsyntax_future4.py
badsyntax_future5.py
badsyntax_future6.py
badsyntax_future7.py
badsyntax_future8.py
badsyntax_future9.py
badsyntax_future10.py
badsyntax_pep3120.py
bisect.py
bytecode_helper.py
cfgparser.1
cfgparser.2
cfgparser.3
cmath_testcases.txt
coding20731.py
curses_tests.py
datetimetester.py
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt
ffdh3072.pem bpo-41183: Update finite DH params to 3072 bits (#21278) 2020-07-02 05:32:05 -07:00
final_a.py
final_b.py
floating_points.txt
fork_wait.py
formatfloat_testcases.txt
future_test1.py
future_test2.py
gdb_sample.py
ieee754.txt
imp_dummy.py
inspect_fodder.py
inspect_fodder2.py
keycert.passwd.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
keycert.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
keycert2.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
keycert3.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
keycert4.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
list_tests.py
lock_tests.py
mailcap.txt
make_ssl_certs.py bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py
mod_generics_cache.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
nokia.pem
nullbytecert.pem
nullcert.pem
outstanding_bugs.py
pickletester.py
profilee.py
pstats.pck
pycacert.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
pycakey.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pystone.py
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar [3.5] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (#21489) 2020-07-16 12:48:01 -07:00
regrtest.py
relimport.py
reperf.py
revocation.crl bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
sample_doctest.py
sample_doctest_no_docstrings.py
sample_doctest_no_doctests.py
selfsigned_pythontestdotnet.pem [3.5] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (#13200) 2019-07-13 17:35:34 +02:00
seq_tests.py
sgml_input.html
sha256.pem
Sine-1000Hz-300ms.aif
sortperf.py
ssl_cert.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
ssl_key.passwd.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
ssl_key.pem bpo-41183: Update test certs and keys (#21258) 2020-07-02 00:07:15 -07:00
ssl_servers.py
ssltests.py
string_tests.py
talos-2019-0758.pem bpo-35746: Fix segfault in ssl's cert parser (GH-11569) (#11867) 2019-02-25 16:17:02 -08:00
test___all__.py
test___future__.py
test__locale.py
test__opcode.py
test__osx_support.py
test_abc.py
test_abstract_numbers.py
test_aifc.py
test_argparse.py
test_array.py
test_asdl_parser.py
test_ast.py
test_asynchat.py
test_asyncore.py
test_atexit.py
test_audioop.py
test_augassign.py
test_base64.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binhex.py
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py
test_bufio.py
test_builtin.py
test_bytes.py
test_bz2.py
test_calendar.py
test_call.py
test_capi.py
test_cgi.py
test_cgitb.py
test_charmapcodec.py
test_class.py
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py [3.5] bpo-32551: Consistently configure sys.path[0] (#5197) 2018-01-23 02:48:11 -08:00
test_code.py
test_code_module.py
test_codeccallbacks.py
test_codecencodings_cn.py
test_codecencodings_hk.py
test_codecencodings_iso2022.py
test_codecencodings_jp.py
test_codecencodings_kr.py
test_codecencodings_tw.py
test_codecmaps_cn.py
test_codecmaps_hk.py
test_codecmaps_jp.py
test_codecmaps_kr.py
test_codecmaps_tw.py
test_codecs.py
test_codeop.py
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py
test_compileall.py
test_complex.py
test_concurrent_futures.py
test_configparser.py
test_contains.py
test_contextlib.py
test_copy.py
test_copyreg.py
test_coroutines.py
test_cprofile.py
test_crashers.py
test_crypt.py
test_csv.py
test_ctypes.py
test_curses.py
test_datetime.py
test_dbm.py [3.5] bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632) 2019-10-28 22:56:33 -07:00
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py [3.5] bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632) 2019-10-28 22:56:33 -07:00
test_decimal.py
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py
test_descrtut.py
test_devpoll.py
test_dict.py
test_dictcomps.py
test_dictviews.py
test_difflib.py [3.5] bpo-32981: Fix catastrophic backtracking vulns (GH-5955) (#6034) 2018-03-11 18:29:05 +00:00
test_difflib_expect.html
test_dis.py
test_distutils.py
test_doctest.py
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) (GH-16441) (#16516) 2019-10-28 22:40:15 -07:00
test_dummy_thread.py
test_dummy_threading.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py
test_ensurepip.py
test_enum.py
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_exception_variations.py
test_exceptions.py
test_extcall.py
test_faulthandler.py
test_fcntl.py
test_file.py
test_file_eintr.py
test_filecmp.py
test_fileinput.py
test_fileio.py
test_finalization.py
test_float.py
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py
test_fractions.py
test_frame.py
test_ftplib.py [3.5] [security] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) (#2887) 2017-07-26 03:04:42 -04:00
test_funcattrs.py
test_functools.py
test_future.py
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py
test_generators.py
test_genericpath.py
test_genexps.py
test_getargs2.py
test_getopt.py
test_getpass.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py
test_grp.py
test_gzip.py
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py
test_http_cookiejar.py bpo-38804: Fix REDoS in http.cookiejar (GH-17157) (#17344) 2020-04-02 18:37:32 -07:00
test_http_cookies.py
test_httplib.py bpo-39603: Prevent header injection in http methods (GH-18485) (#21946) 2020-09-03 17:54:15 -07:00
test_httpservers.py
test_idle.py
test_imaplib.py
test_imghdr.py
test_imp.py
test_index.py
test_inspect.py
test_int.py
test_int_literal.py
test_io.py
test_ioctl.py
test_ipaddress.py [3.5] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) (#21233) 2020-08-03 19:33:30 -07:00
test_isinstance.py
test_iter.py
test_iterlen.py
test_itertools.py
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py
test_lib2to3.py
test_linecache.py
test_list.py
test_listcomps.py
test_locale.py
test_logging.py
test_long.py
test_longexp.py
test_lzma.py
test_macpath.py
test_macurl2path.py
test_mailbox.py
test_mailcap.py
test_marshal.py
test_math.py
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py
test_module.py
test_modulefinder.py
test_msilib.py
test_multibytecodec.py
test_multiprocessing_fork.py
test_multiprocessing_forkserver.py
test_multiprocessing_main_handling.py
test_multiprocessing_spawn.py
test_netrc.py
test_nis.py
test_nntplib.py
test_normalization.py
test_ntpath.py
test_numeric_tower.py
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_ordered_dict.py
test_os.py [3.5] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (#5991) 2018-05-14 14:03:17 -04:00
test_ossaudiodev.py
test_osx_env.py
test_parser.py
test_pathlib.py
test_pdb.py
test_peepholer.py
test_pep247.py
test_pep277.py
test_pep352.py
test_pep380.py
test_pep479.py
test_pep3120.py
test_pep3131.py
test_pep3151.py
test_pickle.py
test_pickletools.py
test_pipes.py
test_pkg.py
test_pkgimport.py
test_pkgutil.py
test_platform.py
test_plistlib.py [3.5] bpo-32072: Fix issues with binary plists. (GH-4455) (#4656) 2018-01-23 03:21:21 -08:00
test_poll.py
test_popen.py
test_poplib.py [3.5] bpo-32981: Fix catastrophic backtracking vulns (GH-5955) (#6034) 2018-03-11 18:29:05 +00:00
test_posix.py
test_posixpath.py
test_pow.py
test_pprint.py
test_print.py
test_profile.py
test_property.py
test_pstats.py
test_pty.py
test_pulldom.py
test_pwd.py
test_py_compile.py
test_pyclbr.py
test_pydoc.py
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py
test_readline.py
test_regrtest.py
test_reprlib.py
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py
test_sax.py
test_sched.py
test_scope.py
test_script_helper.py
test_select.py
test_selectors.py
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py
test_signal.py
test_site.py
test_slice.py
test_smtpd.py
test_smtplib.py
test_smtpnet.py
test_sndhdr.py
test_socket.py
test_socketserver.py
test_sort.py
test_source_encoding.py
test_spwd.py
test_sqlite.py
test_ssl.py bpo-41183: Update finite DH params to 3072 bits (#21278) 2020-07-02 05:32:05 -07:00
test_startfile.py
test_stat.py
test_statistics.py
test_strftime.py
test_string.py
test_stringprep.py
test_strlit.py
test_strptime.py
test_strtod.py
test_struct.py
test_structmembers.py
test_structseq.py
test_subprocess.py
test_sunau.py
test_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py
test_sys.py
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
test_syslog.py
test_tarfile.py [3.5] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (#21489) 2020-07-16 12:48:01 -07:00
test_tcl.py
test_telnetlib.py
test_tempfile.py
test_textwrap.py
test_thread.py
test_threaded_import.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py
test_timeit.py
test_timeout.py
test_tix.py
test_tk.py
test_tokenize.py
test_trace.py
test_traceback.py
test_tracemalloc.py
test_ttk_guionly.py
test_ttk_textonly.py
test_tuple.py
test_turtle.py
test_typechecks.py
test_types.py
test_typing.py
test_ucn.py
test_unary.py
test_unicode.py
test_unicode_file.py
test_unicodedata.py
test_unittest.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_urllib.py [3.5] closes bpo-38576: Disallow control characters in hostnames in http.client. (#19300) 2020-06-19 23:43:50 -07:00
test_urllib2.py bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (#19305) 2020-06-19 23:26:58 -07:00
test_urllib2_localnet.py
test_urllib2net.py bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (#11874) 2019-02-25 15:16:36 -08:00
test_urllib_response.py
test_urllibnet.py
test_urlparse.py bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) (GH-13814) (#14772) 2019-09-07 07:33:24 +01:00
test_userdict.py
test_userlist.py
test_userstring.py
test_uu.py bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418) (GH-17444) (#17445) 2020-03-20 22:42:50 -07:00
test_uuid.py
test_venv.py
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py
test_winreg.py
test_winsound.py
test_with.py
test_wsgiref.py
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py
test_xml_etree_c.py
test_xmlrpc.py bpo-30458: Disallow control chars in http URLs. (GH-12755) (#13207) 2019-07-14 11:07:11 +02:00
test_xmlrpc_net.py [3.5] bpo-32620: Remove failing pyenv call from CI config (#5274) 2018-01-23 01:10:43 -08:00
test_zipapp.py
test_zipfile.py
test_zipfile64.py
test_zipimport.py
test_zipimport_support.py
test_zlib.py
testcodec.py
testtar.tar
tf_inherit_check.py
threaded_import_hangers.py
time_hashlib.py
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests.txt
win_console_handler.py
wrongcert.pem
xmltests.py
zip_cp437_header.zip
zipdir.zip