mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
Apply suggestions from code review
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
committed by
Artem Smotrakov
parent
c367c7e33b
commit
e02530749b
@@ -5,7 +5,6 @@
|
||||
import java
|
||||
import semmle.code.java.Reflection
|
||||
import semmle.code.java.dataflow.FlowSources
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
import semmle.code.java.dataflow.TaintTracking2
|
||||
|
||||
private class ObjectMapper extends RefType {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import semmle.code.java.dataflow.FlowSources
|
||||
import semmle.code.java.dataflow.TaintTracking2
|
||||
import semmle.code.java.frameworks.Kryo
|
||||
import semmle.code.java.frameworks.XStream
|
||||
import semmle.code.java.frameworks.SnakeYaml
|
||||
|
||||
@@ -9,8 +9,8 @@ class UnsafeDeserializationTest extends InlineExpectationsTest {
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "unsafeDeserialization" and
|
||||
exists(DataFlow::Node src, DataFlow::Node sink, UnsafeDeserializationConfig conf |
|
||||
conf.hasFlow(src, sink)
|
||||
exists(DataFlow::Node sink, UnsafeDeserializationConfig conf |
|
||||
conf.hasFlowTo(sink)
|
||||
|
|
||||
sink.getLocation() = location and
|
||||
element = sink.toString() and
|
||||
|
||||
Reference in New Issue
Block a user