Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 54469a6918320591a3ec318eada60aed3c75334c
      
https://github.com/tianocore/edk2/commit/54469a6918320591a3ec318eada60aed3c75334c
  Author: Tormod Volden <[email protected]>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to