HomeFreeBSD

libsa: Fix a bug in nvlist creation

Description

libsa: Fix a bug in nvlist creation

When adding an entry to an nvlist, the data buffer might need to be
resized. When this happens, the XDR encoder's notion of the buffer size
also needs to be updated, otherwise the operation may erroneously fail.

Reviewed by: tsoome, imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35254

Details

Provenance
markjAuthored on May 20 2022, 2:15 PM
Reviewer
tsoome
Differential Revision
D35254: libsa: Fix a bug in nvlist creation
Parents
rG4a3e51335e86: cpuset: Fix the KASAN and KMSAN builds
Branches
Unknown
Tags
Unknown