qt5base-lts/tools/configure
Giuseppe D'Angelo 33984e72ab QHash security fix (1/2): add global QHash seed
Algorithmic complexity attacks against hash tables have been known
since 2003 (cf. [1, 2]), and they have been left unpatched for years
until the 2011 attacks [3] against many libraries /
(reference) implementations of programming languages.

This patch adds a global integer, to be used as a seed for the hash
function itself. The seed is randomly initialized the first time a
QHash detaches from shared_null.

Right now the seed is not used at all -- another patch will modify
qHash to make use of it.

[1] http://www.cs.rice.edu/~scrosby/hash/CrosbyWallach_UsenixSec2003.pdf
[2] http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-Attacks
[3] http://www.ocert.org/advisories/ocert-2011-003.html

Task-number: QTBUG-23529
Change-Id: I7519e4c02b9c2794d1c14079b01330eb356e9c65
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-04-03 19:12:13 +02:00
..
configure_pch.h QHash security fix (1/2): add global QHash seed 2012-04-03 19:12:13 +02:00
configure.pro Compile QArrayData in bootstrap phase. 2012-03-29 11:28:41 +02:00
configureapp.cpp Remove the -no-stl option from configure 2012-03-28 16:31:34 +02:00
configureapp.h Sync configure with Unix version (-make/-nomake) 2012-03-27 03:36:30 +02:00
environment.cpp Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
environment.h Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
main.cpp Remove -arch argument and #define QT_ARCH from configures 2012-03-13 12:27:44 +01:00
Makefile.mingw Compile QArrayData in bootstrap phase. 2012-03-29 11:28:41 +02:00
Makefile.win32 Compile QArrayData in bootstrap phase. 2012-03-29 11:28:41 +02:00
tools.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
tools.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00