#
319371 |
|
01-Jun-2017 |
ngie |
MFC r319156,r319159:
r319156:
:nvlist_unpack__duplicate_key : check the result of nvlist_pack(3)
This fixes a potential NULL pointer dereference.
CID: 1362051
r319159:
:dnvlist_get_string__default_value: fix a bogus string comparison test
Check actual_value vs "5", not "5" vs itself.
CID: 1362021
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
285063 |
|
02-Jul-2015 |
oshogbo |
Let the nv.h and dnv.h includes be only in sys directory.
Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles.
Approved by: pjd (mentor)
|
#
282348 |
|
02-May-2015 |
oshogbo |
Add test case for unpack with diffrent flags.
Approved by: pjd (mentor)
|
#
282346 |
|
02-May-2015 |
oshogbo |
Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.
Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous.
Update consumers of this and related functions and update the tests.
Approved by: pjd (mentor)
Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist.
Reviewed by: AllanJude Approved by: pjd (mentor)
|
#
282254 |
|
29-Apr-2015 |
oshogbo |
Remove the use of nvlist_.*[fv] functions from tests.
Approved by: pjd (mentor)
|
#
279760 |
|
07-Mar-2015 |
dim |
Fix lib/libnv tests compilation with -std=c++11, by adding appropriate casts for NULL to invocations of the ATF_REQUIER_EQ() macro.
Reviewed by: rstone, jmmv Differential Revision: https://reviews.freebsd.org/D2027
|
#
279440 |
|
28-Feb-2015 |
rstone |
Fix build of nv_tests.cc
nv_tests.cc managed to get two copies of several functions due to me applying a patch in an unclean working tree. My kingdom for an "svn clean" command.
MFC after: 1 month X-MFC-With: r279424
|
#
279436 |
|
28-Feb-2015 |
rstone |
Prevent creation of an invalid nvlist
If an nvlist is set as a child of another nvlist with nvlist_move_nvlist then fail the operation and set the parent nvlist to the error state.
Differential Revision: https://reviews.freebsd.org/D1880 Reviewers: jfv MFC after: 1 month Sponsored by: Sandvine Inc
|
#
279434 |
|
28-Feb-2015 |
rstone |
Add function to force an nvlist into the error state
Add an nvlist_set_error() function that can be used to force an nvlist into the error state. This is useful both for writing tests and for writing APIs that use nvlists internally.
Differential Revision: https://reviews.freebsd.org/D1878 Reviewed by: pjd, jfv MFC After: 1 month Sponsored by: Sandvine Inc.
|
#
279429 |
|
28-Feb-2015 |
rstone |
Add tests for nvlist_free* functions
Differential Revision: https://reviews.freebsd.org/D1874 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
|
#
279428 |
|
28-Feb-2015 |
rstone |
Add tests for nvlist_take_*
Differential Revision: https://reviews.freebsd.org/D1873 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
|
#
279427 |
|
28-Feb-2015 |
rstone |
Add test cases for nvlist_move_*
Differential Revision: https://reviews.freebsd.org/D1872 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
|
#
279426 |
|
28-Feb-2015 |
rstone |
Add tests for nvlist_pack/unpack
Differential Revision: https://reviews.freebsd.org/D1871 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
|
#
279425 |
|
28-Feb-2015 |
rstone |
Add tests for nvlist_clone
Differential Revision: https://reviews.freebsd.org/D1870 Reviewed by: pjd, jfv MFC after: 1 month Sponsored by: Sandvine Inc
|
#
279424 |
|
28-Feb-2015 |
rstone |
Tests of basic nvlist add functions
Differential Revision: https://reviews.freebsd.org/D1869 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
|