Hi,

This patch series contains fixes and enhancements for the UEFI Protocols
management test. It is broken down in small steps to ease review; feel free
to squash and/or cherry-pick.

It is possible to verify with valgrind that the first couple of fixes in
this series do indeed remove invalid writes, with the following steps:

1. Modify the efi_allocate_pool() and efi_free_pool() functions to call
   malloc() and free() respectively.

2. Build U-Boot with sandbox_defconfig and CONFIG_VALGRIND=y.
3. Run the following command:

  $ valgrind --suppressions=scripts/u-boot.supp \
      ./u-boot -T -c "setenv efi_selftest manage protocols; \
                      bootefi selftest"

Best regards,
Vincent.


Vincent Stehlé (5):
  efi_selftest: fix buffer overflow
  efi_selftest: fix buffer overflow and memory leak
  efi_selftest: remove unnecessary initializations
  efi_selftest: fix buffer size and count computations
  efi_selftest: cosmetic: fix spelling in comments

 .../efi_selftest_manageprotocols.c            | 28 ++++++++++---------
 1 file changed, 15 insertions(+), 13 deletions(-)

-- 
2.51.0

Reply via email to