[webkit-changes] [WebKit/WebKit] 76d8f2: INADDR_LOOPBACK needs to be swapped to network endian

Guoye Zhang noreply at github.com
Mon May 20 13:44:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 76d8f2546f8dff36f72678b462883ccde97aad8f
      https://github.com/WebKit/WebKit/commit/76d8f2546f8dff36f72678b462883ccde97aad8f
  Author: Guoye Zhang <guoye_zhang at apple.com>
  Date:   2024-05-20 (Mon, 20 May 2024)

  Changed paths:
    M Source/WebCore/platform/network/DNS.cpp

  Log Message:
  -----------
  INADDR_LOOPBACK needs to be swapped to network endian
https://bugs.webkit.org/show_bug.cgi?id=274336

Reviewed by Matthew Finkel.

IPAddress::isLoopback() compares in_addr with INADDR_LOOPBACK without swapping the byte order.

* Source/WebCore/platform/network/DNS.cpp:
(WebCore::IPAddress::isLoopback const):

Canonical link: https://commits.webkit.org/279010@main



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


More information about the webkit-changes mailing list