Go to file
Marc Mutz fb196e8807 QMimeMagicRule: fix UB (misaligned load) in matchNumber<T>()
Found by UBSan:

  qmimemagicrule.cpp:166:53: runtime error: load of misaligned address 0x00000124bcb9 for type 'const short unsigned int', which requires 2 byte alignment
  qmimemagicrule.cpp:166:53: runtime error: load of misaligned address 0x00000124bcb9 for type 'const unsigned int', which requires 4 byte alignment

Fix by using new qUnalignedLoad<T>() instead of a
load through a type-punned pointer and misaligned
pointer.

Change-Id: I6b876f1ce7e01369fbb25a51263d1ad04be07d52
Reviewed-by: David Faure <david.faure@kdab.com>
2016-03-10 10:57:53 +00:00
bin
config.tests alsatest: Fix the check to treat alsalib 1.1.x as correct version 2016-03-07 14:37:29 +00:00
dist
doc Remove WebEngine examples metadata 2016-03-07 14:24:57 +00:00
examples Standarddialogs example: Remove horizontal spacer from fullscreen layout. 2016-02-09 15:24:54 +00:00
lib
mkspecs Disable c++ standard compiler flags for the host build 2016-03-08 19:30:04 +00:00
qmake remove dead code re CONFIG+=generate_pbxbuild_makefile 2016-02-19 17:08:50 +00:00
src QMimeMagicRule: fix UB (misaligned load) in matchNumber<T>() 2016-03-10 10:57:53 +00:00
tests Fix signed integer overflows in tst_QAtomicInteger 2016-03-10 07:17:55 +00:00
tools configure: Fix (Open)SSL detection on WinCE 2016-03-07 09:51:48 +00:00
util Don't use QStringLiteral in comparisons 2016-01-28 18:00:47 +00:00
.gitattributes
.gitignore rewrite qtAddToolEnv() 2016-01-08 09:36:13 +00:00
.qmake.conf Bump version 2016-02-18 07:38:22 +00:00
.tag
configure Merge remote-tracking branch 'origin/5.6.0' into 5.6 2016-02-15 08:09:50 +01:00
configure.bat
header.BSD
header.COMM
header.FDL
header.LGPL3
header.LGPL3-COMM
header.LGPL21
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPLv3
LICENSE.LGPLv3 Bump copyright year to 2016 2016-01-29 13:30:04 +00:00
LICENSE.LGPLv21 Bump copyright year to 2016 2016-01-29 13:30:04 +00:00
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro
sync.profile