GraphicsMagick: realloc_rlm() should behave like realloc. If ne...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.43661.1640300436.1346.graphicsmagick-commit@lists.sourceforge.net>
changeset 033b61f33d55 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=033b61f33d55
summary: realloc_rlm() should behave like realloc.  If new_size is zero, then zero should be returned.

diffstat:

 coders/jp2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 917bddc905c9 -r 033b61f33d55 coders/jp2.c
--- a/coders/jp2.c	Thu Dec 23 16:22:58 2021 -0600
+++ b/coders/jp2.c	Thu Dec 23 16:59:53 2021 -0600
@@ -441,7 +441,7 @@
                          size_t new_size)
 {
   (void) allocator;
-  return _MagickReallocateResourceLimitedMemory(pointer,1,new_size == 0 ? 1 : new_size,0);
+  return _MagickReallocateResourceLimitedMemory(pointer,1,new_size,0);
 }
 #endif /* if HAVE_JAS_INITIALIZE */
 static void initialize_jasper(void)
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.