[Bug 1757] New: strdelim has a bug caused only one user with quote
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Thu Apr 15 20:23:47 EST 2010
https://bugzilla.mindrot.org/show_bug.cgi?id=1757
Summary: strdelim has a bug caused only one user with quote
Product: Portable OpenSSH
Version: 5.4p1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: bitman.zhou at centrify.com
openssh-5.4p1/misc.c
154 /* Characters considered whitespace in strsep calls. */
155 #define WHITESPACE " \t\r\n"
156 #define QUOTE "\""
157
158 /* return next token in configuration line */
159 char *
160 strdelim(char **s)
161 {
...
179 } else {
180 *s[0] = '\0';
181 return (old);
182 }
...
It should be:
} else {
*s[0] = '\0';
*s += strspn(*s + 1, WHITESPACE) + 1;
return (old);
}
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list