joevt 439509b408 Fix New World NVRAM limits calculations.
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.
2023-08-04 20:11:59 -07:00
..
2023-08-01 22:43:11 -07:00
2022-08-14 23:01:55 +02:00
2023-08-02 07:53:19 -07:00
2023-04-22 22:52:03 +02:00
2023-06-18 23:22:51 +02:00
2023-01-11 23:49:20 +01:00
2022-08-22 17:16:22 -07:00
2023-08-01 22:43:11 -07:00