GraphicsMagick: ReadWPGImage(): If pixel cache was not initializ...
GraphicsMagick Commits <[email protected]> Sat, 14 Oct 2023 10:57:26 -0500
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.8547.1697299060.1462.graphicsmagick-commit@lists.sourceforge.net> |
changeset a6a8699a7b1a in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=a6a8699a7b1a summary: ReadWPGImage(): If pixel cache was not initialized at all, then set DirectClass pixels as well. diffstat: ChangeLog | 2 ++ coders/wpg.c | 2 ++ www/Changelog.html | 4 +++- 3 files changed, 7 insertions(+), 1 deletions(-) diffs (38 lines): diff -r 2fd2e662359d -r a6a8699a7b1a ChangeLog --- a/ChangeLog Sat Oct 14 10:47:04 2023 -0500 +++ b/ChangeLog Sat Oct 14 10:57:24 2023 -0500 @@ -5,6 +5,8 @@ image to PseudoClass. Addresses oss-fuzz issue 61394: "graphicsmagick:coder_WPG_fuzzer: Use-of-uninitialized-value in GrayscalePseudoClassImage". + (ReadWPGImage): If pixel cache was not initialized at all, then + set DirectClass pixels as well. 2023-10-08 Bob Friesenhahn <[email protected]> diff -r 2fd2e662359d -r a6a8699a7b1a coders/wpg.c --- a/coders/wpg.c Sat Oct 14 10:47:04 2023 -0500 +++ b/coders/wpg.c Sat Oct 14 10:57:24 2023 -0500 @@ -1624,6 +1624,8 @@ indexes=AccessMutableIndexes(image); if (indexes == (IndexPacket *) NULL) break; + if (!get) + (void) memset(p,0,sizeof(PixelPacket)*image->columns); (void) memset(indexes,0,sizeof(IndexPacket)*image->columns); if (!SyncImagePixels(image)) break; diff -r 2fd2e662359d -r a6a8699a7b1a www/Changelog.html --- a/www/Changelog.html Sat Oct 14 10:47:04 2023 -0500 +++ b/www/Changelog.html Sat Oct 14 10:57:24 2023 -0500 @@ -44,7 +44,9 @@ sure that PsuedoClass indexes are initialized before promoting image to PseudoClass. Addresses oss-fuzz issue 61394: "graphicsmagick:coder_WPG_fuzzer: Use-of-uninitialized-value in -GrayscalePseudoClassImage".</p></li> +GrayscalePseudoClassImage". +(ReadWPGImage): If pixel cache was not initialized at all, then +set DirectClass pixels as well.</p></li> </ul> </blockquote> <p>2023-10-08 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p>