Skip to content

Commit b942617

Browse files
committed
Added skip markers for JavaScriptCore and WebCore files that do not conform to -Wunsafe-buffer-usage
https://bugs.webkit.org/show_bug.cgi?id=282302 rdar://138878237 Reviewed by David Kilzer. I plan to enable -Wunsafe-buffer-usage in a separate patch, since I've probably missed a file or two. * Source/JavaScriptCore/API/JSClassRef.cpp: * Source/JavaScriptCore/API/JSContext.mm: * Source/JavaScriptCore/API/JSObjectRef.cpp: * Source/JavaScriptCore/API/JSScriptRef.cpp: * Source/JavaScriptCore/API/JSStringRef.cpp: * Source/JavaScriptCore/API/JSStringRefCF.cpp: * Source/JavaScriptCore/API/JSTypedArray.cpp: * Source/JavaScriptCore/API/JSValue.mm: * Source/JavaScriptCore/API/JSWrapperMap.mm: * Source/JavaScriptCore/API/MarkedJSValueRefArray.cpp: * Source/JavaScriptCore/API/MarkedJSValueRefArray.h: * Source/JavaScriptCore/API/ObjCCallbackFunction.mm: * Source/JavaScriptCore/API/ObjcRuntimeExtras.h: * Source/JavaScriptCore/API/tests/CustomGlobalObjectClassTest.c: * Source/JavaScriptCore/API/tests/TypedArrayCTest.cpp: * Source/JavaScriptCore/API/tests/testapi.c: * Source/JavaScriptCore/assembler/ARM64Assembler.h: * Source/JavaScriptCore/assembler/AssemblerBuffer.h: * Source/JavaScriptCore/assembler/CPU.cpp: * Source/JavaScriptCore/assembler/FastJITPermissions.h: * Source/JavaScriptCore/assembler/JITOperationList.cpp: * Source/JavaScriptCore/assembler/LinkBuffer.cpp: * Source/JavaScriptCore/assembler/LinkBuffer.h: * Source/JavaScriptCore/assembler/MacroAssembler.h: * Source/JavaScriptCore/assembler/MacroAssemblerARM64.h: * Source/JavaScriptCore/assembler/MacroAssemblerARM64E.h: * Source/JavaScriptCore/assembler/MacroAssemblerPrinter.cpp: * Source/JavaScriptCore/assembler/PerfLog.cpp: * Source/JavaScriptCore/assembler/ProbeContext.h: * Source/JavaScriptCore/assembler/ProbeStack.cpp: * Source/JavaScriptCore/assembler/ProbeStack.h: * Source/JavaScriptCore/assembler/SecureARM64EHashPins.cpp: * Source/JavaScriptCore/assembler/SecureARM64EHashPins.h: * Source/JavaScriptCore/assembler/SecureARM64EHashPinsInlines.h: * Source/JavaScriptCore/b3/B3AtomicValue.h: * Source/JavaScriptCore/b3/B3CCallValue.h: * Source/JavaScriptCore/b3/B3CheckValue.h: * Source/JavaScriptCore/b3/B3Const128Value.cpp: * Source/JavaScriptCore/b3/B3ExtractValue.h: * Source/JavaScriptCore/b3/B3LowerMacros.cpp: * Source/JavaScriptCore/b3/B3LowerToAir.cpp: * Source/JavaScriptCore/b3/B3MemoryValue.h: * Source/JavaScriptCore/b3/B3MoveConstants.cpp: * Source/JavaScriptCore/b3/B3PatchpointValue.h: * Source/JavaScriptCore/b3/B3ReduceStrength.cpp: * Source/JavaScriptCore/b3/B3SIMDValue.h: * Source/JavaScriptCore/b3/B3SwitchValue.h: * Source/JavaScriptCore/b3/B3UpsilonValue.h: * Source/JavaScriptCore/b3/B3Value.cpp: * Source/JavaScriptCore/b3/B3Value.h: * Source/JavaScriptCore/b3/B3ValueKey.cpp: * Source/JavaScriptCore/b3/B3ValueKey.h: * Source/JavaScriptCore/b3/B3ValueKeyInlines.h: * Source/JavaScriptCore/b3/B3VariableValue.h: * Source/JavaScriptCore/b3/B3WasmAddressValue.h: * Source/JavaScriptCore/b3/B3WasmBoundsCheckValue.h: * Source/JavaScriptCore/b3/air/AirAllocateRegistersAndStackAndGenerateCode.cpp: * Source/JavaScriptCore/b3/air/AirAllocateRegistersAndStackByLinearScan.cpp: * Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp: * Source/JavaScriptCore/b3/air/AirDisassembler.cpp: * Source/JavaScriptCore/b3/air/AirFixPartialRegisterStalls.cpp: * Source/JavaScriptCore/b3/air/AirLowerMacros.cpp: * Source/JavaScriptCore/builtins/BuiltinExecutables.cpp: * Source/JavaScriptCore/bytecode/AdaptiveInferredPropertyValueWatchpointBase.cpp: * Source/JavaScriptCore/bytecode/ArrayProfile.h: * Source/JavaScriptCore/bytecode/BytecodeDumper.cpp: * Source/JavaScriptCore/bytecode/BytecodeGraph.h: * Source/JavaScriptCore/bytecode/BytecodeRewriter.cpp: * Source/JavaScriptCore/bytecode/BytecodeRewriter.h: * Source/JavaScriptCore/bytecode/CodeBlock.cpp: * Source/JavaScriptCore/bytecode/CodeBlock.h: * Source/JavaScriptCore/bytecode/CodeBlockHash.cpp: * Source/JavaScriptCore/bytecode/ExpressionInfo.cpp: * Source/JavaScriptCore/bytecode/ExpressionInfo.h: * Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp: * Source/JavaScriptCore/bytecode/Instruction.h: * Source/JavaScriptCore/bytecode/MetadataTable.cpp: * Source/JavaScriptCore/bytecode/MetadataTable.h: * Source/JavaScriptCore/bytecode/ObjectPropertyConditionSet.h: * Source/JavaScriptCore/bytecode/Opcode.cpp: * Source/JavaScriptCore/bytecode/ReduceWhitespace.cpp: * Source/JavaScriptCore/bytecode/UnlinkedMetadataTable.cpp: * Source/JavaScriptCore/bytecode/UnlinkedMetadataTable.h: * Source/JavaScriptCore/bytecode/UnlinkedMetadataTableInlines.h: * Source/JavaScriptCore/bytecode/ValueProfile.h: * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: * Source/JavaScriptCore/debugger/DebuggerParseData.cpp: * Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h: * Source/JavaScriptCore/dfg/DFGAdjacencyList.h: * Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp: * Source/JavaScriptCore/dfg/DFGCSEPhase.cpp: * Source/JavaScriptCore/dfg/DFGCapabilities.cpp: * Source/JavaScriptCore/dfg/DFGDisassembler.cpp: * Source/JavaScriptCore/dfg/DFGFixupPhase.cpp: * Source/JavaScriptCore/dfg/DFGGraph.cpp: * Source/JavaScriptCore/dfg/DFGNode.cpp: * Source/JavaScriptCore/dfg/DFGOSREntry.cpp: * Source/JavaScriptCore/dfg/DFGOSRExit.cpp: * Source/JavaScriptCore/dfg/DFGOperations.cpp: * Source/JavaScriptCore/dfg/DFGRegisterBank.h: * Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h: * Source/JavaScriptCore/dfg/DFGStoreBarrierClusteringPhase.cpp: * Source/JavaScriptCore/dfg/DFGStructureAbstractValue.cpp: * Source/JavaScriptCore/dfg/DFGVariableAccessData.h: * Source/JavaScriptCore/disassembler/ARM64/A64DOpcode.cpp: * Source/JavaScriptCore/disassembler/ARM64Disassembler.cpp: * Source/JavaScriptCore/disassembler/Disassembler.cpp: * Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp: * Source/JavaScriptCore/ftl/FTLJITCode.cpp: * Source/JavaScriptCore/ftl/FTLLocation.cpp: * Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp: * Source/JavaScriptCore/ftl/FTLOSREntry.cpp: * Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp: * Source/JavaScriptCore/ftl/FTLOperations.cpp: * Source/JavaScriptCore/heap/BlockDirectoryBits.h: * Source/JavaScriptCore/heap/ConservativeRoots.cpp: * Source/JavaScriptCore/heap/FreeList.h: * Source/JavaScriptCore/heap/FreeListInlines.h: * Source/JavaScriptCore/heap/GCMemoryOperations.h: * Source/JavaScriptCore/heap/GCSegmentedArray.h: * Source/JavaScriptCore/heap/GCSegmentedArrayInlines.h: * Source/JavaScriptCore/heap/HandleBlockInlines.h: * Source/JavaScriptCore/heap/Heap.h: * Source/JavaScriptCore/heap/HeapCell.h: * Source/JavaScriptCore/heap/JITStubRoutineSet.cpp: * Source/JavaScriptCore/heap/MachineStackMarker.cpp: * Source/JavaScriptCore/heap/MarkedBlock.cpp: * Source/JavaScriptCore/heap/MarkedBlock.h: * Source/JavaScriptCore/heap/MarkedBlockInlines.h: * Source/JavaScriptCore/heap/MarkedSpace.cpp: * Source/JavaScriptCore/heap/MarkedSpaceInlines.h: * Source/JavaScriptCore/heap/PreciseAllocation.h: * Source/JavaScriptCore/heap/SlotVisitor.cpp: * Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp: * Source/JavaScriptCore/heap/VerifierSlotVisitor.cpp: * Source/JavaScriptCore/heap/WeakBlock.cpp: * Source/JavaScriptCore/heap/WeakBlock.h: * Source/JavaScriptCore/heap/WeakImpl.h: * Source/JavaScriptCore/inspector/InspectorBackendDispatcher.cpp: * Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp: * Source/JavaScriptCore/interpreter/CallFrame.cpp: * Source/JavaScriptCore/interpreter/Interpreter.cpp: * Source/JavaScriptCore/interpreter/InterpreterInlines.h: * Source/JavaScriptCore/interpreter/ProtoCallFrame.h: * Source/JavaScriptCore/interpreter/ShadowChicken.cpp: * Source/JavaScriptCore/jit/AssemblyHelpers.cpp: * Source/JavaScriptCore/jit/AssemblyHelpers.h: * Source/JavaScriptCore/jit/AssemblyHelpersSpoolers.h: * Source/JavaScriptCore/jit/ExecutableAllocator.cpp: * Source/JavaScriptCore/jit/ExecutableAllocator.h: * Source/JavaScriptCore/jit/FPRInfo.h: * Source/JavaScriptCore/jit/JIT.cpp: * Source/JavaScriptCore/jit/JIT.h: * Source/JavaScriptCore/jit/JITCode.cpp: * Source/JavaScriptCore/jit/JITCodeMap.h: * Source/JavaScriptCore/jit/JITDisassembler.cpp: * Source/JavaScriptCore/jit/JITThunks.cpp: * Source/JavaScriptCore/jit/PCToCodeOriginMap.cpp: * Source/JavaScriptCore/jit/PolymorphicCallStubRoutine.cpp: * Source/JavaScriptCore/jit/SIMDInfo.cpp: * Source/JavaScriptCore/jit/SIMDInfo.h: * Source/JavaScriptCore/llint/LLIntData.cpp: * Source/JavaScriptCore/llint/LLIntData.h: * Source/JavaScriptCore/llint/LLIntEntrypoint.cpp: * Source/JavaScriptCore/llint/LLIntSlowPaths.cpp: * Source/JavaScriptCore/parser/Lexer.cpp: * Source/JavaScriptCore/parser/Lexer.h: * Source/JavaScriptCore/parser/ParserArena.cpp: * Source/JavaScriptCore/parser/ParserArena.h: * Source/JavaScriptCore/parser/SourceProviderCacheItem.h: * Source/JavaScriptCore/profiler/ProfilerBytecode.cpp: * Source/JavaScriptCore/runtime/ArgList.cpp: * Source/JavaScriptCore/runtime/ArgList.h: * Source/JavaScriptCore/runtime/ArrayBuffer.cpp: * Source/JavaScriptCore/runtime/ArrayBufferView.cpp: * Source/JavaScriptCore/runtime/ArrayBufferView.h: * Source/JavaScriptCore/runtime/ArrayConventions.cpp: * Source/JavaScriptCore/runtime/ArrayConventions.h: * Source/JavaScriptCore/runtime/ArrayPrototype.cpp: * Source/JavaScriptCore/runtime/AssertInvariants.cpp: * Source/JavaScriptCore/runtime/AtomicsObject.cpp: * Source/JavaScriptCore/runtime/BufferMemoryHandle.cpp: * Source/JavaScriptCore/runtime/Butterfly.h: * Source/JavaScriptCore/runtime/ButterflyInlines.h: * Source/JavaScriptCore/runtime/CachePayload.cpp: * Source/JavaScriptCore/runtime/CachedBytecode.cpp: * Source/JavaScriptCore/runtime/CachedTypes.cpp: * Source/JavaScriptCore/runtime/CagedBarrierPtr.h: * Source/JavaScriptCore/runtime/ClonedArguments.cpp: * Source/JavaScriptCore/runtime/CommonSlowPaths.cpp: * Source/JavaScriptCore/runtime/ConfigFile.cpp: * Source/JavaScriptCore/runtime/DateConstructor.cpp: * Source/JavaScriptCore/runtime/DateConversion.cpp: * Source/JavaScriptCore/runtime/DirectArguments.cpp: * Source/JavaScriptCore/runtime/DirectArguments.h: * Source/JavaScriptCore/runtime/ErrorType.cpp: * Source/JavaScriptCore/runtime/FileBasedFuzzerAgent.cpp: * Source/JavaScriptCore/runtime/FileBasedFuzzerAgentBase.cpp: * Source/JavaScriptCore/runtime/GenericArgumentsInlines.h: * Source/JavaScriptCore/runtime/GetPutInfo.h: * Source/JavaScriptCore/runtime/HasOwnPropertyCache.h: * Source/JavaScriptCore/runtime/ISO8601.cpp: * Source/JavaScriptCore/runtime/IndexingHeader.h: * Source/JavaScriptCore/runtime/InitializeThreading.cpp: * Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp: * Source/JavaScriptCore/runtime/IntlDisplayNames.cpp: * Source/JavaScriptCore/runtime/IntlDurationFormat.cpp: * Source/JavaScriptCore/runtime/IntlListFormat.cpp: * Source/JavaScriptCore/runtime/IntlLocale.cpp: * Source/JavaScriptCore/runtime/IntlNumberFormat.cpp: * Source/JavaScriptCore/runtime/IntlNumberFormatInlines.h: * Source/JavaScriptCore/runtime/IntlObject.cpp: * Source/JavaScriptCore/runtime/IntlObjectInlines.h: * Source/JavaScriptCore/runtime/JSArray.cpp: * Source/JavaScriptCore/runtime/JSArray.h: * Source/JavaScriptCore/runtime/JSArrayBufferPrototype.cpp: * Source/JavaScriptCore/runtime/JSArrayBufferView.cpp: * Source/JavaScriptCore/runtime/JSArrayBufferView.h: * Source/JavaScriptCore/runtime/JSArrayInlines.h: * Source/JavaScriptCore/runtime/JSBigInt.cpp: * Source/JavaScriptCore/runtime/JSBoundFunction.cpp: * Source/JavaScriptCore/runtime/JSCConfig.cpp: * Source/JavaScriptCore/runtime/JSCConfig.h: * Source/JavaScriptCore/runtime/JSCPtrTag.cpp: * Source/JavaScriptCore/runtime/JSDataViewPrototype.cpp: * Source/JavaScriptCore/runtime/JSDateMath.h: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructor.cpp: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewInlines.h: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototype.cpp: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h: * Source/JavaScriptCore/runtime/JSGlobalObject.cpp: * Source/JavaScriptCore/runtime/JSGlobalObject.h: * Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp: * Source/JavaScriptCore/runtime/JSImmutableButterfly.cpp: * Source/JavaScriptCore/runtime/JSImmutableButterfly.h: * Source/JavaScriptCore/runtime/JSInternalFieldObjectImpl.h: * Source/JavaScriptCore/runtime/JSLexicalEnvironment.h: * Source/JavaScriptCore/runtime/JSMicrotask.cpp: * Source/JavaScriptCore/runtime/JSModuleEnvironment.h: * Source/JavaScriptCore/runtime/JSONObject.cpp: * Source/JavaScriptCore/runtime/JSObject.cpp: * Source/JavaScriptCore/runtime/JSObjectInlines.h: * Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.cpp: * Source/JavaScriptCore/runtime/JSPropertyNameEnumerator.h: * Source/JavaScriptCore/runtime/JSString.cpp: * Source/JavaScriptCore/runtime/JSStringJoiner.cpp: * Source/JavaScriptCore/runtime/LazyClassStructureInlines.h: * Source/JavaScriptCore/runtime/LiteralParser.cpp: * Source/JavaScriptCore/runtime/LiteralParser.h: * Source/JavaScriptCore/runtime/Lookup.h: * Source/JavaScriptCore/runtime/MachineContext.h: * Source/JavaScriptCore/runtime/NumberPrototype.cpp: * Source/JavaScriptCore/runtime/ObjectConstructor.cpp: * Source/JavaScriptCore/runtime/ObjectConstructorInlines.h: * Source/JavaScriptCore/runtime/ObjectInitializationScope.cpp: * Source/JavaScriptCore/runtime/Operations.h: * Source/JavaScriptCore/runtime/Options.cpp: * Source/JavaScriptCore/runtime/OrderedHashTableHelper.h: * Source/JavaScriptCore/runtime/ParseInt.h: * Source/JavaScriptCore/runtime/PredictionFileCreatingFuzzerAgent.cpp: * Source/JavaScriptCore/runtime/PropertyName.h: * Source/JavaScriptCore/runtime/PropertyTable.cpp: * Source/JavaScriptCore/runtime/PropertyTable.h: * Source/JavaScriptCore/runtime/ProxyObject.cpp: * Source/JavaScriptCore/runtime/RegExpInlines.h: * Source/JavaScriptCore/runtime/RegExpPrototype.cpp: * Source/JavaScriptCore/runtime/SamplingProfiler.cpp: * Source/JavaScriptCore/runtime/ScopedArguments.cpp: * Source/JavaScriptCore/runtime/ScopedArguments.h: * Source/JavaScriptCore/runtime/ScopedArgumentsTable.h: * Source/JavaScriptCore/runtime/Scribble.h: * Source/JavaScriptCore/runtime/SmallStrings.cpp: * Source/JavaScriptCore/runtime/StableSort.h: * Source/JavaScriptCore/runtime/StringPrototype.cpp: * Source/JavaScriptCore/runtime/StringPrototypeInlines.h: * Source/JavaScriptCore/runtime/Structure.cpp: * Source/JavaScriptCore/runtime/StructureChain.cpp: * Source/JavaScriptCore/runtime/StructureID.h: * Source/JavaScriptCore/runtime/StructureInlines.h: * Source/JavaScriptCore/runtime/StructureRareData.cpp: * Source/JavaScriptCore/runtime/StructureRareDataInlines.h: * Source/JavaScriptCore/runtime/TemporalObject.cpp: * Source/JavaScriptCore/runtime/TypeProfilerLog.cpp: * Source/JavaScriptCore/runtime/VM.cpp: * Source/JavaScriptCore/runtime/VMTraps.cpp: * Source/JavaScriptCore/runtime/WaiterListManager.cpp: * Source/JavaScriptCore/runtime/WeakMapImpl.cpp: * Source/JavaScriptCore/runtime/WeakMapImpl.h: * Source/JavaScriptCore/runtime/WeakMapImplInlines.h: * Source/JavaScriptCore/tools/FunctionAllowlist.cpp: * Source/JavaScriptCore/tools/FunctionOverrides.cpp: * Source/JavaScriptCore/tools/JSDollarVM.cpp: * Source/JavaScriptCore/tools/VMInspector.cpp: * Source/JavaScriptCore/wasm/WasmBBQDisassembler.cpp: * Source/JavaScriptCore/wasm/WasmBBQJIT.h: * Source/JavaScriptCore/wasm/WasmCallee.cpp: * Source/JavaScriptCore/wasm/WasmFaultSignalHandler.cpp: * Source/JavaScriptCore/wasm/WasmFormat.h: * Source/JavaScriptCore/wasm/WasmFunctionIPIntMetadataGenerator.cpp: * Source/JavaScriptCore/wasm/WasmFunctionParser.h: * Source/JavaScriptCore/wasm/WasmGlobal.h: * Source/JavaScriptCore/wasm/WasmIPIntGenerator.cpp: * Source/JavaScriptCore/wasm/WasmIPIntPlan.cpp: * Source/JavaScriptCore/wasm/WasmLLIntPlan.cpp: * Source/JavaScriptCore/wasm/WasmMemory.cpp: * Source/JavaScriptCore/wasm/WasmModule.cpp: * Source/JavaScriptCore/wasm/WasmNameSection.h: * Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp: * Source/JavaScriptCore/wasm/WasmOpcodeCounter.cpp: * Source/JavaScriptCore/wasm/WasmOperations.cpp: * Source/JavaScriptCore/wasm/WasmOperationsInlines.h: * Source/JavaScriptCore/wasm/WasmParser.h: * Source/JavaScriptCore/wasm/WasmStreamingParser.cpp: * Source/JavaScriptCore/wasm/WasmTable.cpp: * Source/JavaScriptCore/wasm/WasmTable.h: * Source/JavaScriptCore/wasm/WasmTypeDefinition.cpp: * Source/JavaScriptCore/wasm/WasmTypeDefinition.h: * Source/JavaScriptCore/wasm/js/JSWebAssemblyArray.h: * Source/JavaScriptCore/wasm/js/JSWebAssemblyHelpers.h: * Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp: * Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.h: * Source/JavaScriptCore/wasm/js/JSWebAssemblyMemory.cpp: * Source/JavaScriptCore/wasm/js/JSWebAssemblyStruct.cpp: * Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp: * Source/JavaScriptCore/yarr/RegularExpression.cpp: * Source/JavaScriptCore/yarr/YarrCanonicalize.h: * Source/JavaScriptCore/yarr/YarrDisassembler.cpp: * Source/JavaScriptCore/yarr/YarrErrorCode.cpp: * Source/JavaScriptCore/yarr/YarrInterpreter.cpp: * Source/JavaScriptCore/yarr/YarrParser.h: * Source/JavaScriptCore/yarr/YarrPattern.cpp: * Source/JavaScriptCore/yarr/YarrUnicodeProperties.cpp: * Source/WebCore/Modules/ShapeDetection/Implementation/Cocoa/FaceDetectorImplementation.mm: * Source/WebCore/Modules/applepay/PaymentRequestValidator.mm: * Source/WebCore/Modules/mediasource/MediaSource.cpp: * Source/WebCore/Modules/speech/SpeechRecognitionUpdate.cpp: * Source/WebCore/Modules/webauthn/apdu/ApduCommand.cpp: * Source/WebCore/Modules/webauthn/apdu/ApduResponse.cpp: * Source/WebCore/Modules/webauthn/fido/DeviceResponseConverter.cpp: * Source/WebCore/Modules/webauthn/fido/FidoHidPacket.cpp: * Source/WebCore/Modules/webdatabase/SQLTransaction.cpp: * Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp: * Source/WebCore/Modules/webdatabase/SQLTransactionStateMachine.h: * Source/WebCore/accessibility/AccessibilityTable.cpp: * Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm: * Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm: * Source/WebCore/animation/BlendingKeyframes.cpp: * Source/WebCore/animation/CSSPropertyAnimation.cpp: * Source/WebCore/contentextensions/ContentExtensionStringSerialization.cpp: * Source/WebCore/contentextensions/DFABytecodeCompiler.cpp: * Source/WebCore/contentextensions/DFABytecodeInterpreter.cpp: * Source/WebCore/contentextensions/NFAToDFA.cpp: * Source/WebCore/contentextensions/SerializedNFA.cpp: * Source/WebCore/contentextensions/SerializedNFA.h: * Source/WebCore/crypto/cocoa/CryptoAlgorithmAESCBCMac.cpp: * Source/WebCore/crypto/cocoa/CryptoAlgorithmAESCFBMac.cpp: * Source/WebCore/crypto/cocoa/CryptoAlgorithmAESGCMMac.cpp: * Source/WebCore/css/CSSSelector.cpp: * Source/WebCore/css/CSSSelectorList.cpp: * Source/WebCore/css/CSSValueList.cpp: * Source/WebCore/css/CSSValueList.h: * Source/WebCore/css/CSSValuePool.h: * Source/WebCore/css/ImmutableStyleProperties.h: * Source/WebCore/css/StylePropertyShorthand.h: * Source/WebCore/css/calc/CSSCalcTree+Parser.cpp: * Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp: * Source/WebCore/css/parser/CSSParserFastPaths.cpp: * Source/WebCore/css/parser/CSSParserImpl.cpp: * Source/WebCore/css/parser/CSSParserObserverWrapper.cpp: * Source/WebCore/css/parser/CSSParserToken.cpp: * Source/WebCore/css/parser/CSSParserTokenRange.cpp: * Source/WebCore/css/parser/CSSPropertyParser.cpp: * Source/WebCore/css/parser/CSSTokenizer.cpp: * Source/WebCore/dom/SpaceSplitString.cpp: * Source/WebCore/editing/EditingStyle.cpp: * Source/WebCore/editing/VisibleUnits.cpp: * Source/WebCore/fileapi/FileReaderLoader.cpp: * Source/WebCore/html/FTPDirectoryDocument.cpp: * Source/WebCore/html/canvas/OESDrawBuffersIndexed.cpp: * Source/WebCore/html/canvas/WebGLDrawBuffers.cpp: * Source/WebCore/html/canvas/WebGLRenderingContextBase.h: * Source/WebCore/html/canvas/WebGLUtilities.h: * Source/WebCore/html/parser/HTMLEntityParser.cpp: * Source/WebCore/html/parser/HTMLEntitySearch.cpp: * Source/WebCore/html/parser/HTMLFormattingElementList.cpp: * Source/WebCore/html/parser/HTMLParserIdioms.cpp: * Source/WebCore/html/parser/HTMLSrcsetParser.cpp: * Source/WebCore/html/parser/ParsingUtilities.h: * Source/WebCore/html/track/TextTrackCueList.cpp: * Source/WebCore/html/track/VTTScanner.h: * Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp: * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: * Source/WebCore/layout/integration/inline/InlineIteratorLogicalOrderTraversal.h: * Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContent.cpp: * Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp: * Source/WebCore/loader/FTPDirectoryParser.h: * Source/WebCore/loader/cache/CachedImage.cpp: * Source/WebCore/mathml/MathMLOperatorDictionary.cpp: * Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp: * Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp: * Source/WebCore/page/mac/ServicesOverlayController.mm: * Source/WebCore/platform/DateComponents.cpp: * Source/WebCore/platform/FileHandle.cpp: * Source/WebCore/platform/FileStream.cpp: * Source/WebCore/platform/ScrollingMomentumCalculator.cpp: * Source/WebCore/platform/SharedBuffer.cpp: * Source/WebCore/platform/Timer.cpp: * Source/WebCore/platform/audio/AudioArray.h: * Source/WebCore/platform/audio/AudioSession.cpp: * Source/WebCore/platform/audio/EqualPowerPanner.cpp: * Source/WebCore/platform/audio/FFTConvolver.cpp: * Source/WebCore/platform/audio/HRTFElevation.cpp: * Source/WebCore/platform/audio/HRTFKernel.cpp: * Source/WebCore/platform/audio/HRTFPanner.cpp: * Source/WebCore/platform/audio/IIRFilter.cpp: * Source/WebCore/platform/audio/PlatformMediaSession.cpp: * Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp: * Source/WebCore/platform/audio/PushPullFIFO.cpp: * Source/WebCore/platform/audio/ZeroPole.cpp: * Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.cpp: * Source/WebCore/platform/audio/cocoa/AudioFileReaderCocoa.cpp: * Source/WebCore/platform/audio/cocoa/AudioSampleBufferList.cpp: * Source/WebCore/platform/audio/cocoa/CARingBuffer.cpp: * Source/WebCore/platform/audio/cocoa/WebAudioBufferList.cpp: * Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp: * Source/WebCore/platform/calc/CalculationExecutor.h: * Source/WebCore/platform/cocoa/SharedBufferCocoa.mm: * Source/WebCore/platform/graphics/ComplexTextController.cpp: * Source/WebCore/platform/graphics/ComplexTextController.h: * Source/WebCore/platform/graphics/DecomposedGlyphs.cpp: * Source/WebCore/platform/graphics/Font.cpp: * Source/WebCore/platform/graphics/FontCache.cpp: * Source/WebCore/platform/graphics/FontCascade.cpp: * Source/WebCore/platform/graphics/FontCascadeFonts.cpp: * Source/WebCore/platform/graphics/FormatConverter.cpp: * Source/WebCore/platform/graphics/GraphicsContextGL.cpp: * Source/WebCore/platform/graphics/GraphicsTypes.cpp: * Source/WebCore/platform/graphics/ImageBackingStore.h: * Source/WebCore/platform/graphics/ImageBufferBackend.cpp: * Source/WebCore/platform/graphics/Latin1TextIterator.h: * Source/WebCore/platform/graphics/MIMESniffer.cpp: * Source/WebCore/platform/graphics/MediaPlayer.cpp: * Source/WebCore/platform/graphics/Path.cpp: * Source/WebCore/platform/graphics/PathImpl.cpp: * Source/WebCore/platform/graphics/Region.cpp: * Source/WebCore/platform/graphics/ShadowBlur.cpp: * Source/WebCore/platform/graphics/SurrogatePairAwareTextIterator.h: * Source/WebCore/platform/graphics/UnitBezier.h: * Source/WebCore/platform/graphics/VelocityData.cpp: * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp: * Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm: * Source/WebCore/platform/graphics/ca/TileController.cpp: * Source/WebCore/platform/graphics/cg/ColorCG.cpp: * Source/WebCore/platform/graphics/cg/GradientRendererCG.cpp: * Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp: * Source/WebCore/platform/graphics/cg/GraphicsContextGLCG.cpp: * Source/WebCore/platform/graphics/cg/ImageBufferCGBitmapBackend.cpp: * Source/WebCore/platform/graphics/cg/ImageBufferUtilitiesCG.cpp: * Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp: * Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp: * Source/WebCore/platform/graphics/cg/PathCG.cpp: * Source/WebCore/platform/graphics/cg/ShareableBitmapCG.mm: * Source/WebCore/platform/graphics/cocoa/FontMetricsNormalization.h: * Source/WebCore/platform/graphics/cocoa/SourceBufferParserWebM.cpp: * Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp: * Source/WebCore/platform/graphics/coretext/ComplexTextControllerCoreText.mm: * Source/WebCore/platform/graphics/coretext/DrawGlyphsRecorderCoreText.cpp: * Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp: * Source/WebCore/platform/graphics/coretext/FontCoreText.cpp: * Source/WebCore/platform/graphics/coretext/SimpleFontDataCoreText.cpp: * Source/WebCore/platform/graphics/cv/CVUtilities.mm: * Source/WebCore/platform/graphics/cv/GraphicsContextGLCVCocoa.cpp: * Source/WebCore/platform/graphics/cv/PixelBufferConformerCV.cpp: * Source/WebCore/platform/graphics/cv/VideoFrameCV.mm: * Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp: * Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp: * Source/WebCore/platform/graphics/filters/FilterImage.cpp: * Source/WebCore/platform/graphics/filters/software/FEColorMatrixSoftwareApplier.cpp: * Source/WebCore/platform/graphics/filters/software/FEComponentTransferSoftwareApplier.cpp: * Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplier.h: * Source/WebCore/platform/graphics/filters/software/FELightingSoftwareApplierInlines.h: * Source/WebCore/platform/graphics/filters/software/FEMorphologySoftwareApplier.cpp: * Source/WebCore/platform/graphics/filters/software/FETurbulenceSoftwareApplier.cpp: * Source/WebCore/platform/graphics/mac/controls/ButtonMac.mm: * Source/WebCore/platform/graphics/mac/controls/InnerSpinButtonMac.mm: * Source/WebCore/platform/graphics/mac/controls/MenuListButtonMac.mm: * Source/WebCore/platform/graphics/mac/controls/MenuListMac.mm: * Source/WebCore/platform/graphics/mac/controls/ProgressBarMac.mm: * Source/WebCore/platform/graphics/mac/controls/SearchFieldCancelButtonMac.mm: * Source/WebCore/platform/graphics/mac/controls/SliderTrackMac.mm: * Source/WebCore/platform/graphics/mac/controls/SwitchMacUtilities.mm: * Source/WebCore/platform/graphics/mac/controls/ToggleButtonMac.mm: * Source/WebCore/platform/graphics/opentype/OpenTypeCG.cpp: * Source/WebCore/platform/graphics/opentype/OpenTypeMathData.cpp: * Source/WebCore/platform/graphics/opentype/OpenTypeTypes.h: * Source/WebCore/platform/image-decoders/ScalableImageDecoder.h: * Source/WebCore/platform/libwebrtc/LibWebRTCVPXVideoDecoder.cpp: * Source/WebCore/platform/libwebrtc/LibWebRTCVPXVideoEncoder.cpp: * Source/WebCore/platform/mac/ScrollbarThemeMac.mm: * Source/WebCore/platform/mediarecorder/cocoa/AudioSampleBufferCompressor.mm: * Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterWebM.cpp: * Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp: * Source/WebCore/platform/mediastream/RealtimeMediaSourceSettings.cpp: * Source/WebCore/platform/mediastream/cocoa/AudioMediaStreamTrackRendererInternalUnit.cpp: * Source/WebCore/platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp: * Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm: * Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp: * Source/WebCore/platform/network/BlobRegistryImpl.cpp: * Source/WebCore/platform/network/DNS.cpp: * Source/WebCore/platform/network/FormDataBuilder.cpp: * Source/WebCore/platform/text/SegmentedString.h: * Source/WebCore/rendering/AutoTableLayout.cpp: * Source/WebCore/rendering/BreakLines.h: * Source/WebCore/rendering/RenderFrameSet.cpp: * Source/WebCore/rendering/RenderQuote.cpp: * Source/WebCore/rendering/RenderTableCell.cpp: * Source/WebCore/rendering/RenderTableSection.cpp: * Source/WebCore/rendering/StyledMarkedText.cpp: * Source/WebCore/rendering/TextDecorationPainter.cpp: * Source/WebCore/rendering/line/BreakingContext.h: * Source/WebCore/rendering/mathml/MathOperator.cpp: * Source/WebCore/rendering/style/QuotesData.cpp: * Source/WebCore/rendering/style/TextSizeAdjustment.cpp: * Source/WebCore/rendering/svg/SVGMarkerData.h: * Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp: * Source/WebCore/rendering/svg/SVGRootInlineBox.cpp: * Source/WebCore/rendering/svg/SVGSubpathData.h: * Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp: * Source/WebCore/storage/StorageUtilities.cpp: * Source/WebCore/style/PropertyCascade.h: * Source/WebCore/svg/SVGParserUtilities.cpp: * Source/WebCore/svg/SVGPathByteStreamSource.h: * Source/WebCore/svg/SVGPathUtilities.cpp: * Source/WebCore/svg/SVGToOTFFontConversion.cpp: * Source/WebCore/svg/SVGTransformable.cpp: * Source/WebCore/workers/service/server/SWRegistrationDatabase.cpp: * Source/WebCore/xml/XSLTProcessorLibxslt.cpp: * Source/WebCore/xml/XSLTUnicodeSort.cpp: * Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp: Canonical link: https://commits.webkit.org/285912@main
1 parent 2de47ea commit b942617

