mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
TPM2.0 command lib always assumes TPM device and transmission channel can
respond correctly. But it is not true when communication channel is exploited
and wrong data is spoofed. Add more logic to prohibit memory overflow attack.
Cc: Long Qin <[email protected]>
Cc: Yao Jiewen <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <[email protected]>
Reviewed-by: Long Qin <[email protected]>
Reviewed-by: Yao Jiewen <[email protected]>
(cherry picked from commit dd577319e8)