tianocore / edk2-redfish-client

Utilizes the EFI protocols provided by EDK2 Redfish Foundation to communicate with the Redfish service for creating, consuming, and updating the Redfish properties which are managed by firmware.
Other
7 stars 5 forks source link

RedfishClientPkg/ConverterLib: Fix empty string value issue #1

Closed nicklela closed 1 year ago

nicklela commented 1 year ago

allocateDuplicateStr() will not copy input string when input string is empty string. It returns NULL pointer and creates assertion in application driver.

Cc: Abner Chang abner.chang@amd.com Cc: Igor Kulchytskyy igork@ami.com Reviewed-by: Abner Chang abner.chang@amd.com