File tree

542 files changed

+2131
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

542 files changed

+2131
-33
lines changed

Source/JavaScriptCore/API/JSClassRef.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434
using namespace JSC;
3535

36+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
37+
3638
const JSClassDefinition kJSClassDefinitionEmpty = { 0, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
3739

3840
OpaqueJSClass::OpaqueJSClass(const JSClassDefinition* definition, OpaqueJSClass* protoClass)
@@ -194,3 +196,5 @@ JSObject* OpaqueJSClass::prototype(JSGlobalObject* globalObject)
194196
jsClassData.cachedPrototype = Weak<JSObject>(prototype);
195197
return prototype;
196198
}
199+
200+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSContext.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050

5151
#if JSC_OBJC_API_ENABLED
5252

53+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
54+
5355
@implementation JSContext {
5456
RetainPtr<JSVirtualMachine> m_virtualMachine;
5557
JSGlobalContextRef m_context;
@@ -426,4 +428,6 @@ + (JSContext *)contextWithJSGlobalContextRef:(JSGlobalContextRef)globalContext
426428

427429
@end
428430

431+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END
432+
429433
#endif

Source/JavaScriptCore/API/JSObjectRef.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555

5656
using namespace JSC;
5757

58+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
59+
5860
JSClassRef JSClassCreate(const JSClassDefinition* definition)
5961
{
6062
JSC::initialize();
@@ -877,3 +879,4 @@ JSGlobalContextRef JSObjectGetGlobalContext(JSObjectRef objectRef)
877879
return reinterpret_cast<JSGlobalContextRef>(object->globalObject());
878880
}
879881

882+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSScriptRef.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
using namespace JSC;
3939

40+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
41+
4042
struct OpaqueJSScript final : public SourceProvider {
4143
public:
4244
static WTF::Ref<OpaqueJSScript> create(VM& vm, const SourceOrigin& sourceOrigin, String filename, int startingLineNumber, const String& source)
@@ -161,3 +163,5 @@ JSValueRef JSScriptEvaluate(JSContextRef context, JSScriptRef script, JSValueRef
161163
}
162164

163165
}
166+
167+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSStringRef.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434
using namespace JSC;
3535

36+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
37+
3638
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
3739
{
3840
JSC::initialize();
@@ -117,3 +119,5 @@ bool JSStringIsEqualToUTF8CString(JSStringRef a, const char* b)
117119
{
118120
return JSStringIsEqual(a, adoptRef(JSStringCreateWithUTF8CString(b)).get());
119121
}
122+
123+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSStringRefCF.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "OpaqueJSString.h"
3434
#include <wtf/StdLibExtras.h>
3535

36+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
37+
3638
JSStringRef JSStringCreateWithCFString(CFStringRef string)
3739
{
3840
JSC::initialize();
@@ -67,3 +69,5 @@ CFStringRef JSStringCopyCFString(CFAllocatorRef allocator, JSStringRef string)
6769
auto characters = string->span16();
6870
return CFStringCreateWithCharacters(allocator, reinterpret_cast<const UniChar*>(characters.data()), characters.size());
6971
}
72+
73+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSTypedArray.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#include <wtf/cocoa/RuntimeApplicationChecksCocoa.h>
4141
#endif
4242

43+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
44+
4345
using namespace JSC;
4446

4547
// Helper functions.
@@ -373,3 +375,5 @@ size_t JSObjectGetArrayBufferByteLength(JSContextRef, JSObjectRef objectRef, JSV
373375

374376
return 0;
375377
}
378+
379+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

Source/JavaScriptCore/API/JSValue.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858

5959
#if JSC_OBJC_API_ENABLED
6060

61+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
62+
6163
using JSC::Integrity::audit;
6264

6365
NSString * const JSPropertyDescriptorWritableKey = @"writable";
@@ -1379,4 +1381,6 @@ + (SEL)selectorForValueToStruct:(const char *)structTag
13791381

13801382
@end
13811383

1384+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END
1385+
13821386
#endif

Source/JavaScriptCore/API/JSWrapperMap.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
static constexpr int32_t firstJavaScriptCoreVersionWithInitConstructorSupport = 0x21A0400; // 538.4.0
5353
#endif
5454

55+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
56+
5557
@class JSObjCClassInfo;
5658

5759
@interface JSWrapperMap ()
@@ -722,4 +724,6 @@ Class getNSBlockClass()
722724
return cls;
723725
}
724726

727+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END
728+
725729
#endif

Source/JavaScriptCore/API/MarkedJSValueRefArray.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#include "JSCJSValue.h"
3030

31+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN
32+
3133
namespace JSC {
3234

3335
MarkedJSValueRefArray::MarkedJSValueRefArray(JSGlobalContextRef context, unsigned size)
@@ -67,3 +69,5 @@ template void MarkedJSValueRefArray::visitAggregate(AbstractSlotVisitor&);
6769
template void MarkedJSValueRefArray::visitAggregate(SlotVisitor&);
6870

6971
} // namespace JSC
72+
73+
WTF_ALLOW_UNSAFE_BUFFER_USAGE_END

0 commit comments

Comments
 (0)