GraphicsMagick: coders/png.c Variable "png_byte unused_chunks" s...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.4780.1679098793.7850.graphicsmagick-commit@lists.sourceforge.net>
changeset 0613f9b0e902 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=0613f9b0e902
summary: coders/png.c Variable "png_byte unused_chunks" should be const and not be placed on a stack.

diffstat:

 ChangeLog    |  5 +++++
 coders/png.c |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0d3ace2bc272 -r 0613f9b0e902 ChangeLog
--- a/ChangeLog	Sun Mar 12 18:38:07 2023 -0500
+++ b/ChangeLog	Sat Mar 18 01:18:51 2023 +0100
@@ -1,3 +1,8 @@
+2023-03-18  Fojtik Jaroslav  <[email protected]>
+
+	* coders/png.c Variable "png_byte unused_chunks" should be const
+        and not be placed on a stack.
+
 2023-03-12  Bob Friesenhahn  <[email protected]>
 
 	* magick/command.c (ConjureImageCommand): Properly check argument
diff -r 0d3ace2bc272 -r 0613f9b0e902 coders/png.c
--- a/coders/png.c	Sun Mar 12 18:38:07 2023 -0500
+++ b/coders/png.c	Sat Mar 18 01:18:51 2023 +0100
@@ -1569,7 +1569,7 @@
     *q;
 
 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
-  png_byte unused_chunks[]=
+  static const png_byte unused_chunks[]=
     {
       104,  73,  83,  84, '\0',   /* hIST */
       105,  84,  88, 116, '\0',   /* iTXt */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.