change name

This commit is contained in:
haby0
2021-06-16 11:29:37 +08:00
parent d6782767b7
commit 9badd7aa27
2 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@ class CastorUnmarshaller extends RefType {
}
/** A method with the name `unmarshal` declared in `org.exolab.castor.xml.Unmarshaller`. */
class UnmarshalMethod extends Method {
UnmarshalMethod() {
class CastorUnmarshalMethod extends Method {
CastorUnmarshalMethod() {
this.getDeclaringType() instanceof CastorUnmarshaller and
this.getName() = "unmarshal"
}

View File

@@ -100,7 +100,7 @@ predicate unsafeDeserialization(MethodAccess ma, Expr sink) {
or
ma.getMethod() instanceof UnsafeHessianInputReadObjectMethod and sink = ma.getQualifier()
or
ma.getMethod() instanceof UnmarshalMethod and sink = ma.getAnArgument()
ma.getMethod() instanceof CastorUnmarshalMethod and sink = ma.getAnArgument()
or
ma.getMethod() instanceof BurlapInputReadObjectMethod and sink = ma.getQualifier()
)