Package: graphicsmagick / 1.4+really1.3.36+hg16481-2+deb11u1

use_appropriate_memory_deallocator.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

# HG changeset patch
# User Bob Friesenhahn <bfriesen@GraphicsMagick.org>
# Date 1626915582 18000
# Node ID 22aaff86b4aa34c10b3fbfb104adaaeef8653a36
# Parent  acf305f9ef3e85e6273d62e72d81cce03440eb3d
WritePDFImage(): Use appropriate memory deallocator for memory returned by StringToList().

diff -r acf305f9ef3e -r 22aaff86b4aa ChangeLog
--- a/ChangeLog	Wed Jul 21 19:47:33 2021 -0500
+++ b/ChangeLog	Wed Jul 21 19:59:42 2021 -0500
@@ -1,3 +1,9 @@
+2021-07-21  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+        * coders/pdf.c (WritePDFImage): Use appropriate memory deallocator
+        for memory returned by StringToList().  Fixes SourceForge issue
+        646 "Assertion failed using -label with PDF".
+
 2021-02-28  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
 
         * configure.ac: Add tests for Jasper jp2_decode(), jpc_decode(),
diff -r acf305f9ef3e -r 22aaff86b4aa coders/pdf.c
--- a/coders/pdf.c	Wed Jul 21 19:47:33 2021 -0500
+++ b/coders/pdf.c	Wed Jul 21 19:59:42 2021 -0500
@@ -1046,9 +1046,9 @@
               FormatString(buffer,"(%.1024s) Tj\n",labels[i]);
               (void) WriteBlobString(image,buffer);
               (void) WriteBlobString(image,"ET\n");
-              MagickFreeResourceLimitedMemory(labels[i]);
+              MagickFreeMemory(labels[i]);
             }
-          MagickFreeResourceLimitedMemory(labels);
+          MagickFreeMemory(labels);
         }
       FormatString(buffer,"%g 0 0 %g %ld %ld cm\n",x_scale,y_scale,geometry.x,
                    geometry.y);
diff -r acf305f9ef3e -r 22aaff86b4aa www/Changelog.html
--- a/www/Changelog.html	Wed Jul 21 19:47:33 2021 -0500
+++ b/www/Changelog.html	Wed Jul 21 19:59:42 2021 -0500
@@ -35,6 +35,12 @@
 <div class="document">
 
 
+<p>2021-07-21  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>
+<blockquote>
+<p>* coders/pdf.c (WritePDFImage): Use appropriate memory deallocator
+for memory returned by StringToList().  Fixes SourceForge issue
+646 &quot;Assertion failed using -label with PDF&quot;.</p>
+</blockquote>
 <p>2021-02-28  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>
 <blockquote>
 <p>* configure.ac: Add tests for Jasper jp2_decode(), jpc_decode(),