| 50f5e1a3 | 29-Apr-2019 |
Mariusz Zaborski <[email protected]> |
MFC r346113: libnv: fix compilation warnings
When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP.
Submitted by: Mindaugas Rasiukevic
MFC r346113: libnv: fix compilation warnings
When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP.
Submitted by: Mindaugas Rasiukevicius <[email protected]>
show more ...
|
| 24881c06 | 18-Jun-2018 |
Mariusz Zaborski <[email protected]> |
libnv: Add nvlist_append_*_array() family of functions.
The nvlist_append_{bool,number,string,nvlist,descriptor}_array() functions allows to dynamically extend array stored in the nvlist.
Submitted
libnv: Add nvlist_append_*_array() family of functions.
The nvlist_append_{bool,number,string,nvlist,descriptor}_array() functions allows to dynamically extend array stored in the nvlist.
Submitted by: Mindaugas Rasiukevicius <[email protected]>
show more ...
|
| c11c5fb8 | 18-Jun-2018 |
Mariusz Zaborski <[email protected]> |
libnv: clean parent in nvlist_array when removing it.
When we are removing element form the nvlist we should also clean parent, because the array is not a part of the nvlist anymore.
Submitted by:
libnv: clean parent in nvlist_array when removing it.
When we are removing element form the nvlist we should also clean parent, because the array is not a part of the nvlist anymore.
Submitted by: Mindaugas Rasiukevicius <[email protected]>
show more ...
|
| d82e41b6 | 18-Jun-2018 |
Mariusz Zaborski <[email protected]> |
libnv: Remove nvlist argument from cnvlist_{take,free}_* functions.
All information which are need for those operations is already stored in the cookie.
We decided not to bump libnv version because
libnv: Remove nvlist argument from cnvlist_{take,free}_* functions.
All information which are need for those operations is already stored in the cookie.
We decided not to bump libnv version because this API is not used yet in the base system.
Reviewed by: pjd
show more ...
|
| 56117a34 | 21-Sep-2017 |
Mariusz Zaborski <[email protected]> |
IMHO it is possible that failure will be treated as success because we don't initialize nvp on every loop iteration and the code under 'fail'(!) label detects success by checking of nvp != NULL.
Sub
IMHO it is possible that failure will be treated as success because we don't initialize nvp on every loop iteration and the code under 'fail'(!) label detects success by checking of nvp != NULL.
Submitted by: pjd@ MFC after: 1 month Sponsored by: Wheel Systems
show more ...
|
| c696dd06 | 21-Sep-2017 |
Mariusz Zaborski <[email protected]> |
Because nvp wasn't initialized on every loop iteration once we jumped to 'fail' on error it was treated as success, because nvp!=NULL. Fix this by not handling success under 'fail' label and by using
Because nvp wasn't initialized on every loop iteration once we jumped to 'fail' on error it was treated as success, because nvp!=NULL. Fix this by not handling success under 'fail' label and by using separate variable for parent nvpair.
If we succeeded to allocate nvlist, but failed to allocated nvpair we would leak nvls[ii] on return. Destroy it when we cannot allocate nvpair, before we goto fail.
Submitted by: pjd@ and oshogbo@ (minor changes) Found by: scan-build MFC after: 1 month Sponsored by: Wheel Systems
show more ...
|
| 1dacabe1 | 21-Sep-2017 |
Mariusz Zaborski <[email protected]> |
The 'while (array != NULL) { }' suggests scan-build that array may be initially NULL, which is not possible. Change the loop to 'do {} while (array != NULL)' to satisfy scan-build and assert that arr
The 'while (array != NULL) { }' suggests scan-build that array may be initially NULL, which is not possible. Change the loop to 'do {} while (array != NULL)' to satisfy scan-build and assert that array really cannot be NULL just in case.
Submitted by: pjd@ Found by: scan-build MFC after: 1 month Sponsored by: Wheel Systems
show more ...
|