summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptengine.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-09-17 08:21:49 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-09-21 04:45:38 (GMT)
commite10797a6f4793b787ddfe3994761733270bbbf68 (patch)
treec47a8f8205ed6009685f0efa06aa71345bdff7dd /doc/src/snippets/code/src_script_qscriptengine.cpp
parenta16de8fbf525785f2c0f6614a918be5d3be27eba (diff)
downloadQt-e10797a6f4793b787ddfe3994761733270bbbf68.zip
Qt-e10797a6f4793b787ddfe3994761733270bbbf68.tar.gz
Qt-e10797a6f4793b787ddfe3994761733270bbbf68.tar.bz2
Fix crash or painting error when drawing dashed lines with penWidth > 1
Since the width is multiplied into the dash, it needs to be divided out, otherwise you can get a dashOffset which is greater than the pattern at the index, and the dash can become negative. This will in turn lead to passing a negative width to the rasterizer, which at some point will get cast to an unsigned int and overflow. Depending on the position of the line and size of the buffer, this will either crash or produce garbled output. Task-number: QT-4444 Reviewed-by: Samuel (cherry picked from commit 603c423fc2ee2b9393e3c288e76354de0e0c1cc7)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions