rename 'getThrowsToNode' to 'getExceptionalNode'

This commit is contained in:
Erik Krogh Kristensen
2019-11-19 14:08:36 +01:00
parent 9fa7393d56
commit abd58ba905
3 changed files with 3 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
* Gets the data-flow node where exceptional data-flow will flow if this expression
* causes an exception to be thrown.
*/
DataFlow::Node getThrowsToNode() {
DataFlow::Node getExceptionalNode() {
if exists(this.getEnclosingStmt().getEnclosingTryCatchStmt())
then
result = DataFlow::parameterNode(this

View File

@@ -66,7 +66,7 @@ predicate localExceptionStep(DataFlow::Node pred, DataFlow::Node succ) {
or
DataFlow::exceptionalInvocationReturnNode(pred, expr)
|
succ = expr.getThrowsToNode()
succ = expr.getExceptionalNode()
)
}

View File

@@ -73,7 +73,7 @@ module ExceptionXss {
DataFlow::FlowLabel outlbl
) {
inlbl instanceof NotYetThrown and (outlbl.isTaint() or outlbl instanceof NotYetThrown) and
succ = pred.asExpr().getThrowsToNode() and
succ = pred.asExpr().getExceptionalNode() and
canThrowSensitiveInformation(pred)
or
// All the usual taint-flow steps apply on data-flow before it has been thrown in an exception.