[Bug 1157] ssh-keygen doesn't handle DOS line breaks

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Feb 15 23:06:25 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1157





------- Comment #9 from dtucker at zip.com.au  2006-02-15 23:06 -------
(In reply to comment #8)
> Well, for one reason, if there's no '\r' in the string, p will now be NULL, and
> then when we deref it...

... although this:
      if (p > line && p[-1] == '\\')
could be restructured to this:
      len = strlen(line);
      if (len > 0 && line[len - 1] == '\\')
which might even work :-)




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list