File: 007-past-buffer-read-write-715925.patch

package info (click to toggle)
proxy-suite 1.9.2.4-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,068 kB
  • sloc: ansic: 6,533; sh: 2,968; makefile: 284
file content (13 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/common/com-config.c b/common/com-config.c
index ed5c880..d01721f 100644
--- a/common/com-config.c
+++ b/common/com-config.c
@@ -337,7 +337,7 @@ void config_read(char *file, int dflg)
 		/*
 		** Not a section, must be an ordinary line
 		*/
-		for (data = name; *data != ' ' && *data != '\t'; data++)
+		for (data = name; *data && *data != ' ' && *data != '\t'; data++)
 			;
 		if (*data == '\0') {
 			syslog_write(T_WRN,