audk/ShellPkg/Library/UefiShellBcfgCommandLib
Tormod Volden 54469a6918 ShellPkg: Fix Optional Data rewriting with bcfg
When modifying the Optional Data of a boot option with bcfg boot -opt
the result was corrupted data, for instance a concatenation of old data,
heap contents, and new data. This was due to a erronous calculation of
the original optional data length.

In addition to fixing the calculation, add explaining comments and
introduce a helper variable, to not abuse other variables and confuse
readers (including the author).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2024-10-04 21:11:41 +00:00
..
UefiShellBcfgCommandLib.c ShellPkg: Fix Optional Data rewriting with bcfg 2024-10-04 21:11:41 +00:00
UefiShellBcfgCommandLib.inf ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellBcfgCommandLib.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00