Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7
-
None
-
f5cafb6f1 (dev), a85c3939d (6.7), dabf8b687 (tqtc/lts-6.5)
Description
With the attached ICC profile, the following code:
QFile file("/path/to/cali2-BenQ_SW271_24-02-28.icc"); if (!file.open(QIODevice::ReadOnly)) return; QColorSpace colorSpace = QColorSpace::fromIccProfile(file.readAll()); file.close(); qDebug() << colorSpace.isValid();
Reports an invalid color space and writes the warning:
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
The ICC profile contains a tag with the signature "DDPS" whose element size is 9. The corresponding data has type signature "text", which if I understand the ICC specification correctly, would be valid because it just needs the standard 8 byte intro that all tag data has, plus at least one for the text's null terminator. It seems that the tag size sanity check is being overly aggressive.
Attachments
For Gerrit Dashboard: QTBUG-125241 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
561011,2 | Make minimal tag size more accepting | dev | qt/qtbase | Status: MERGED | +2 | 0 |
561381,3 | Make minimal tag size more accepting | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
561500,2 | Make minimal tag size more accepting | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |