Skip to content

Commit f537e28

Browse files
committed
add pragma to internalBlocks predicate to fix performance
1 parent 62512dd commit f537e28

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/dataflow/Configuration.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ abstract class BarrierGuardNode extends DataFlow::Node {
303303
*
304304
* INTERNAL: this predicate should only be used from within `blocks(boolean, Expr)`.
305305
*/
306+
pragma[noinline,nomagic]
306307
predicate internalBlocks(DataFlow::Node nd, string label) {
307308
// 1) `nd` is a use of a refinement node that blocks its input variable
308309
exists(SsaRefinementNode ref, boolean outcome |

javascript/ql/src/semmle/javascript/security/dataflow/ExceptionXss.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ module ExceptionXss {
125125

126126
override predicate isSanitizer(DataFlow::Node node) { node instanceof Xss::Shared::Sanitizer }
127127

128-
cached
129128
override predicate isAdditionalFlowStep(
130129
DataFlow::Node pred, DataFlow::Node succ, DataFlow::FlowLabel inlbl,
131130
DataFlow::FlowLabel outlbl

0 commit comments

Comments
 (0)