[webkit-changes] [WebKit/WebKit] 7a71be: Enable -Wunsafe-buffer-usage in WTF

geoffreygaren noreply at github.com
Sun Oct 27 20:02:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7a71befb39c7b1bc3e0dac9d557dc18f83253c11
      https://github.com/WebKit/WebKit/commit/7a71befb39c7b1bc3e0dac9d557dc18f83253c11
  Author: Geoffrey Garen <ggaren at apple.com>
  Date:   2024-10-27 (Sun, 27 Oct 2024)

  Changed paths:
    M Source/WTF/Configurations/Base.xcconfig
    M Source/WTF/wtf/Assertions.cpp
    M Source/WTF/wtf/BitVector.cpp
    M Source/WTF/wtf/CodePtr.h
    M Source/WTF/wtf/Compiler.h
    M Source/WTF/wtf/ConcurrentPtrHashSet.cpp
    M Source/WTF/wtf/ConcurrentPtrHashSet.h
    M Source/WTF/wtf/DataLog.cpp
    M Source/WTF/wtf/DateMath.cpp
    M Source/WTF/wtf/DateMath.h
    M Source/WTF/wtf/FastBitVector.cpp
    M Source/WTF/wtf/FastBitVector.h
    M Source/WTF/wtf/FastFloat.cpp
    M Source/WTF/wtf/FileSystem.cpp
    M Source/WTF/wtf/FunctionPtr.h
    M Source/WTF/wtf/Gigacage.h
    M Source/WTF/wtf/HexNumber.cpp
    M Source/WTF/wtf/JSONValues.cpp
    M Source/WTF/wtf/ParkingLot.cpp
    M Source/WTF/wtf/PtrTag.cpp
    M Source/WTF/wtf/PtrTag.h
    M Source/WTF/wtf/RefCounted.cpp
    M Source/WTF/wtf/RefTrackerMixin.cpp
    M Source/WTF/wtf/SHA1.cpp
    M Source/WTF/wtf/SIMDUTF.cpp
    M Source/WTF/wtf/SixCharacterHash.cpp
    M Source/WTF/wtf/StackBounds.cpp
    M Source/WTF/wtf/StackBounds.h
    M Source/WTF/wtf/StackShotProfiler.h
    M Source/WTF/wtf/StringPrintStream.cpp
    M Source/WTF/wtf/URL.cpp
    M Source/WTF/wtf/URLHelpers.cpp
    M Source/WTF/wtf/URLParser.cpp
    M Source/WTF/wtf/UUID.cpp
    M Source/WTF/wtf/WTFConfig.cpp
    M Source/WTF/wtf/WTFConfig.h
    M Source/WTF/wtf/cocoa/MemoryPressureHandlerCocoa.mm
    M Source/WTF/wtf/cocoa/NSURLExtras.mm
    M Source/WTF/wtf/cocoa/SystemTracingCocoa.cpp
    M Source/WTF/wtf/darwin/OSLogPrintStream.mm
    M Source/WTF/wtf/dragonbox/detail/cache_holder.h
    M Source/WTF/wtf/dragonbox/detail/policy.h
    M Source/WTF/wtf/dragonbox/dragonbox_to_chars.cpp
    M Source/WTF/wtf/dragonbox/dragonbox_to_chars.h
    M Source/WTF/wtf/dtoa.cpp
    M Source/WTF/wtf/dtoa/bignum.cc
    M Source/WTF/wtf/dtoa/cached-powers.cc
    M Source/WTF/wtf/dtoa/double-conversion.cc
    M Source/WTF/wtf/dtoa/fast-dtoa.cc
    M Source/WTF/wtf/dtoa/strtod.cc
    M Source/WTF/wtf/fast_float/ascii_number.h
    M Source/WTF/wtf/fast_float/bigint.h
    M Source/WTF/wtf/fast_float/decimal_to_binary.h
    M Source/WTF/wtf/fast_float/digit_comparison.h
    M Source/WTF/wtf/fast_float/float_common.h
    M Source/WTF/wtf/persistence/PersistentCoders.cpp
    M Source/WTF/wtf/persistence/PersistentDecoder.cpp
    M Source/WTF/wtf/persistence/PersistentEncoder.cpp
    M Source/WTF/wtf/persistence/PersistentEncoder.h
    M Source/WTF/wtf/posix/FileSystemPOSIX.cpp
    M Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp
    M Source/WTF/wtf/posix/ThreadingPOSIX.cpp
    M Source/WTF/wtf/text/AdaptiveStringSearcher.h
    M Source/WTF/wtf/text/AtomString.cpp
    M Source/WTF/wtf/text/AtomStringImpl.cpp
    M Source/WTF/wtf/text/Base64.cpp
    M Source/WTF/wtf/text/Base64.h
    M Source/WTF/wtf/text/CString.cpp
    M Source/WTF/wtf/text/IntegerToStringConversion.h
    M Source/WTF/wtf/text/LineEnding.cpp
    M Source/WTF/wtf/text/StringBuilder.cpp
    M Source/WTF/wtf/text/StringBuilderInternals.h
    M Source/WTF/wtf/text/StringBuilderJSON.cpp
    M Source/WTF/wtf/text/StringBuilderJSON.h
    M Source/WTF/wtf/text/StringCommon.cpp
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringView.cpp
    M Source/WTF/wtf/text/WTFString.cpp
    M Source/WTF/wtf/text/WYHash.h
    M Source/WTF/wtf/text/cf/AtomStringImplCF.cpp
    M Source/WTF/wtf/text/cf/StringImplCF.cpp
    M Source/WTF/wtf/text/cocoa/ContextualizedNSString.mm
    M Source/WTF/wtf/text/icu/UTextProvider.cpp
    M Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp
    M Source/WTF/wtf/threads/Signals.cpp
    M Source/WTF/wtf/unicode/UTF8Conversion.cpp
    M Source/WTF/wtf/unicode/icu/CollatorICU.cpp
    M Source/WTF/wtf/unicode/icu/ICUHelpers.cpp
    M Source/bmalloc/bmalloc/BCompiler.h
    M Source/bmalloc/bmalloc/Gigacage.h
    M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
    M Source/bmalloc/bmalloc/VMAllocate.h
    M Source/bmalloc/bmalloc/bmalloc.h
    M Source/bmalloc/libpas/src/libpas/pas_platform.h
    M Source/bmalloc/libpas/src/libpas/pas_thread_suspend_lock.h

  Log Message:
  -----------
  Enable -Wunsafe-buffer-usage in WTF
