Skip to content

Commit

Permalink
Bug 1440397 - Handle unexpected principal tag gracefully in FUZZING. …
Browse files Browse the repository at this point in the history
…r=baku
  • Loading branch information
choller committed Mar 2, 2018
1 parent 825b6f1 commit 7b34f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions caps/nsJSPrincipals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ ReadPrincipalInfo(JSStructuredCloneReader* aReader,

aInfo = ContentPrincipalInfo(attrs, originNoSuffix, spec);
} else {
#ifdef FUZZING
return false;
#else
MOZ_CRASH("unexpected principal structured clone tag");
#endif
}

return true;
Expand Down

0 comments on commit 7b34f9e

Please sign in to comment.