]> granicus.if.org Git - python/commit
Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types...
authorGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 20:31:46 +0000 (21:31 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 20:31:46 +0000 (21:31 +0100)
commit09a7c72cad48f568e0781541167cf9ea6a3f0760
treed925894bfc3662e33c03ff7b6b2c5e9e38749b73
parentfee358b0df547e9451cfb0b3d25980e6cc7177cc
parent2daf6ae2495c862adf8bc717bfe9964081ea0b10
Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
31 files changed:
Doc/library/sys.rst
Doc/reference/datamodel.rst
Doc/using/cmdline.rst
Include/object.h
Include/pydebug.h
Include/pythonrun.h
Lib/os.py
Lib/test/mapping_tests.py
Lib/test/regrtest.py
Lib/test/script_helper.py
Lib/test/test_cmd_line.py
Lib/test/test_descr.py
Lib/test/test_gdb.py
Lib/test/test_hash.py
Lib/test/test_os.py
Lib/test/test_set.py
Lib/test/test_sys.py
Lib/test/test_urllib.py
Lib/test/test_urlparse.py
Makefile.pre.in
Misc/NEWS
Misc/python.man
Modules/_datetimemodule.c
Modules/main.c
Modules/posixmodule.c
Objects/bytesobject.c
Objects/object.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcproj
Python/pythonrun.c
Python/sysmodule.c