Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: b74f1f7ab5e956f58ae1771dc4e2a4b92bc51430
https://github.com/tianocore/edk2/commit/b74f1f7ab5e956f58ae1771dc4e2a4b92bc51430
Author: Kun Qin <[email protected]>
Date: 2023-09-08 (Fri, 08 Sep 2023)
Changed paths:
M SecurityPkg/RandomNumberGenerator/RngDxe/AArch64/AArch64Algo.c
M SecurityPkg/RandomNumberGenerator/RngDxe/Arm/ArmAlgo.c
Log Message:
-----------
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 <[email protected]>
Cc: Jian J Wang <[email protected]>
Cc: Sami Mujawar <[email protected]>
Cc: Pierre Gondois <[email protected]>
Signed-off-by: Kun Qin <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits