summaryrefslogtreecommitdiffstats
path: root/src/corelib/json/qjsonparser.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-09 16:27:47 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-10 07:17:55 +0000
commitf64737527559e22783b57d30ce8bab9ee517974d (patch)
tree1d563dbbcd65e58f2a05d4c8b64a30fb828837e1 /src/corelib/json/qjsonparser.cpp
parent85a57f7a2e85ac61bb65e66b003cb21f58d5a5b7 (diff)
Fix signed integer overflows in tst_QAtomicInteger
Signed integer overflows and underflows are undefined behavior. A test that invokes UB tests nothing, because the standard permits any outcome. Fix by guarding the respective operations so they are not executed if they would overflow or underflow. Change-Id: I40354ee88f40e4b47b70eac7790dc3a79ac70a57 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/json/qjsonparser.cpp')
0 files changed, 0 insertions, 0 deletions