https://bugs.webkit.org/show_bug.cgi?id=282081
rdar://137810587

Reviewed by Chris Dumez.

Added skip markers to files that do not yet conform.

* Source/WTF/Configurations/Base.xcconfig:
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/Assertions.cpp:
* Source/WTF/wtf/BitVector.cpp:
* Source/WTF/wtf/CodePtr.h:
* Source/WTF/wtf/ConcurrentPtrHashSet.cpp:
* Source/WTF/wtf/ConcurrentPtrHashSet.h:
* Source/WTF/wtf/DataLog.cpp:
* Source/WTF/wtf/DateMath.cpp:
* Source/WTF/wtf/DateMath.h:
* Source/WTF/wtf/FastBitVector.cpp:
* Source/WTF/wtf/FastBitVector.h:
* Source/WTF/wtf/FastFloat.cpp:
* Source/WTF/wtf/FileSystem.cpp:
* Source/WTF/wtf/HexNumber.cpp:
* Source/WTF/wtf/JSONValues.cpp:
* Source/WTF/wtf/ParkingLot.cpp:
* Source/WTF/wtf/PtrTag.cpp:
* Source/WTF/wtf/RefCounted.cpp:
* Source/WTF/wtf/RefTrackerMixin.cpp:
* Source/WTF/wtf/SHA1.cpp:
* Source/WTF/wtf/SIMDUTF.cpp:
* Source/WTF/wtf/SixCharacterHash.cpp:
* Source/WTF/wtf/StackBounds.cpp:
* Source/WTF/wtf/StackBounds.h:
* Source/WTF/wtf/StackShotProfiler.h:
* Source/WTF/wtf/StringPrintStream.cpp:
* Source/WTF/wtf/URL.cpp:
* Source/WTF/wtf/URLHelpers.cpp:
* Source/WTF/wtf/URLParser.cpp:
* Source/WTF/wtf/UUID.cpp:
* Source/WTF/wtf/WTFConfig.cpp:
* Source/WTF/wtf/WTFConfig.h:
* Source/WTF/wtf/cocoa/NSURLExtras.mm:
* Source/WTF/wtf/cocoa/SystemTracingCocoa.cpp:
* Source/WTF/wtf/darwin/OSLogPrintStream.mm:
* Source/WTF/wtf/dragonbox/detail/cache_holder.h:
* Source/WTF/wtf/dragonbox/detail/policy.h:
* Source/WTF/wtf/dragonbox/dragonbox_to_chars.cpp:
* Source/WTF/wtf/dragonbox/dragonbox_to_chars.h:
* Source/WTF/wtf/dtoa.cpp:
* Source/WTF/wtf/dtoa/bignum.cc:
* Source/WTF/wtf/dtoa/cached-powers.cc:
* Source/WTF/wtf/dtoa/double-conversion.cc:
* Source/WTF/wtf/dtoa/fast-dtoa.cc:
* Source/WTF/wtf/dtoa/strtod.cc:
* Source/WTF/wtf/fast_float/ascii_number.h:
* Source/WTF/wtf/fast_float/bigint.h:
* Source/WTF/wtf/fast_float/decimal_to_binary.h:
* Source/WTF/wtf/fast_float/digit_comparison.h:
* Source/WTF/wtf/fast_float/float_common.h:
* Source/WTF/wtf/mac/MachExceptions.defs:
* Source/WTF/wtf/persistence/PersistentCoders.cpp:
* Source/WTF/wtf/persistence/PersistentDecoder.cpp:
* Source/WTF/wtf/persistence/PersistentEncoder.cpp:
* Source/WTF/wtf/persistence/PersistentEncoder.h:
* Source/WTF/wtf/posix/FileSystemPOSIX.cpp:
* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
* Source/WTF/wtf/posix/ThreadingPOSIX.cpp:
* Source/WTF/wtf/text/AdaptiveStringSearcher.h:
* Source/WTF/wtf/text/AtomString.cpp:
* Source/WTF/wtf/text/AtomStringImpl.cpp:
* Source/WTF/wtf/text/Base64.cpp:
* Source/WTF/wtf/text/Base64.h:
* Source/WTF/wtf/text/CString.cpp:
* Source/WTF/wtf/text/IntegerToStringConversion.h:
* Source/WTF/wtf/text/LineEnding.cpp:
* Source/WTF/wtf/text/StringBuilder.cpp:
* Source/WTF/wtf/text/StringBuilderInternals.h:
* Source/WTF/wtf/text/StringBuilderJSON.cpp:
* Source/WTF/wtf/text/StringBuilderJSON.h:
* Source/WTF/wtf/text/StringCommon.cpp:
* Source/WTF/wtf/text/StringImpl.cpp:
* Source/WTF/wtf/text/StringView.cpp:
* Source/WTF/wtf/text/WTFString.cpp:
* Source/WTF/wtf/text/WYHash.h:
* Source/WTF/wtf/text/cf/AtomStringImplCF.cpp:
* Source/WTF/wtf/text/cf/StringImplCF.cpp:
* Source/WTF/wtf/text/cocoa/ContextualizedNSString.mm:
* Source/WTF/wtf/text/icu/UTextProvider.cpp:
* Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp:
* Source/WTF/wtf/threads/Signals.cpp:
* Source/WTF/wtf/unicode/UTF8Conversion.cpp:
* Source/WTF/wtf/unicode/icu/CollatorICU.cpp:
* Source/WTF/wtf/unicode/icu/ICUHelpers.cpp:

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