Skip to content

Commit a37291e

Browse files
committed
Java: add missing qldoc
1 parent 5538be1 commit a37291e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/ql/lib/semmle/code/java/security/XmlParsers.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ private class ExplicitlySafeXmlReaderFlowConfig extends DataFlow3::Configuration
723723
override int fieldFlowBranchLimit() { result = 0 }
724724
}
725725

726+
/** An argument to a safe XML reader. */
726727
class SafeXmlReaderFlowSink extends Expr {
727728
SafeXmlReaderFlowSink() {
728729
this = any(XmlReaderParse p).getQualifier() or
@@ -767,6 +768,7 @@ class ExplicitlySafeXmlReader extends VarAccess {
767768
)
768769
}
769770

771+
/** Holds if `SafeXmlReaderFlowSink` detects flow from this to `sink` */
770772
predicate flowsTo(SafeXmlReaderFlowSink sink) {
771773
any(ExplicitlySafeXmlReaderFlowConfig conf)
772774
.hasFlow(DataFlow::exprNode(this), DataFlow::exprNode(sink))
@@ -810,6 +812,7 @@ class CreatedSafeXmlReader extends Call {
810812
)
811813
}
812814

815+
/** Holds if `CreatedSafeXmlReaderFlowConfig` detects flow from this to `sink` */
813816
predicate flowsTo(SafeXmlReaderFlowSink sink) {
814817
any(CreatedSafeXmlReaderFlowConfig conf)
815818
.hasFlow(DataFlow::exprNode(this), DataFlow::exprNode(sink))

0 commit comments

Comments
 (0)