Hao Wu
2015-07-07 05:35:41 UTC
Commit r17732 to r17739 used safe string functions to replace the old ones
in IntelFrameworkModulePkg. However, these changes broght the following
two issues:
1. AllocateCopyPool (AllocationSize, Buffer)
Some usage of AllocateCopyPool() will read contents out of the scope
of 'Buffer'. Potential risk when 'Buffer' is allocated at the boundary of
memory region.
2. Some replacement of StrnCpy/StrnCat with StrCpyS/StrCatS functions
These changes will cause ASSERT when buffer overflow occurs, the
patches will use StrnCpyS/StrnCatS instead to resolve this issue.
Hao Wu (5):
IntelFrameworkModulePkg GenericBdsLib: Resolve issue brought by r17733
IntelFrameworkModulePkg BdsDxe: Resolve issue brought by r17735
IntelFrameworkModulePkg BootMaint: Resolve issue brought by r17736
IntelFrameworkModulePkg BootMngr: Resolve issue brought by r17737
IntelFrameworkModulePkg DeviceMngr: Resolve issue brought by r17738
.../Library/GenericBdsLib/BdsMisc.c | 20 ++++++++++++--------
.../Universal/BdsDxe/BootMaint/BootOption.c | 3 ++-
.../Universal/BdsDxe/BootMngr/BootManager.c | 3 ++-
.../Universal/BdsDxe/DeviceMngr/DeviceManager.c | 3 ++-
.../Universal/BdsDxe/MemoryTest.c | 14 ++++++++++++--
5 files changed, 30 insertions(+), 13 deletions(-)
in IntelFrameworkModulePkg. However, these changes broght the following
two issues:
1. AllocateCopyPool (AllocationSize, Buffer)
Some usage of AllocateCopyPool() will read contents out of the scope
of 'Buffer'. Potential risk when 'Buffer' is allocated at the boundary of
memory region.
2. Some replacement of StrnCpy/StrnCat with StrCpyS/StrCatS functions
These changes will cause ASSERT when buffer overflow occurs, the
patches will use StrnCpyS/StrnCatS instead to resolve this issue.
Hao Wu (5):
IntelFrameworkModulePkg GenericBdsLib: Resolve issue brought by r17733
IntelFrameworkModulePkg BdsDxe: Resolve issue brought by r17735
IntelFrameworkModulePkg BootMaint: Resolve issue brought by r17736
IntelFrameworkModulePkg BootMngr: Resolve issue brought by r17737
IntelFrameworkModulePkg DeviceMngr: Resolve issue brought by r17738
.../Library/GenericBdsLib/BdsMisc.c | 20 ++++++++++++--------
.../Universal/BdsDxe/BootMaint/BootOption.c | 3 ++-
.../Universal/BdsDxe/BootMngr/BootManager.c | 3 ++-
.../Universal/BdsDxe/DeviceMngr/DeviceManager.c | 3 ++-
.../Universal/BdsDxe/MemoryTest.c | 14 ++++++++++++--
5 files changed, 30 insertions(+), 13 deletions(-)
--
1.9.5.msysgit.0
1.9.5.msysgit.0