Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: df84bb5edad83dab99a267dc9f767a57f6caba5e
      
https://github.com/tianocore/edk2/commit/df84bb5edad83dab99a267dc9f767a57f6caba5e
  Author: Santhosh Kumar V <santhoshkum...@ami.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M NetworkPkg/HttpDxe/HttpImpl.c
    M NetworkPkg/HttpDxe/HttpsSupport.c

  Log Message:
  -----------
  Resolved Coverity Issues in Http Dxe

1.HttpResponseWorker(DEADCODE)
The result of pointer arithmetic "HttpHeaders+AsciiStrLen("HTTP/1.1") + 1"
is never null.
2.HttpsSupport.c (NULL_RETURNS)
NetbufAlloc might return null pointer ,so assigning "NULL" to
"PacketOut" and "DataOut" pointer.

Solution:
1.Removed the NULL Check for "StatusCodeStr"
2.Added Null Check for PacketOut and returned EFI_OUT_OF_RESOURCES
on NULL case.

Signed-off-by: santhosh kumar V <santhoshkum...@ami.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to