File: 14_fix_invalid_pointer.patch

package info (click to toggle)
vflib3 3.7.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,688 kB
  • sloc: ansic: 37,305; sh: 11,975; makefile: 915; lisp: 123; perl: 109; awk: 43
file content (24 lines) | stat: -rw-r--r-- 720 bytes parent folder | 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
Author: Bernhard Übelacker <bernhardu@mailbox.org>
Last-Update: 2023-02-04
Bug-Debian: https://bugs.debian.org/1028311
Description: Avoid calling hbf_release() twice

--- a/src/hbf.c
+++ b/src/hbf.c
@@ -126,7 +126,7 @@ hbf_load_hbf_file(HBF hbf, SEXP fontdirs
   FILE   *fp;
   char   linebuf[160], prop_string[160], *name, *file_path, *p;
   char   charset_name[80], charset_name2[80], charset_enc2[5], charset[90];
-  char   *uncomp_prog;
+  char   *uncomp_prog = NULL;
   int    index, r, i, n;
 
   hbf->byte2_range_start = NULL;
@@ -467,7 +467,6 @@ hbf_load_hbf_file(HBF hbf, SEXP fontdirs
 Unexpected_Error:
   if (uncomp_prog != NULL)
     vf_close_uncompress_stream(fp);
-  hbf_release(hbf);
   return -1;
 }