GraphicsMagick: QuantumDepthCB() - Fix Coverity issue 381867 "Co...
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.14854.1667940993.1567.graphicsmagick-commit@lists.sourceforge.net> |
changeset 4fe7cfbb3e00 in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=4fe7cfbb3e00 summary: QuantumDepthCB() - Fix Coverity issue 381867 "Control flow issues (DEADCODE)" diffstat: ChangeLog | 3 +++ magick/operator.c | 9 +++++---- www/Changelog.html | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diffs (51 lines): diff -r 280593e8b49c -r 4fe7cfbb3e00 ChangeLog --- a/ChangeLog Tue Nov 08 14:48:00 2022 -0600 +++ b/ChangeLog Tue Nov 08 14:56:22 2022 -0600 @@ -1,5 +1,8 @@ 2022-11-08 Bob Friesenhahn <[email protected]> + * magick/operator.c (QuantumDepthCB): Fix Coverity issue 381867 + "Control flow issues (DEADCODE)". + * magick/import.c (ImportViewPixelArea): Fix Coverity issue 381868 "Control flow issues (DEADCODE)". diff -r 280593e8b49c -r 4fe7cfbb3e00 magick/operator.c --- a/magick/operator.c Tue Nov 08 14:48:00 2022 -0600 +++ b/magick/operator.c Tue Nov 08 14:56:22 2022 -0600 @@ -1,5 +1,5 @@ /* -% Copyright (C) 2004 - 2018 GraphicsMagick Group +% Copyright (C) 2004 - 2022 GraphicsMagick Group % % This program is covered by multiple licenses, which are described in % Copyright.txt. You should have received a copy of Copyright.txt with this @@ -589,12 +589,13 @@ mutable_context->channel_lut[i] = scale*(i/scale); } } -#else - ARG_NOT_USED(*mutable_context); -#endif if (MagickFail == status) return status; +#else + ARG_NOT_USED(*mutable_context); + ARG_NOT_USED(status); +#endif switch (immutable_context->channel) { diff -r 280593e8b49c -r 4fe7cfbb3e00 www/Changelog.html --- a/www/Changelog.html Tue Nov 08 14:48:00 2022 -0600 +++ b/www/Changelog.html Tue Nov 08 14:56:22 2022 -0600 @@ -40,6 +40,8 @@ <p>2022-11-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> <blockquote> <ul class="simple"> +<li><p>magick/operator.c (QuantumDepthCB): Fix Coverity issue 381867 +"Control flow issues (DEADCODE)".</p></li> <li><p>magick/import.c (ImportViewPixelArea): Fix Coverity issue 381868 "Control flow issues (DEADCODE)".</p></li> <li><p>magick/blob.c (DetachBlob): Do not dereference blob_info->data