Skip to content

Commit 94e190c

Browse files
committed
C++: getClassAndName.
1 parent f27c2f3 commit 94e190c

File tree

1 file changed

+2
-6
lines changed
  • cpp/ql/src/Security/CWE/CWE-611

1 file changed

+2
-6
lines changed

cpp/ql/src/Security/CWE/CWE-611/XXE.ql

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,15 @@ class SetFeatureTranformer extends XXEFlowStateTranformer {
227227
* The `DOMLSParser.getDomConfig` function.
228228
*/
229229
class GetDomConfig extends Function {
230-
GetDomConfig() {
231-
this.hasName("getDomConfig") and
232-
this.getDeclaringType() instanceof DomLSParserClass
233-
}
230+
GetDomConfig() { this.getClassAndName("getDomConfig") instanceof DomLSParserClass }
234231
}
235232

236233
/**
237234
* The `DOMConfiguration.setParameter` function.
238235
*/
239236
class DomConfigurationSetParameter extends Function {
240237
DomConfigurationSetParameter() {
241-
this.hasName("setParameter") and
242-
this.getDeclaringType().getName() = "DOMConfiguration"
238+
this.getClassAndName("setParameter").getName() = "DOMConfiguration"
243239
}
244240
}
245241

0 commit comments

Comments
 (0)