summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qfactoryloader_p.h
diff options
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2025-03-26 12:46:57 +0100
committerRobert Löhning <robert.loehning@qt.io>2025-04-30 20:51:40 +0000
commit2b7ecfab7d8cb149ffc02285906f95906f2f1343 (patch)
tree07969989caebb36509d4bc0904dcb1c4546b34cd /src/corelib/plugin/qfactoryloader_p.h
parent70d3293d72a1a612d375447a6f46ea223be1f9cd (diff)
Fix qRound(inf) assertHEADdev
In some extreme cases we can return a finite float, and then turn it infinite when multiplying it to calculate the index positions. Avoid the whole thing by clamping to a brightness of +-32768 times the white point standard, which is well within current HDR standards. Credit to OSS-Fuzz which detected the assert. Pick-to: 6.9 6.8 Change-Id: If007732a8d59ea27514f17674d318a099a057281 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Diffstat (limited to 'src/corelib/plugin/qfactoryloader_p.h')
0 files changed, 0 insertions, 0 deletions
close