History log of /src/tests/lib/libc/gen/t_vis.c |
Revision | | Date | Author | Comments |
1.14 |
| 12-Aug-2023 |
riastradh | vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.13 |
| 12-Aug-2023 |
riastradh | vis(3): Fix main part of PR lib/57573.
From Kyle Evans <kevans@FreeBSD.org>.
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.12 |
| 12-Aug-2023 |
riastradh | vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.11 |
| 12-Aug-2023 |
riastradh | vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.10 |
| 12-Aug-2023 |
riastradh | vis(3) tests: Add xfail test for encoding overflow.
From Kyle Evans <kevans@FreeBSD.org>.
PR lib/57573
XXX pullup-10 XXX pullup-9 XXX pullup-8
|
1.9 |
| 10-Jan-2017 |
christos | branches: 1.9.6; 1.9.16; 1.9.24; PR/51806: Ngie Cooper: Only run the vis locale test if VIS_NOLOCALE is defined
|
1.8 |
| 23-May-2015 |
christos | branches: 1.8.2; Add a VIS_NOLOCALE test
|
1.7 |
| 08-Sep-2014 |
christos | add null and empty tests.
|
1.6 |
| 13-Feb-2013 |
christos | - check the results of the vis functions - zero output to make sure things work - don't use encodings that don't work - fix the style on decoding
|
1.5 |
| 11-Feb-2013 |
christos | check the results of encoding and decoding
|
1.4 |
| 06-Nov-2011 |
christos | branches: 1.4.6; add tests for \x and \xx
|
1.3 |
| 07-Jul-2011 |
jruoho | branches: 1.3.2; Move 't_syslog_pthread' to 't_syslog' for consistency with libc.
|
1.2 |
| 12-Mar-2011 |
christos | Fix various vis/unvis issues: - no need for all the weak symbols - define a new _VIS_END flag for UNVIS_END so that there are no collisions between and vis and unvis flags. - add bound versions of the vis and unvis functions that take the length of the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if the buffer is not large enough, instead of silently truncating.
|
1.1 |
| 28-Dec-2010 |
pgoyette | Migrate the remaining libc/gen tests to atf
|
1.3.2.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.3.2.1 |
| 10-Nov-2011 |
yamt | sync with head
|
1.4.6.1 |
| 25-Feb-2013 |
tls | resync with head
|
1.8.2.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.9.24.1 |
| 09-Dec-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #485):
lib/libc/gen/vis.c: revision 1.76-1.86 tests/lib/libc/gen/t_vis.c: revision 1.10-1.14
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.
|
1.9.16.1 |
| 09-Dec-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1774):
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.
|
1.9.6.1 |
| 09-Dec-2023 |
martin | 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.
|