Python: Add StringConstCompare BarrierGuard

This commit is contained in:
Rasmus Wriedt Larsen
2020-11-20 10:40:04 +01:00
parent a82936c904
commit 1a52f17da3
5 changed files with 28 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
| test_string_eq.py:16 | fail | const_eq_clears_taint | ts |
| test_string_eq.py:16 | ok | const_eq_clears_taint | ts |
| test_string_eq.py:18 | ok | const_eq_clears_taint | ts |
| test_string_eq.py:20 | ok | const_eq_clears_taint | ts |
| test_string_eq.py:27 | fail | const_eq_clears_taint2 | ts |

View File

@@ -0,0 +1,7 @@
import experimental.dataflow.tainttracking.TestTaintLib
class CustomSanitizerOverrides extends TestTaintTrackingConfiguration {
override predicate isSanitizerGuard(DataFlow::BarrierGuard guard) {
guard instanceof DataFlow::BarrierGuard::StringConstCompare
}
}

View File

@@ -1 +0,0 @@
import experimental.dataflow.tainttracking.TestTaintLib