Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7050d9d

Browse files
committed
remove dead FlowLabel
1 parent 2af8739 commit 7050d9d

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

javascript/ql/src/semmle/javascript/security/dataflow/CleartextLoggingCustomizations.qll

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,7 @@ module CleartextLogging {
176176

177177
override string describe() { result = "process environment" }
178178

179-
override DataFlow::FlowLabel getLabel() {
180-
result.isTaint() or
181-
result instanceof PartiallySensitiveMap
182-
}
183-
}
184-
185-
/**
186-
* A flow label describing a map that might contain sensitive information in some properties.
187-
* Property reads on such maps where the property name is fixed is unlikely to leak sensitive information.
188-
*/
189-
class PartiallySensitiveMap extends DataFlow::FlowLabel {
190-
PartiallySensitiveMap() { this = "PartiallySensitiveMap" }
179+
override DataFlow::FlowLabel getLabel() { result.isTaint() }
191180
}
192181

193182
/**

0 commit comments

Comments
 (0)