• R/O
  • SSH

GM: Commit

Main GraphicsMagick source repository


Commit MetaInfo

Révision221dfeade1209382e29457117e7626a9ca1e6335 (tree)
l'heure2022-04-24 08:28:10
AuteurBob Friesenhahn <bfriesen@Grap...>
CommiterBob Friesenhahn

Message de Log

Assure that 'bounds' structure is initialized.

Change Summary

Modification

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 @@
11 2022-04-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
22
3+ * coders/ps.c (ReadPSImage): Assure that 'bounds' structure is
4+ initialized.
5+
6+ * coders/ept.c (ReadEPTImage): Assure that 'bounds' structure is
7+ initialized.
8+
39 * magick/log.c (IsEventLogged): New function to report if a
410 particular event will be logged. Us this as much as possible
511 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 @@
258258 (void) LogMagickEvent(CoderEvent,GetMagickModule(),
259259 "Copying Postscript to temporary file \"%s\" ...",
260260 postscript_filename);
261+ bounds.x1=0.0;
262+ bounds.y1=0.0;
263+ bounds.x2=0.0;
264+ bounds.y2=0.0;
261265 for (i=0; i < filesize; i++)
262266 {
263267 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 @@
241241 for (i=0; i < (long) (count-12); i++)
242242 (void) ReadBlobByte(image);
243243 }
244+ bounds.x1=0.0;
245+ bounds.y1=0.0;
246+ bounds.x2=0.0;
247+ bounds.y2=0.0;
244248 p=command;
245249 for (i=0; (LocaleCompare(image_info->magick,"EPT") != 0) ||
246250 (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 @@
3737
3838 <p>2022-04-23 Bob Friesenhahn &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
3939 <blockquote>
40+<p>* coders/ps.c (ReadPSImage): Assure that 'bounds' structure is
41+initialized.</p>
42+<p>* coders/ept.c (ReadEPTImage): Assure that 'bounds' structure is
43+initialized.</p>
4044 <p>* magick/log.c (IsEventLogged): New function to report if a
4145 particular event will be logged. Us this as much as possible
4246 throughout the software to replace use of IsEventLogging().</p>
Afficher sur ancien navigateur de dépôt.