| 9c2ef102 | 26-Aug-2024 |
Mariusz Zaborski <[email protected]> |
libnv: verify that string is null terminated
During unpacking, we ensure that we do not read beyond the declared size. However, unpack uses a function that copies null-terminated strings. Prior to t
libnv: verify that string is null terminated
During unpacking, we ensure that we do not read beyond the declared size. However, unpack uses a function that copies null-terminated strings. Prior to this commit, if the last string was not null-terminated, it could result in copying data into a buffer smaller than the allocated size.
Security: FreeBSD-24:09.libnv Security: CVE-2024-45288 Security: CAP-03 Reported by: Synacktiv Sponsored by: The Alpha-Omega Project Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46138
(cherry picked from commit 3aaaca1b51ad844ef9e9b3d945217ab3dd189bae)
show more ...
|
| 5916ae1f | 06-Dec-2021 |
Robert Wing <[email protected]> |
libnv: read entire datagram in nvlist_recv()
When SOCK_DGRAM is used, a portion of the datagram is discarded during the initial recv() when getting the nvlist_header.
To workaround this, use MSG_PE
libnv: read entire datagram in nvlist_recv()
When SOCK_DGRAM is used, a portion of the datagram is discarded during the initial recv() when getting the nvlist_header.
To workaround this, use MSG_PEEK for the initial recv() when using a datagram socket.
Add tests for SOCK_DGRAM with nvlist_send()/nvlist_recv().
Differential Revision: https://reviews.freebsd.org/D32722
show more ...
|
| a1742a58 | 11-Apr-2019 |
Mariusz Zaborski <[email protected]> |
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 <rmind@netbsd
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]> MFC after: 2 weeks
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 ...
|