summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2025-11-14 20:58:24 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2025-11-26 12:44:17 +0100
commit8f4f197347d94ca15d2203409d248370d941341d (patch)
tree73ce158e178d06bd7605253dc2a35075ccb57ad0 /src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp
parentd9d9b79ee8ad850dfe74234a36fdd1fae1c64d3f (diff)
QPicture: Avoid crashing when exceeding max buffer sizeHEADdev
QPicture uses int-based addressing, and hence has a 2G size limit. Very unlikely to be reached outside of test apps, the limit was not checked and overflow would lead to crash. Fix by rejecting to add further painting operations once the limit is reached. Fixes: QTBUG-141912 Pick-to: 6.10 6.8 Change-Id: I3f0c1c3bad05a589fff5d453f43ad390cc9685c9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Diffstat (limited to 'src/plugins/platforms/direct2d/qwindowsdirect2ddevicecontext.cpp')
0 files changed, 0 insertions, 0 deletions