]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r301679 (partial), r309626, r326307
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Nov 2017 17:20:53 +0000 (17:20 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Nov 2017 17:20:53 +0000 (17:20 +0000)
commit2e4a12c53e80f894a79e559e44ac1d294a25c9dc
treeda4cc614e638217bf3b0beb983942b2773fa4f5a
parentbfe21ea581a705625b0bb39487e894bc182a80a6
MFC r301679 (partial), r309626, r326307

r301679:
Update to a June 8th snapshot of (un)vis form NetBSD.

This adds stravis() and some new encoding flags VIS_SHELL, VIS_META,
and VIS_NOLOCALE.

Assorted cleanups and fixes includeing a manpage typo[0].

NOTE: The symbol for stravis() is not exported in this merge.

r309626:
strvis(3): Avoid internal state of multibyte functions being tainted.

The mbtoc(3) and wctomb(3) functions use internal state which may be
tainted before the call to strvis(3).  In this context we can just use
the thread-safe versions mbrtoc(3) and wcrtomb(3) which allow passing
our own state from our stack.

r326307:
Update vis(3) the latest from NetBSD.

This adds VIS_DQ for compatiblity with OpenBSD.

Correct by an off-by-one error and a read buffer overflow detected using
asan.

PR: 210013 [0]
Submitted by: pi [0]

git-svn-id: svn://svn.freebsd.org/base/stable/10@326324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/libc-vis/unvis.3
contrib/libc-vis/unvis.c
contrib/libc-vis/vis.3
contrib/libc-vis/vis.c
contrib/libc-vis/vis.h