CodeQL library for Java/Kotlin
codeql/java-all 0.8.9 (changelog, source)
Search

Predicate getASafeFlexjsonUseCall

Gets a safe usage of the use method of Flexjson, which could be: use(String, …) where the path is null or use(ObjectFactory, String…) where the string varargs (or array) contains null

Import path

import semmle.code.java.security.UnsafeDeserializationQuery
MethodCall getASafeFlexjsonUseCall()