summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt5CTestMacros.cmake
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-10 09:49:22 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-10 09:45:34 +0000
commit807240a8831f1b75e945471c129597c4b79a95ea (patch)
tree8d1f1fe464cbd1e9c40b0bf9f489a48de193041a /src/corelib/Qt5CTestMacros.cmake
parentf64737527559e22783b57d30ce8bab9ee517974d (diff)
QJsonParser: fix UB (misaligned store) in Parser::parseNumber()
Found by UBSan: qjsonparser.cpp:741:30: runtime error: store to misaligned address 0x0000019b1e94 for type 'quint64', which requires 8 byte alignment Fix by using the qToLittleEndian() overload that can store to misaligned memory. Change-Id: Ib84bd30b13c68f7fdb8870c9fbbfac15cff0112d Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/Qt5CTestMacros.cmake')
0 files changed, 0 insertions, 0 deletions