File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -447,27 +447,28 @@ module AccessPath {
447
447
ref .getBasicBlock ( ) = bb and
448
448
// Prunes the accesses where there does not exists a read and write within the same basicblock.
449
449
// This could be more precise, but doing it like this avoids massive joins.
450
- hasRead ( bb ) and hasWrite ( bb )
450
+ hasRead ( bb ) and
451
+ hasWrite ( bb )
451
452
|
452
453
ref order by any ( int i | ref = bb .getNode ( i ) )
453
454
) and
454
455
result = getAccessTo ( root , path , type )
455
456
}
456
457
457
458
/**
458
- * Holds if there exists an access-path read inside the basic-block `bb`.
459
- *
460
- * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
459
+ * Holds if there exists an access-path read inside the basic-block `bb`.
460
+ *
461
+ * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
461
462
*/
462
463
pragma [ noinline]
463
464
private predicate hasRead ( ReachableBasicBlock bb ) {
464
465
bb = getAccessTo ( _, _, AccessPathRead ( ) ) .getBasicBlock ( )
465
466
}
466
467
467
468
/**
468
- * Holds if there exists an access-path write inside the basic-block `bb`.
469
- *
470
- * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
469
+ * Holds if there exists an access-path write inside the basic-block `bb`.
470
+ *
471
+ * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
471
472
*/
472
473
pragma [ noinline]
473
474
private predicate hasWrite ( ReachableBasicBlock bb ) {
You can’t perform that action at this time.
0 commit comments