audk/SecurityPkg/RandomNumberGenerator/RngDxe
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
..
AArch64 SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator 2023-09-08 12:48:57 +00:00
Arm SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator 2023-09-08 12:48:57 +00:00
Rand SecurityPkg/RngDxe: Correctly update mAvailableAlgoArrayCount 2023-03-07 15:34:23 +00:00
ArmRngDxe.c SecurityPkg/RngDxe: Simplify Rng algorithm selection for Arm 2023-09-08 09:48:55 +00:00
ArmTrng.c SecurityPkg/RngDxe: Add AArch64 RawAlgorithm support through ArmTrngLib 2022-11-06 16:32:28 +00:00
RngDxe.c SecurityPkg/RngDxe: Conditionally install EFI_RNG_PROTOCOL 2023-03-07 15:34:23 +00:00
RngDxe.inf SecurityPkg/RngDxe: Use GetRngGuid() when probing RngLib 2023-09-08 09:48:55 +00:00
RngDxe.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
RngDxeExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
RngDxeInternals.h SecurityPkg/RngDxe: Check before advertising Cpu Rng algo 2022-11-06 16:32:28 +00:00