Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(277476@main): [GTK] Crash in WebCore::GIFImageDecoder::hav…
…eDecodedRow https://bugs.webkit.org/show_bug.cgi?id=274027 Reviewed by Carlos Garcia Campos. Confusingly, the "size" of the color maps is defined in 3-byte units, so size in bytes is actually 3x the "size" of the color map. Chris understandably missed this when converting the code to use std::span. Now we're reading off the end of the span. This triggers libstdc++ runtime assertions, but the assertions are disabled by default, so our EWS bots did not notice. Distros do (or should) enable the assertions using something like -DCMAKE_CXX_FLAGS="-Wp,-D_GLIBCXX_ASSERTIONS". * Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp: (WebCore::GIFImageDecoder::haveDecodedRow): * Source/WebCore/platform/image-decoders/gif/GIFImageReader.h: (GIFImageReader::globalColormap const): (GIFImageReader::localColormap const): Canonical link: https://commits.webkit.org/278739@main
- Loading branch information