Python: Fix huge_tree modeling

This commit is contained in:
Rasmus Wriedt Larsen
2022-03-04 09:49:00 +01:00
parent d6cbfec434
commit f0131afc54
2 changed files with 3 additions and 2 deletions

View File

@@ -341,7 +341,8 @@ private module Lxml {
)
or
(kind.isBillionLaughs() or kind.isQuadraticBlowup()) and
this.getArgByName("huge_tree").getALocalSource().asExpr() = any(True t)
this.getArgByName("huge_tree").getALocalSource().asExpr() = any(True t) and
not this.getArgByName("resolve_entities").getALocalSource().asExpr() = any(False t)
or
kind.isDtdRetrieval() and
this.getArgByName("load_dtd").getALocalSource().asExpr() = any(True t) and