GraphicsMagick: Assure that 'bounds' structure is initialized.
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.9037.1650756501.1644.graphicsmagick-commit@lists.sourceforge.net> |
changeset 221dfeade120 in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=221dfeade120 summary: Assure that 'bounds' structure is initialized. diffstat: ChangeLog | 6 ++++++ coders/ept.c | 4 ++++ coders/ps.c | 4 ++++ www/Changelog.html | 4 ++++ 4 files changed, 18 insertions(+), 0 deletions(-) diffs (57 lines): diff -r f57a5e2fe937 -r 221dfeade120 ChangeLog --- a/ChangeLog Sat Apr 23 15:57:47 2022 -0500 +++ b/ChangeLog Sat Apr 23 18:28:10 2022 -0500 @@ -1,5 +1,11 @@ 2022-04-23 Bob Friesenhahn <[email protected]> + * coders/ps.c (ReadPSImage): Assure that 'bounds' structure is + initialized. + + * coders/ept.c (ReadEPTImage): Assure that 'bounds' structure is + initialized. + * magick/log.c (IsEventLogged): New function to report if a particular event will be logged. Us this as much as possible throughout the software to replace use of IsEventLogging(). diff -r f57a5e2fe937 -r 221dfeade120 coders/ept.c --- a/coders/ept.c Sat Apr 23 15:57:47 2022 -0500 +++ b/coders/ept.c Sat Apr 23 18:28:10 2022 -0500 @@ -258,6 +258,10 @@ (void) LogMagickEvent(CoderEvent,GetMagickModule(), "Copying Postscript to temporary file \"%s\" ...", postscript_filename); + bounds.x1=0.0; + bounds.y1=0.0; + bounds.x2=0.0; + bounds.y2=0.0; for (i=0; i < filesize; i++) { if ((c=ReadBlobByte(image)) == EOF) diff -r f57a5e2fe937 -r 221dfeade120 coders/ps.c --- a/coders/ps.c Sat Apr 23 15:57:47 2022 -0500 +++ b/coders/ps.c Sat Apr 23 18:28:10 2022 -0500 @@ -241,6 +241,10 @@ for (i=0; i < (long) (count-12); i++) (void) ReadBlobByte(image); } + bounds.x1=0.0; + bounds.y1=0.0; + bounds.x2=0.0; + bounds.y2=0.0; p=command; for (i=0; (LocaleCompare(image_info->magick,"EPT") != 0) || (i < (long) filesize); i++) diff -r f57a5e2fe937 -r 221dfeade120 www/Changelog.html --- a/www/Changelog.html Sat Apr 23 15:57:47 2022 -0500 +++ b/www/Changelog.html Sat Apr 23 18:28:10 2022 -0500 @@ -37,6 +37,10 @@ <p>2022-04-23 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> +<p>* coders/ps.c (ReadPSImage): Assure that 'bounds' structure is +initialized.</p> +<p>* coders/ept.c (ReadEPTImage): Assure that 'bounds' structure is +initialized.</p> <p>* magick/log.c (IsEventLogged): New function to report if a particular event will be logged. Us this as much as possible throughout the software to replace use of IsEventLogging().</p>