diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-18 21:57:20 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-19 10:41:57 +0100 |
| commit | 62a96dbb53d77d6cd7320c6fc8d33ee9c4add0fe (patch) | |
| tree | 2011eff65f63b4582a0728d3315ff67cd0abcb3c /src/gui/doc/snippets/textdocument-css | |
| parent | 390ea21873cf229447c2dcaea85a40e472fab03c (diff) | |
QTextFormat: fix undefined behavior
Left-shifting of negative values is undefined ([expr.shift]/2).
Since hashValue is a uint already, rectify by casting it->key to
uint prior to shifting.
Found by UBSan.
Change-Id: I94a5311f5a4492f514f595b8fb79726df1e7d0de
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css')
0 files changed, 0 insertions, 0 deletions
