add pragma to internalBlocks predicate to fix performance

This commit is contained in:
Erik Krogh Kristensen
2019-12-11 15:19:30 +01:00
parent 62512dd3e9
commit f537e28389
2 changed files with 1 additions and 1 deletions

View File

@@ -303,6 +303,7 @@ abstract class BarrierGuardNode extends DataFlow::Node {
*
* INTERNAL: this predicate should only be used from within `blocks(boolean, Expr)`.
*/
pragma[noinline,nomagic]
predicate internalBlocks(DataFlow::Node nd, string label) {
// 1) `nd` is a use of a refinement node that blocks its input variable
exists(SsaRefinementNode ref, boolean outcome |

View File

@@ -125,7 +125,6 @@ module ExceptionXss {
override predicate isSanitizer(DataFlow::Node node) { node instanceof Xss::Shared::Sanitizer }
cached
override predicate isAdditionalFlowStep(
DataFlow::Node pred, DataFlow::Node succ, DataFlow::FlowLabel inlbl,
DataFlow::FlowLabel outlbl