summaryrefslogtreecommitdiffstats
path: root/source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch')
-rw-r--r--source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch b/source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch
new file mode 100644
index 000000000..870b6e28d
--- /dev/null
+++ b/source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch
@@ -0,0 +1,15 @@
+diff --git a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
+index 9e726d5..4876f0f 100644
+--- a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
++++ b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
+@@ -231,8 +231,9 @@ bool isAllowedByAllWithHashFromContent(const CSPDirectiveListVector& policies, c
+ auto cryptoDigest = CryptoDigest::create(toCryptoDigestAlgorithm(algorithm));
+ cryptoDigest->addBytes(contentCString.data(), contentCString.length());
+ Vector<uint8_t> digest = cryptoDigest->computeHash();
++ ContentSecurityPolicyHash hash = std::make_pair(algorithm, digest);
+ for (auto& policy : policies) {
+- if ((policy.get()->*allowed)(std::make_pair(algorithm, digest)))
++ if ((policy.get()->*allowed)(hash))
+ return true;
+ }
+ }