xymon

Check-in [550f3966e1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Guard possible buffer overflow w/ garbage client msg git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7611 44351d6e-118b-4698-b696-ce33095ecaa4
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin/4.3.19
Files: files | file ages | folders
SHA3-256: 550f3966e1a6e90e40777cf5e6fecac80b013b329db4d4391c7a675022d206a0
User & Date: jccleaver@users.sf.net 2015-03-22 05:33:04
Context
2015-03-24
00:18
Allow --debug=stderr into set_debugfile() git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7612 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: b8c9f53093 user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
2015-03-22
05:33
Guard possible buffer overflow w/ garbage client msg git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7611 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 550f3966e1 user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
03:42
Allow hostnames beginning with a number in combo.cfg, per RFC1123 git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.19@7610 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: f0287bd21a user: jccleaver@users.sf.net tags: trunk, origin/4.3.19
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to xymond/xymond_client.c.

1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
			while (boln) {
				eoln = strchr(boln, '\n');

				id = strtok(boln, ":");
				countstr = (id ? strtok(NULL, "\n") : NULL);
				if (id && countstr) {
					countstr += strspn(countstr, "\t ");
					sprintf(msgline, "%s#%s:%s\n", nocolon(fn), id, countstr);
					addtobuffer(countdata, msgline);
				}

				boln = (eoln ? eoln + 1 : NULL);
			}
		}
	}







|







1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
			while (boln) {
				eoln = strchr(boln, '\n');

				id = strtok(boln, ":");
				countstr = (id ? strtok(NULL, "\n") : NULL);
				if (id && countstr) {
					countstr += strspn(countstr, "\t ");
					snprintf(msgline, sizeof(msgline), "%s#%s:%s\n", nocolon(fn), id, countstr);
					addtobuffer(countdata, msgline);
				}

				boln = (eoln ? eoln + 1 : NULL);
			}
		}
	}