GraphicsMagick: ReadBlob(): If getc() returns EOF, zero the buff...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.45392.1640634233.1346.graphicsmagick-commit@lists.sourceforge.net>
changeset cbfeeef1ceab in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=cbfeeef1ceab
summary: ReadBlob(): If getc() returns EOF, zero the buffer just in case.

diffstat:

 magick/blob.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 10a89e6c34a6 -r cbfeeef1ceab magick/blob.c
--- a/magick/blob.c	Mon Dec 27 13:24:15 2021 -0600
+++ b/magick/blob.c	Mon Dec 27 13:43:38 2021 -0600
@@ -3188,6 +3188,7 @@
               }
             else
               {
+                *((unsigned char *)data)=0;
                 count=0;
               }
           }
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.