Skip to content
Prev Previous commit
Next Next commit
Handle CNFE when class from method parameter is not present in classl…
…oader
  • Loading branch information
Markoutte committed Sep 11, 2023
commit 1caa8de39acf66b4a41ca039299ed0116cc10503
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,17 @@ class BuilderObjectValueProvider(
// https://mailman.cs.mcgill.ca/pipermail/soot-list/2012-November/004972.html
!it.name.matches(nameWithDigitsAfterSpecialCharRegex)
Comment thread
Markoutte marked this conversation as resolved.
}
.forEach { method ->
.forEach byMethod@{ method ->
val returnType = method.returnType as RefType
val returnClassId = returnType.classId
val isStaticMethod = method.isStatic
val parameters = method.parameterTypes.map {
toFuzzerType(it.classId.jClass, description.typeCache)
try {
toFuzzerType(it.classId.jClass, description.typeCache)
} catch (e: ClassNotFoundException) {
logger.warn { "${it.classId} is not loaded by classpath" }
return@byMethod
}
} as MutableList<FuzzedType>
Comment thread
Markoutte marked this conversation as resolved.
if (isStaticMethod) {
yield(Seed.Recursive(
Expand Down