diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2025-01-28 03:14:48 +0100 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2025-01-29 20:05:18 +0100 |
| commit | 8e843ddba8de6b9dbe9851856fd4524af5d3c584 (patch) | |
| tree | ece8e4ae4a7f42cdbb79d40e058e75faa313fafd /src/corelib/serialization/qdatastream.cpp | |
| parent | 45e90b73c75b2c7997a0f8d750f9927f64e05a0e (diff) | |
QProgressBar: prevent integer overflow
If `value` is INT_MAX and `lastPaintedValue` is -1 (the default), the
subtraction will overflow. Extend the arguments to 64 bits. The result
is only used for a double comparison anyhow.
Change-Id: Id4a5396c61da81932ac626b3102e583a74264df4
Pick-to: 6.9 6.8
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
0 files changed, 0 insertions, 0 deletions
