summaryrefslogtreecommitdiffstats
path: root/src/src.pro
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-01-06 07:38:50 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-01-06 16:59:40 +0000
commitafefed06952d5edd5c6be4376469b022975930cf (patch)
treef8b3da47643a9fd958c1d25f711502e18bd93928 /src/src.pro
parentf4d3c87f0caab71f15e12f0f376f94a3e90a8adf (diff)
QAndroidStyle: fix UB (signed integer overflow) in AndroidProgressBarControl::drawControl()
The expression 'maximum - minimum' has undefined behavior when 'qint64(maximum) - minimum > INT_MAX'. Use 64-bit arithmetic instead. Also fix calculation of the progress when minimum != 0. Rename QStyleOptionProgressBar* variable to avoid line wraps. Change-Id: I1d48a7930e7f6d69798c2e878bb0045d55c2f057 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions