[Webkit-unassigned] [Bug 246248] New: [GLib] JPEG2000 decoder may use garbage as alpha value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 8 06:18:48 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246248
Bug ID: 246248
Summary: [GLib] JPEG2000 decoder may use garbage as alpha value
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
CC: sabouhallawa at apple.com
Caught by Clang with -Werror=conditional-uninitialized, inside JPEG2000Decoder::decode():
/app/webkit/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:546:56: error: variable 'a' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
int adjustedAlpha = image->numcomps > 3 ? (a >> adjust[3]) + ((a >> (adjust[3] - 1)) % 2) : 0xFF;
^
/app/webkit/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:506:27: note: initialize the variable 'a' to silence this warning
int r, g, b, a;
^
= 0
1 error generated.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221008/f9d80ab0/attachment.htm>
More information about the webkit-unassigned
mailing list