mirror of https://github.com/google/oss-fuzz.git
fix ContentSecurityPolicyParser target (#1773)
This commit is contained in:
parent
bfacf7c665
commit
68966db40a
|
@ -0,0 +1,11 @@
|
|||
diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp
|
||||
--- a/dom/security/nsCSPContext.cpp
|
||||
+++ b/dom/security/nsCSPContext.cpp
|
||||
@@ -756,6 +756,7 @@ nsCSPContext::logToConsole(const char* a
|
||||
uint32_t aColumnNumber,
|
||||
uint32_t aSeverityFlag)
|
||||
{
|
||||
+ return;
|
||||
// we are passing aName as the category so we can link to the
|
||||
// appropriate MDN docs depending on the specific error.
|
||||
nsDependentCString category(aName);
|
|
@ -21,3 +21,5 @@ RUN hg clone --uncompressed https://hg.mozilla.org/mozilla-central
|
|||
RUN git clone --depth 1 https://github.com/mozillasecurity/fuzzdata
|
||||
WORKDIR mozilla-central
|
||||
COPY build.sh target.c *options $SRC/
|
||||
COPY *diff $SRC/mozilla-central
|
||||
RUN hg patch --no-commit ContentSecurityPolicyParser.diff
|
||||
|
|
Loading…
Reference in New Issue