audk/NetworkPkg/Library
Vladimir Olovyannikov via groups.io 70c2f10fde NetworkPkg: Fix possible infinite loop in HTTP msg body parser
When an HTTP server sends a non-chunked body data with no
Content-Length header, the HttpParserMessageBody in DxeHttpLib
gets confused and never sets the Char pointer beyond the body start.
This causes "for" loop to never break because the condition of
"Char >= Body + BodyLength" is never satisfied.
Use BodyLength as the ContentLength for the parser when
ContentLength is absent in HTTP response headers.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2941

Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
2020-10-09 10:40:33 +00:00
..
DxeDpcLib NetworkPkg: Move Dpc.h from MdeModulePkg to NetworkPkg 2019-08-15 16:42:43 +08:00
DxeHttpLib NetworkPkg: Fix possible infinite loop in HTTP msg body parser 2020-10-09 10:40:33 +00:00
DxeIpIoLib NetworkPkg/Library: Fix various typos 2020-02-10 22:30:07 +00:00
DxeNetLib NetworkPkg/DxeNetLib: Change the order of conditions in IF statement 2020-05-20 12:44:43 +00:00
DxeTcpIoLib NetworkPkg/Library: Fix various typos 2020-02-10 22:30:07 +00:00
DxeUdpIoLib NetworkPkg/Library: Fix various typos 2020-02-10 22:30:07 +00:00