Skip to content

Commit bfbc1d4

Browse files
committed
Simplify redundant sanitizer
1 parent 361b703 commit bfbc1d4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

go/ql/src/experimental/CWE-321/HardcodedKeysLib.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ module HardcodedKeys {
237237
)
238238
|
239239
TaintTracking::localTaint(randomValue, index) and
240-
(
241-
this.(DataFlow::ElementReadNode).reads(_, randomValue) or
242-
any(DataFlow::ElementReadNode r).reads(this, index)
243-
)
240+
this.(DataFlow::ElementReadNode).reads(_, index)
244241
)
245242
}
246243
}

0 commit comments

Comments
 (0)