Skip to content

Commit 6a8d5d1

Browse files
committed
enfore executor shutdown
1 parent 93c7aa2 commit 6a8d5d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

soot-infoflow/src/soot/jimple/infoflow/data/pathBuilders/ContextSensitivePathBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,11 @@ public void runIncrementalPathCompuation() {
222222

223223
@Override
224224
public void computeTaintPaths(Set<AbstractionAtSink> res) {
225-
super.computeTaintPaths(res);
226-
227-
// Wait for the path builder to terminate
228225
try {
229-
// The path reconstruction should stop on time anyway. In case it doesn't, we
230-
// make sure that we don't get stuck.
226+
super.computeTaintPaths(res);
227+
228+
// Wait for the path builder to terminate. The path reconstruction should stop
229+
// on time anyway. In case it doesn't, we make sure that we don't get stuck.
231230
long pathTimeout = manager.getConfig().getPathConfiguration().getPathReconstructionTimeout();
232231
if (pathTimeout > 0)
233232
executor.awaitCompletion(pathTimeout + 20, TimeUnit.SECONDS);
@@ -253,9 +252,10 @@ protected Runnable getTaintPathTask(final AbstractionAtSink abs) {
253252
abs.getAbstraction().getAccessPath(), abs.getSinkStmt());
254253
scap = scap.extendPath(abs.getAbstraction(), pathConfig);
255254

256-
if (pathCache.put(abs.getAbstraction(), scap))
255+
if (pathCache.put(abs.getAbstraction(), scap)) {
257256
if (!checkForSource(abs.getAbstraction(), scap))
258257
return new SourceFindingTask(abs.getAbstraction());
258+
}
259259
return null;
260260
}
261261

0 commit comments

Comments
 (0)