[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for lib/stackio.c
- To: hobbit (at) hswn.dk
- Subject: patch for lib/stackio.c
- From: Cade Robinson <cade.robinson (at) gmail.com>
- Date: Wed, 24 Feb 2010 16:12:37 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=6l4oSZwQtg8JQwPClp27kYR5h55pXp57HpNH91VxNCk=; b=wrTn/0cF6U3ksrL5H+XT1J4R6Ji39FkeczLQRl2xWbgXL1nGmc301300i4nbUtA8rj bXxmu06ApBavD0ZxCFeOvjNe0GWz8NyNzUOe29b8bA8+criXEsiZrMLin5S26QL5qPIc YTVSZWWnbOd3z9jyYfCuDxns9PcqGe1wYheBU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=WDeQ0mkF1XXVg7lB8Y8LT7qX801bFmmhyfEGC+3T7tD8Or0AUmuzD16nPGe3XmOV7C akVIgPyzKyVVwLvtZGJEMWpZjEtzqeC/XFoL+h0YVSxAfWw3M9tTkMOeSoMP4WYPSDFP odf9R82FGxuhOcC8YlJKZM/1C2I9PfOFAZ0s0=
I found that in bb-hosts you can not indent "include" lines.
IE the lines can't start with white space.
I found that in lib/stackio.c the buffer was not getting "sanitize"d:
Index: lib/stackio.c
===================================================================
--- lib/stackio.c (revision 6223)
+++ lib/stackio.c (working copy)
@@ -408,6 +408,7 @@
result = unlimfgets(buffer, fdhead->fd);
if (result) {
+ sanitize_input(buffer, 0, 0);
if ( (strncmp(STRBUF(buffer), "include ", 8) == 0) ||
(extraincl && (strncmp(STRBUF(buffer), extraincl,
strlen(extraincl)) == 0)) ) {
char *newfn, *eol;