[Bug 2434] scp can send arbitrary control characters / escape sequences to the terminal
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Thu Feb 16 11:03:25 AEDT 2017
https://bugzilla.mindrot.org/show_bug.cgi?id=2434
--- Comment #16 from Darren Tucker <dtucker at zip.com.au> ---
(In reply to Damien Miller from comment #15)
> produces the expected "\022XXX" output too for both LC_CTYPE set to
> UTF-8 and C...
interesting, your test code behaves as expected on OpenBSD but not on
Linux (Fedora 24), both using the portable code.
char b[80]; int x = 20;
snmprintf(b, sizeof(b), &x, "ab\x12XXX");
printf("len %d, '%s'\n", strlen(b), b);
return 0;
openbsd-current: len 9, 'ab\022XXX'
fedora24: len 2, 'ab'
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list