⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280686 in webkit


Ignore:
Timestamp:
Aug 5, 2021, 8:02:38 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Fix warning in HTTPParsers.parseStructuredFieldValue
https://bugs.webkit.org/show_bug.cgi?id=228815

Patch by Rob Buis <rbuis@igalia.com> on 2021-08-05
Reviewed by Sam Weinig.

UChar is unsigned, so it is not needed to check that it is
zewro or greater.

  • platform/network/HTTPParsers.cpp:

(WebCore::parseStructuredFieldValue):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r280681 r280686  
     12021-08-05  Rob Buis  <rbuis@igalia.com>
     2
     3        Fix warning in HTTPParsers.parseStructuredFieldValue
     4        https://bugs.webkit.org/show_bug.cgi?id=228815
     5
     6        Reviewed by Sam Weinig.
     7
     8        UChar is unsigned, so it is not needed to check that it is
     9        zewro or greater.
     10
     11        * platform/network/HTTPParsers.cpp:
     12        (WebCore::parseStructuredFieldValue):
     13
    1142021-08-05  Imanol Fernandez  <ifernandez@igalia.com>
    215
  • trunk/Source/WebCore/platform/network/HTTPParsers.cpp

    r280582 r280686  
    649649                        value = valueBuilder.toString();
    650650                        break;
    651                     } else if ((header[index] >= 0x00 && header[index] <= 0x1F) || (header[index] >= 0x7F && header[index] <= 0xFF)) // Not in VCHAR or SP.
     651                    } else if (header[index] <= 0x1F || (header[index] >= 0x7F && header[index] <= 0xFF)) // Not in VCHAR or SP.
    652652                        return std::nullopt;
    653653                    else
Note: See TracChangeset for help on using the changeset viewer.