diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-03-06 15:06:48 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-09 05:41:41 +0000 |
commit | fb7ef2b9f5cbc375fb35690326501be6a117314d (patch) | |
tree | 7d426d1a8f1d5247f81e133de34427fdfa4d3787 /src/gui/kernel/qguiapplication_p.h | |
parent | e69e69519661954716d59bfa5bbd0626515cfda9 (diff) |
QCosmeticStroker: fix out-of-bounds access in drawPixel()
Found by UBSan:
src/gui/painting/qcosmeticstroker.cpp:150:55: runtime error: index -1 out of bounds for type 'QT_FT_Span_ [255]'
src/gui/painting/qcosmeticstroker.cpp:150:99: runtime error: index -1 out of bounds for type 'QT_FT_Span_ [255]'
src/gui/painting/qcosmeticstroker.cpp:151:55: runtime error: index -1 out of bounds for type 'QT_FT_Span_ [255]'
That code path makes no sense if no span has been populated
yet, so skip the whole block if current_span == 0.
Change-Id: I832b989e89c118dc48ab5add3a28bb44c1936a76
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication_p.h')
0 files changed, 0 insertions, 0 deletions