File: no-null-deref-on-corrupt-input-716017

package info (click to toggle)
hyphen-show 20000425-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 172 kB
  • sloc: ansic: 2,442; makefile: 49
file content (18 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/hyphen_show.c
+++ b/hyphen_show.c
@@ -488,6 +488,7 @@
       }
     }
     s_p = 0;
+    seitep[s_p] = "";
   }
 
 void eingabe(long* dd, unsigned char k)
@@ -666,6 +667,7 @@
 
     s_puffer_p = 0; s_p = 0; enthalten = FALSE;
     anzgef = 0; neu_max = 0; np = 0;
+    seitep[s_p] = "";
 
     k =  e_inbyte();
     while (E_ENDFILE == FALSE)