diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-05-08 15:24:14 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-05-15 13:50:55 +0200 |
commit | c04bd30de072793faee5166cff866a4c4e0a9dd7 (patch) | |
tree | e5f8a17dc452fb5120e72b00767da9748f53b0eb /src/corelib | |
parent | ebddd02896709d5856dc73f1a4f1479133c7ed2f (diff) |
Guard against numerical overflow when processing QPainterPaths
Many operations on and with QPainterPaths do calculations on the path
coordinates, e.g. computing the distance between points, which may cause
numerical overflow for extreme coordinate values. This patch
introduces a limit on the coordinate values and extends the previous
check against nan/inf coordinates to also check against out of range
coordinates.
Fixes: QTBUG-75574
Change-Id: I3a2fa88bfc6a9f19934c43d3dbbfb41855c78107
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions