mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
Python: Add StringConstCompare BarrierGuard
This commit is contained in:
@@ -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 |
|
||||
@@ -0,0 +1,7 @@
|
||||
import experimental.dataflow.tainttracking.TestTaintLib
|
||||
|
||||
class CustomSanitizerOverrides extends TestTaintTrackingConfiguration {
|
||||
override predicate isSanitizerGuard(DataFlow::BarrierGuard guard) {
|
||||
guard instanceof DataFlow::BarrierGuard::StringConstCompare
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
import experimental.dataflow.tainttracking.TestTaintLib
|
||||
Reference in New Issue
Block a user