loader: strings in nvlist are counted strings, not c-strings
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
Updated by Electric Monk about 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit ce5f7fb896fce369b4ec50da6d3a232bce2458ce Author: Toomas Soome <email@example.com> Date: 2020-06-19T17:39:31.000Z 12836 loader: strings in nvlist are counted strings, not c-strings Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: C Fraire <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>