[webkit-changes] [WebKit/WebKit] 8b4e15: Do more raw value validation when constructing an ...

Chris Dumez noreply at github.com
Wed Sep 11 19:42:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8b4e15aca1c085759fbd4449e54b384cba92c50b
      https://github.com/WebKit/WebKit/commit/8b4e15aca1c085759fbd4449e54b384cba92c50b
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-09-11 (Wed, 11 Sep 2024)

  Changed paths:
    M Source/WTF/wtf/ObjectIdentifier.h
    M Source/WTF/wtf/UUID.h
    M Source/WebCore/loader/DocumentThreadableLoader.cpp

  Log Message:
  -----------
  Do more raw value validation when constructing an ObjectIdentifier
https://bugs.webkit.org/show_bug.cgi?id=279535

Reviewed by Brady Eidson.

Do more raw value validation when constructing an ObjectIdentifier. In
particular, we now extend the validation to forbid HashTable deleted
values (not just empty ones).

* Source/WTF/wtf/ObjectIdentifier.h:
(WTF::ObjectIdentifierGenericBase<uint64_t>::isValidIdentifier):
(WTF::ObjectIdentifierGenericBase<uint64_t>::hashTableDeletedValue):
(WTF::ObjectIdentifierGenericBase<UUID>::isValidIdentifier):
(WTF::ObjectIdentifierGeneric::ObjectIdentifierGeneric):
* Source/WTF/wtf/UUID.h:
(WTF::UUID::isHashTableDeletedValue const):
(WTF::UUID::operator bool const):
* Source/WebCore/loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::loadRequest):

Canonical link: https://commits.webkit.org/283525@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