Project

General

Profile

Actions

Bug #12836

closed

loader: strings in nvlist are counted strings, not c-strings

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The nvlist stream format has string data defined as <size><bytes..>, it may be padded by zeros to align by 4. This means, we can not use C string functions to handle string data from nvlist. To handle this, we need to get string length from nvlist_find() and use it to handle the data.

Testing done: build/install/boot

Actions

Also available in: Atom PDF