| #
d11904b3
|
| 31-Dec-2024 |
Alan Somers <asomers@FreeBSD.org> |
Fix lib/libc/nss/getgr_test with large numbers of groups
These tests create a linked list with one entry for every group on the running system. On a system with about 30,000 groups, the test took 6
Fix lib/libc/nss/getgr_test with large numbers of groups
These tests create a linked list with one entry for every group on the running system. On a system with about 30,000 groups, the test took 69 seconds to run, and crashed Kyua with the below error:
kyua: E: string or blob too big (sqlite op: sqlite3_bind_blob) (sqlite db: /root/.kyua/store/results.usr_tests.20241231-203317-570235.db).
Fix the test by limiting it to operating on the first 1024 groups. Apply the same change to getpw_test and getserv_test too, which are vulnerable to the same problem.
MFC after: 2 weeks Sponsored by: ConnectWise Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D48275
show more ...
|
| #
559a218c
|
| 01-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
6e411d8b
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Add regression tests for commit 55444c823e1f
PR: 252094 Sponsored by: The FreeBSD Foundation MFC after: 1 month
|
| #
7abc1009
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Fix getpw and getgr single-pass tests
Some NSS regression tests for getgrent(3) and getpwent(3) were not testing anything because the test incorrectly requested creation of a databas
libc/nss tests: Fix getpw and getgr single-pass tests
Some NSS regression tests for getgrent(3) and getpwent(3) were not testing anything because the test incorrectly requested creation of a database snapshot.
Sponsored by: The FreeBSD Foundation MFC after: 1 month
show more ...
|
| #
ed14c69d
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Style
Sponsored by: The FreeBSD Foundation MFC after: 1 month
|
| #
9122aeea
|
| 09-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r353316 through r353350.
|
| #
f1897613
|
| 08-Oct-2019 |
Brooks Davis <brooks@FreeBSD.org> |
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almos
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface.
Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914
show more ...
|
| #
d11904b3
|
| 31-Dec-2024 |
Alan Somers <asomers@FreeBSD.org> |
Fix lib/libc/nss/getgr_test with large numbers of groups
These tests create a linked list with one entry for every group on the running system. On a system with about 30,000 groups, the test took 6
Fix lib/libc/nss/getgr_test with large numbers of groups
These tests create a linked list with one entry for every group on the running system. On a system with about 30,000 groups, the test took 69 seconds to run, and crashed Kyua with the below error:
kyua: E: string or blob too big (sqlite op: sqlite3_bind_blob) (sqlite db: /root/.kyua/store/results.usr_tests.20241231-203317-570235.db).
Fix the test by limiting it to operating on the first 1024 groups. Apply the same change to getpw_test and getserv_test too, which are vulnerable to the same problem.
MFC after: 2 weeks Sponsored by: ConnectWise Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D48275
show more ...
|
| #
559a218c
|
| 01-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
6e411d8b
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Add regression tests for commit 55444c823e1f
PR: 252094 Sponsored by: The FreeBSD Foundation MFC after: 1 month
|
| #
7abc1009
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Fix getpw and getgr single-pass tests
Some NSS regression tests for getgrent(3) and getpwent(3) were not testing anything because the test incorrectly requested creation of a databas
libc/nss tests: Fix getpw and getgr single-pass tests
Some NSS regression tests for getgrent(3) and getpwent(3) were not testing anything because the test incorrectly requested creation of a database snapshot.
Sponsored by: The FreeBSD Foundation MFC after: 1 month
show more ...
|
| #
ed14c69d
|
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libc/nss tests: Style
Sponsored by: The FreeBSD Foundation MFC after: 1 month
|
| #
9122aeea
|
| 09-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r353316 through r353350.
|
| #
f1897613
|
| 08-Oct-2019 |
Brooks Davis <brooks@FreeBSD.org> |
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almos
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface.
Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914
show more ...
|
| #
91c53523
|
| 28-May-2017 |
Enji Cooper <ngie@FreeBSD.org> |
getgr_test: fix -Wunused warnings
MFC after: 3 days Sponsored by: Dell EMC Isilon
|
| #
4a9a8952
|
| 28-May-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Fix -Wsign-compare warnings
MFC after: 3 days Sponsored by: Dell EMC Isilon
|
| #
bd874c6a
|
| 28-May-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Staticize functions and remove unused variables to aid with bumping WARNS
MFC after: 3 days Sponsored by: Dell EMC Isilon
|
| #
3bdd6cf0
|
| 28-May-2017 |
Enji Cooper <ngie@FreeBSD.org> |
lib/libc/tests/nss: use calloc appropriately
The pattern used prior to this commit was `calloc(1, n * sizeof(type))`; the pattern that should be used however is `calloc(n, sizeof(type))`.
MFC after
lib/libc/tests/nss: use calloc appropriately
The pattern used prior to this commit was `calloc(1, n * sizeof(type))`; the pattern that should be used however is `calloc(n, sizeof(type))`.
MFC after: 3 days Sponsored by: Dell EMC Isilon
show more ...
|
| #
7532a657
|
| 06-Mar-2017 |
Enji Cooper <ngie@FreeBSD.org> |
Move ATF_TC_WITHOUT_HEAD(getgrent) near the testcase it annotates
MFC after: 1 week Sponsored by: Dell EMC Isilon
|
| #
2d22bf63
|
| 06-Dec-2016 |
Bryan Drewery <bdrewery@FreeBSD.org> |
Support spaces in group names.
MFC after: 2 weeks Sponsored by: Dell EMC Isilon
|
| #
08ca345c
|
| 16-Dec-2015 |
Enji Cooper <ngie@FreeBSD.org> |
Integrate tools/regression/lib/libc/nss into the FreeBSD test suite as lib/libc/tests/nss
- Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Re
Integrate tools/regression/lib/libc/nss into the FreeBSD test suite as lib/libc/tests/nss
- Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
show more ...
|
| #
3ec75a6c
|
| 26-Nov-2015 |
Enji Cooper <ngie@FreeBSD.org> |
Clean up trailing whitespace
MFC after: 1 week
|
| #
8587d5de
|
| 17-Jun-2013 |
Eitan Adler <eadler@FreeBSD.org> |
Restore "all rights reserved" (spelled correctly). This was actually part of the standard text of the license which I did not realize prior.
Approved by: bushman
|