audk/ShellPkg
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
..
Application ShellPkg: Update the comments of ReadKeyStroke and ReadKeyStrokeEx 2024-04-03 10:25:06 +08:00
DynamicCommand ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
Include ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
Library ShellPkg: Fix Optional Data rewriting with bcfg 2024-10-04 21:11:41 +00:00
ShellPkg.ci.yaml ShellPkg/ShellPkg.ci.yaml: Add PrEval CI config 2024-09-02 23:20:35 +00:00
ShellPkg.dec ShellPkg: Increase PcdShellPrintBufferSize from UINT16 to UINT32 2023-10-17 03:04:05 +00:00
ShellPkg.dsc ShellPkg: Add StackCheckLib 2024-09-13 03:58:46 +00:00