summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libwebp/src/dec/alphai_dec.h
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2024-06-03 15:10:43 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2024-06-03 15:47:15 +0200
commit7ab89526084bdf0118abb31c8e2f980b619a7b3a (patch)
tree7dbea42ce7833636aadd6f7536b50fd83556667b /src/3rdparty/libwebp/src/dec/alphai_dec.h
parent138fe46bcab6e893b97aeb9ee29c3d56bf711741 (diff)
Fix macjp2 canRead() functionHEADdev
The canRead() function is supposed to check for the presence of a 12 byte magic number (header). It used qstrncmp() for this, but as the byte sequence starts with 0 values, the comparison would end after the first byte, and any data also starting with a 0 value would be taken as matching. This would make QImageReader mis-identify the image format of image data where an explicit suffix or data format was lacking, resulting in image reading failures. The macheif autotest would hit this issue and fail erroneously. Pick-to: 6.8 6.7 6.5 Change-Id: I39b1ba9a344478fe1255c89f19488f0bc54d2ec1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/3rdparty/libwebp/src/dec/alphai_dec.h')
0 files changed, 0 insertions, 0 deletions