summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-01-18 21:52:18 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-01-21 18:43:07 +0100
commit1755038134cfe16d3d52ec2aea543955462e2951 (patch)
tree3199ae7308c4da327ac15ffead5cfa641c79bd76 /src/gui/text
parent6338b1421ef5a9928df25dde5ef62c6b11682da6 (diff)
QFixed: fix undefined behavior
Left-shifting of negative values is undefined ([expr.shift]/2). Use multiplication with 64 instead. There are probably more instances in this class, but this patch already gets rid of vast amounts of ubsan errors in tests/auto/gui/text. Found by UBSan. Change-Id: I89b8bb61e4decba605fe4fb3efea68b1f1eacf1a Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions