|
| 1 | +2020-01-23 David Kilzer <ddkilzer@apple.com> |
| 2 | + |
| 3 | + Enable -Wconditional-uninitialized in WebCore project |
| 4 | + <https://webkit.org/b/206508> |
| 5 | + |
| 6 | + Reviewed by Darin Adler. |
| 7 | + |
| 8 | + * Configurations/Base.xcconfig: |
| 9 | + (WARNING_CFLAGS): Add -Wconditional-uninitialized switch. |
| 10 | + |
| 11 | + * Modules/webgpu/WHLSL/WHLSLIntrinsics.cpp: |
| 12 | + (WebCore::WHLSL::Intrinsics::addFullTexture): |
| 13 | + - Initialize `vectorLength` to zero and add release assert that |
| 14 | + it is in a valid range [1-4] to prevent buffer out-of-bounds |
| 15 | + reads. |
| 16 | + - Change ASSERT() to ASSERT_WITH_SECURITY_IMPLICATION() since |
| 17 | + they all have security implications. |
| 18 | + |
| 19 | + * Modules/webgpu/WHLSL/WHLSLParser.cpp: |
| 20 | + (WebCore::WHLSL::Parser::parseResourceSemantic): |
| 21 | + - Add default case to switch statement with release assert since |
| 22 | + `mode` is not set for all possible character values. |
| 23 | + |
| 24 | + * accessibility/AXObjectCache.cpp: |
| 25 | + (WebCore::characterForCharacterOffset): |
| 26 | + - Ignore -Wconditional-warning for U16_NEXT() macro. Fix must be |
| 27 | + in compiler or in ICU header. |
| 28 | + |
| 29 | + * bindings/js/SerializedScriptValue.cpp: |
| 30 | + (WebCore::CloneDeserializer::readRSAKey): |
| 31 | + - Initialize `hash` to CryptoAlgorithmIdentifier::SHA_1. SHA_1 |
| 32 | + was chosen since Optional<CryptoAlgorithmIdentifier> |
| 33 | + parameters use that as a default vaule in |
| 34 | + crypto/keys/CryptoKeyRSA.cpp. |
| 35 | + |
| 36 | + * contentextensions/DFABytecodeCompiler.cpp: |
| 37 | + (WebCore::ContentExtensions::DFABytecodeCompiler::transitions): |
| 38 | + - Initialize `rangeMin` to 0. |
| 39 | + |
| 40 | + * css/parser/CSSSupportsParser.cpp: |
| 41 | + (WebCore::CSSSupportsParser::consumeCondition): |
| 42 | + - Initialize `result` to false. |
| 43 | + |
| 44 | + * cssjit/SelectorCompiler.cpp: |
| 45 | + (WebCore::SelectorCompiler::SelectorCodeGenerator::modulo): |
| 46 | + - Initialize `inputDividendCopy` to JSC::InvalidGPRReg. |
| 47 | + |
| 48 | + * dom/Document.cpp: |
| 49 | + (WebCore::Document::processHttpEquiv): |
| 50 | + - Initialize `delay` to zero. |
| 51 | + |
| 52 | + * rendering/svg/RenderSVGResourceGradient.cpp: |
| 53 | + (WebCore::RenderSVGResourceGradient::applyResource): |
| 54 | + - Initialize `gradientData` to nullptr. This false positive is |
| 55 | + tracked by <rdar://problem/58615489>. |
| 56 | + |
1 | 57 | 2020-01-23 Per Arne Vollan <pvollan@apple.com> |
2 | 58 |
|
3 | 59 | [Cocoa] Broker access to the PowerManagement API |
|
0 commit comments