Skip to content

Commit 9badd7a

Browse files
committed
change name
1 parent d678276 commit 9badd7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

java/ql/src/semmle/code/java/frameworks/Castor.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class CastorUnmarshaller extends RefType {
1212
}
1313

1414
/** A method with the name `unmarshal` declared in `org.exolab.castor.xml.Unmarshaller`. */
15-
class UnmarshalMethod extends Method {
16-
UnmarshalMethod() {
15+
class CastorUnmarshalMethod extends Method {
16+
CastorUnmarshalMethod() {
1717
this.getDeclaringType() instanceof CastorUnmarshaller and
1818
this.getName() = "unmarshal"
1919
}

java/ql/src/semmle/code/java/security/UnsafeDeserialization.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ predicate unsafeDeserialization(MethodAccess ma, Expr sink) {
100100
or
101101
ma.getMethod() instanceof UnsafeHessianInputReadObjectMethod and sink = ma.getQualifier()
102102
or
103-
ma.getMethod() instanceof UnmarshalMethod and sink = ma.getAnArgument()
103+
ma.getMethod() instanceof CastorUnmarshalMethod and sink = ma.getAnArgument()
104104
or
105105
ma.getMethod() instanceof BurlapInputReadObjectMethod and sink = ma.getQualifier()
106106
)

0 commit comments

Comments
 (0)