Project

General

Profile

Actions

Bug #14715

closed

libsa: Fix a bug in nvlist creation

Added by Toomas Soome 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Patch picked from FreeBSD:

https://reviews.freebsd.org/D35254

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.

Testing done: build/install/boot.

Actions

Also available in: Atom PDF