Hao Wu
2015-06-26 03:07:53 UTC
Changes between PATCH v1:
1. Replace Buf = AllocateZeroPool (size) followed by Strcpy (Buf, Source)
with Buf = AllocateCopyPool (size, Source)
2. Replace unnecessary usage of StrnCpyS/CatS with StrCpyS/CatS
3. The CopyMem() usage in file DevicePathFromText.c for the first patch is
a mistake. It's been fixed in this patch.
Hao Wu (2):
MdePkg UefiDevicePathLib: Remove unsafe string functions
MdePkg UefiLib: Use safe string functions
MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c | 17 +++++++++++++----
MdePkg/Library/UefiLib/Console.c | 6 +++---
MdePkg/Library/UefiLib/UefiLibPrint.c | 8 ++------
3 files changed, 18 insertions(+), 13 deletions(-)
1. Replace Buf = AllocateZeroPool (size) followed by Strcpy (Buf, Source)
with Buf = AllocateCopyPool (size, Source)
2. Replace unnecessary usage of StrnCpyS/CatS with StrCpyS/CatS
3. The CopyMem() usage in file DevicePathFromText.c for the first patch is
a mistake. It's been fixed in this patch.
Hao Wu (2):
MdePkg UefiDevicePathLib: Remove unsafe string functions
MdePkg UefiLib: Use safe string functions
MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c | 17 +++++++++++++----
MdePkg/Library/UefiLib/Console.c | 6 +++---
MdePkg/Library/UefiLib/UefiLibPrint.c | 8 ++------
3 files changed, 18 insertions(+), 13 deletions(-)
--
1.9.5.msysgit.0
1.9.5.msysgit.0