]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
MdeModulePkg/DxeCorePerformanceLib: Switch to UnicodeStrnToAsciiStrS
authorJeff Brasen <jbrasen@nvidia.com>
Mon, 22 Jun 2020 18:20:16 +0000 (02:20 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 21 Jul 2020 14:47:24 +0000 (14:47 +0000)
commit9132a31b9c8381197eee75eb66c809182b264110
treec345c7ea118576c56cb8af046f3c8363f7ec67ed
parent02539e900854488343a1efa435d4dded1ddd66a2
MdeModulePkg/DxeCorePerformanceLib: Switch to UnicodeStrnToAsciiStrS

UnicodeStrToAsciiStrS requires that the source string is shorter than
the destination buffer and will ASSERT if this is not true. Switch to
UnicodeStrnToAsciiStrS as there are cases where the source string is
longer than the buffer allocated for the device path.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c