Mailing List Archive

[Bug 1496] ssh fails with xmalloc: zero size
https://bugzilla.mindrot.org/show_bug.cgi?id=1496


Colin Watson <cjwatson@debian.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |cjwatson@debian.org




--- Comment #3 from Colin Watson <cjwatson@debian.org> 2008-08-29 23:50:26 ---
Shouldn't you pass len * 4 + 1 as the third argument to strnvis too?
openbsd-compat/vis.c says:

* Strnvis will write no more than siz-1 bytes (and will NULL
terminate).

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1496] ssh fails with xmalloc: zero size [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1496





--- Comment #4 from Tomas Mraz <t8m@centrum.cz> 2008-08-30 20:25:31 ---
Hmm, yes. The current patch means that in case that all characters are
expanded, the last character of the expanded string will be truncated.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs