NetBSD/lib
martin b5e98a79d9 Pull up following revision(s) (requested by riastradh in ticket #1923):
lib/libc/gen/vis.c: revision 1.75-1.86
	tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

PR 56260: fix out-of-bounds stack read.

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.
2023-12-09 13:10:16 +00:00
..
csu Pull up following revision(s) (requested by rin in ticket #1858): 2023-07-30 11:53:39 +00:00
i18n_module
libarch Deprecate the pmc functions in libi386. The parameters will be updated, 2017-03-08 16:09:27 +00:00
libbluetooth
libbpfjit
libbsdmalloc
libbz2
libc Pull up following revision(s) (requested by riastradh in ticket #1923): 2023-12-09 13:10:16 +00:00
libc_fp move shlib_version into the main directory 2016-10-11 16:55:22 +00:00
libc_vfp
libcompat
libcrypt Pull up following revision(s) (requested by nia in ticket #1705): 2021-10-31 14:48:42 +00:00
libcurses Pull up following revision(s) (requested by uwe in ticket #1574): 2020-07-14 13:39:09 +00:00
libdm
libedit Pull up following revision(s) (requested by kre in ticket #102): 2017-07-23 14:41:26 +00:00
libexecinfo Pull up following revision(s) (requested by kamil in ticket #86): 2017-07-05 19:55:21 +00:00
libform
libintl
libipsec
libisns
libkern
libkvm Pull up following revision(s) (requested by kamil in ticket #517): 2018-02-03 22:15:13 +00:00
liblwres
libm Pull up following revision(s) (requested by martin in ticket #659): 2018-03-31 11:20:46 +00:00
libmenu
libnpf set to NULL after releasing to avoid double free. 2017-01-03 00:59:31 +00:00
libossaudio Pull up following revision(s) (requested by isaki in ticket #1185): 2019-02-09 14:43:07 +00:00
libp2k Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp. 2017-04-26 03:02:47 +00:00
libpam Pull up following revision(s) (requested by riastradh in ticket #1898): 2023-10-02 13:09:01 +00:00
libpanel bump warns 2016-10-03 17:06:58 +00:00
libpci introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus() 2016-09-24 23:12:54 +00:00
libperfuse Pull up following revision(s) (requested by manu in ticket #1335): 2019-08-13 14:27:22 +00:00
libpmc Remove i386 from libpmc; it has its own interface (sysarch), and we won't 2017-03-08 15:53:00 +00:00
libposix
libppath
libprop
libpthread Pull up following revision(s) (requested by riastradh in ticket #1878): 2023-08-04 13:06:58 +00:00
libpuffs Adjust to prototype. 2017-05-31 17:56:00 +00:00
libquota Pull up following revision(s) (requested by hannken in ticket #1739): 2022-04-27 16:55:18 +00:00
libradius Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
librefuse fuse_main(3): Support general fuse options via fuse_parse_cmdline(3) 2016-11-20 13:28:32 +00:00
libresolv
librmt
librpcsvc
librt Fix function name macro. 2016-09-15 07:53:59 +00:00
librump
librumpclient make it the same as rump.h 2017-05-11 18:44:50 +00:00
librumpdev
librumphijack Pull up following revision(s) (requested by maya in ticket #594): 2018-02-28 18:53:06 +00:00
librumpnet
librumpuser Pull up following revision(s) (requested by ozaki-r in ticket #495): 2018-01-13 21:57:11 +00:00
librumpvfs
libskey
libss
libtelnet Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
libterminfo Pull up following revision(s) (requested by roy in ticket #1552): 2020-05-31 10:43:05 +00:00
libukfs
libusbhid
libutil Pull up following revision(s) (requested by kamil in ticket #901): 2018-07-12 15:24:43 +00:00
libwrap
liby
libz Update zlib version in pkgconfig file. 2017-03-12 20:38:30 +00:00
lua Guard against double freeing of objects (explicit by the Lua program, then 2017-05-10 07:36:01 +00:00
npf
Makefile Pull up following revision(s) (requested by riastradh in ticket #1513): 2020-03-03 18:40:41 +00:00
Makefile.inc
bumpversion
checkoldver
checkver
checkvers