diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-03-10 09:49:22 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-10 09:45:34 +0000 |
commit | 807240a8831f1b75e945471c129597c4b79a95ea (patch) | |
tree | 8d1f1fe464cbd1e9c40b0bf9f489a48de193041a /src/corelib/animation | |
parent | f64737527559e22783b57d30ce8bab9ee517974d (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/animation')
0 files changed, 0 insertions, 0 deletions