audk/SecurityPkg
Kun Qin b74f1f7ab5 SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator
REF: https://bugzilla.tianocore.org/show_bug.cgi?idD91

mAvailableAlgoArray is currently allocated for "RNG_AVAILABLE_ALGO_MAX"
number of bytes, whereas it was dereferenced as "EFI_RNG_ALGORITHM".

This change fixed the buffer allocation logic by allocating a proper size
of buffer before referencing.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Sami Mujawar <Sami.Mujawar@arm.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>

Signed-off-by: Kun Qin <kuqin@microsoft.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
2023-09-08 12:48:57 +00:00
..
EnrollFromDefaultKeysApp SecurityPkg: Secure Boot Drivers: Added common header files 2022-07-07 01:07:00 +00:00
FvReportPei SecurityPkg/FvReportPei: Use FirmwareVolumeShadowPpi 2023-03-27 16:25:51 +00:00
Hash2DxeCrypto SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HddPassword Securitypkg/hddpassword: Update HddPasswordDxeInit to use Variable Policy 2023-05-08 11:39:32 +00:00
Include SecurityPkg: deprecate RpmcLib and VariableKeyLib 2022-12-21 05:49:48 +00:00
Library SecurityPkg/SecureBoot: Support RSA4096 and RSA3072 2023-09-07 06:12:18 +00:00
Pkcs7Verify/Pkcs7VerifyDxe SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
RandomNumberGenerator/RngDxe SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator 2023-09-08 12:48:57 +00:00
Tcg SecurityPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Test SecurityPkg: Add gmock example 2023-04-10 05:59:02 +00:00
VariableAuthenticated SecurityPkg/SecureBoot: Support RSA4096 and RSA3072 2023-09-07 06:12:18 +00:00
SecurityPkg.ci.yaml SecurityPkg: SecureBootVariableLib: Added unit tests 2022-07-07 01:07:00 +00:00
SecurityPkg.dec SecurityPkg/SecurityPkg.dec: Move PcdCpuRngSupportedAlgorithm to MdePkg 2023-09-08 09:48:55 +00:00
SecurityPkg.dsc MdeModulePkg: Duplicate BaseRngLibTimerLib to MdeModulePkg 2023-09-08 09:48:55 +00:00
SecurityPkg.uni SecurityPkg: SubClassTpm: Updated default value 2023-06-23 16:28:24 +00:00
SecurityPkgExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00