Go to file
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
bin Pull up following revision(s) (requested by kre in ticket #1779): 2022-10-27 16:16:50 +00:00
common Pull up following revision(s) (requested by skrll in ticket #1672): 2021-04-26 18:39:26 +00:00
compat Apply patch, requested by mrg in ticket #1684 (no corresponding 2021-06-21 17:43:18 +00:00
crypto Pull up following revision(s) (requested by mrg in ticket #1895): 2023-09-06 08:03:45 +00:00
dist/pf Pull up following revision(s) (requested by maxv in ticket #978): 2018-08-25 11:21:53 +00:00
distrib Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
doc Ticket #1922 2023-11-29 18:54:37 +00:00
etc Pull up following revision(s) (requested by taca in ticket #1922): 2023-11-29 18:53:44 +00:00
external Pull up following revision(s) (requested by tsutsui in ticket #1919): 2023-11-27 19:57:29 +00:00
extsrc
games Pull up following revision(s) (requested by nia in ticket #1544): 2020-04-30 16:21:14 +00:00
include Pull up following revision(s) (requested by is in ticket #1625): 2020-11-29 11:18:54 +00:00
lib Pull up following revision(s) (requested by riastradh in ticket #1923): 2023-12-09 13:10:16 +00:00
libexec Pull up following revision(s) (requested by lukem in ticket #1907): 2023-10-03 10:14:13 +00:00
regress Pull up following revision(s) (requested by maxv in ticket #282): 2017-09-23 17:27:02 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Pull up following revision(s) (requested by msaitoh in ticket #1741): 2022-05-15 12:15:53 +00:00
share Pull up following revision(s) (requested by gutteridge in ticket #1899): 2023-10-02 13:36:06 +00:00
sys Additionally pull up the following for ticket #1920: 2023-11-29 12:29:05 +00:00
tests Pull up following revision(s) (requested by riastradh in ticket #1923): 2023-12-09 13:10:16 +00:00
tools Apply patch, requested by maya in ticket #1070: 2018-10-26 15:12:53 +00:00
usr.bin Pull up following revision(s) (requested by riastradh in ticket #1879): 2023-08-04 13:12:00 +00:00
usr.sbin Pull up following revision(s) (requested by msaitoh in ticket #1892): 2023-08-23 18:10:06 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh Pull up the following revision (requested by martin in ticket #1807): 2023-03-13 21:36:29 +00:00