public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fix read memory access overflow in HTTPBoot
@ 2018-09-28  3:02 Songpeng Li
  2018-09-28  3:02 ` [PATCH v2 1/2] NetworkPkg/HttpDxe: " Songpeng Li
  2018-09-28  3:02 ` [PATCH v2 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li
  0 siblings, 2 replies; 3+ messages in thread
From: Songpeng Li @ 2018-09-28  3:02 UTC (permalink / raw)
  To: edk2-devel

The input param String of AsciiStrStr() requires a pointer to
 Null-terminated string, however in HttpTcpReceiveHeader() and
 HttpUtilitiesParse(), the Buffersize before AllocateZeroPool()
 is equal to the size of TCP header, after the CopyMem(), it
 might not end with Null-terminator. It might cause memory
 access overflow.

Songpeng Li (2):
  NetworkPkg/HttpDxe: fix read memory access overflow in HTTPBoot.
  NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow.

 NetworkPkg/HttpDxe/HttpProto.c                      | 10 ++++++----
 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c |  8 +++++++-
 2 files changed, 13 insertions(+), 5 deletions(-)

-- 
2.18.0.windows.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-28  3:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-28  3:02 [PATCH v2 0/2] fix read memory access overflow in HTTPBoot Songpeng Li
2018-09-28  3:02 ` [PATCH v2 1/2] NetworkPkg/HttpDxe: " Songpeng Li
2018-09-28  3:02 ` [PATCH v2 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox