mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-27 00:29:18 +00:00
439509b408
It was possible to corrupt New World nvram using dingusppc setenv command. - setenv must call get_config_vars to set data_length so that it can calculate free space. - data_length represents the number of bytes taken by nvram variables including the terminating null for the value (name, '=', value, '\0'). Previously, it did not include the terminating null. - The list of variables and values ends at a '\0' or at pos == 4096 bytes. Previously, data_length wouldn't get set if pos >= 4096. - Allow setenv to create new nvram variables. - Since data_length now represents the total number of used bytes, free_space now represents the actual free space, so use > free_space (instead of >= free_space) to determine insufficient space. - While parsing nvram variable name, do not read beyond 4096 bytes. - Use a different error message for each problem that can occur while parsing nvram variable name. |
||
---|---|---|
.. | ||
common | ||
ethernet | ||
floppy | ||
ioctrl | ||
memctrl | ||
serial | ||
sound | ||
storage | ||
video | ||
CMakeLists.txt | ||
deviceregistry.cpp | ||
deviceregistry.h |