aboutsummaryrefslogtreecommitdiff
path: root/contrib/libc-vis
Commit message (Collapse)AuthorAgeFilesLines
* vis(3): avoid out-of-bounds stack buffer readsAlex Richardson2021-07-051-1/+2
| | | | | | | | | | | | | I found this while running kdump(1) on a CheriBSD system due to a capability length violation when printing the /etc/libmap.conf read() system call: it crashed immediately after printing the first line. Found by: CHERI Reviewed By: jhb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D30771 (cherry picked from commit 1a2f06d0f2905c9a18340b377cbbe772f2ca6844)
* Update vis(3) the latest from NetBSD.Brooks Davis2017-11-284-21/+39
| | | | | | | | | | | | This adds VIS_DQ for compatiblity with OpenBSD. Correct by an off-by-one error and a read buffer overflow detected using asan. MFC after: 1 day Notes: svn path=/head/; revision=326307
* vis(3): delete spurious .Pp macroEnji Cooper2017-05-231-1/+0
| | | | | | | | | MFC after: 2 weeks Reported by: make manlint Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318702
* strvis(3): Avoid internal state of multibyte functions being tainted.Bryan Drewery2016-12-061-3/+8
| | | | | | | | | | | | | 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. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=309626
* Update to a June 8th snapshot of (un)vis form NetBSD.Brooks Davis2016-06-084-51/+159
| | | | | | | | | | | | | This adds stravis() and some new encoding flags VIS_SHELL, VIS_META, and VIS_NOLOCALE. Assorted cleanups and fixes includeing a manpage typo[0]. PR: 210013 [0] Submitted by: pi [0] Notes: svn path=/head/; revision=301679
* Merge from NetBSD:Brooks Davis2014-09-081-9/+16
| | | | | | | | | | | | PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully. (don't abuse 0 to mean compute string length internally) PR: 193447 Submitted by: Conrad Meyer <conrad.meyer@isilon.com> MFC after: 1 month Notes: svn path=/head/; revision=271287
* Restore the Nx macro lost in transit.Sergey Kandaurov2014-01-291-0/+1
| | | | | | | | | | | This matches upstream. PR: 186205 Submitted by: naddy MFC after: 3 days Notes: svn path=/head/; revision=261261
* Update to the latest (un)vis(3) sources from NetBSD. This addsBrooks Davis2013-03-145-404/+588
| | | | | | | | | | | | | | | | multibyte support[0] and the new functions strenvisx and strsenvisx. Add MLINKS for vis(3) functions add by this and the initial import from NetBSD[1]. PR: bin/166364, bin/175418 Submitted by: "J.R. Oldroyd" <fbsd@opal.com>[0] stefanf[1] Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=248302
* Replace our implementation of the vis(3) and unvis(3) APIs withBrooks Davis2012-12-185-0/+1962
NetBSD's. This output size limited versions of vis and unvis functions as well as a set of vis variants that allow arbitrary characters to be specified for encoding. Finally, MIME Quoted-Printable encoding as described in RFC 2045 is supported. Notes: svn path=/head/; revision=244401