mirror of
https://github.com/github/codeql.git
synced 2026-03-04 22:56:47 +01:00
Account for public fields/setters
This commit is contained in:
@@ -36,7 +36,12 @@ private class Struts2ActionField extends DeserializableField {
|
||||
exists(Struts2DeserializableType superType |
|
||||
superType = this.getDeclaringType().getAnAncestor() and
|
||||
not superType instanceof TypeObject and
|
||||
superType.fromSource()
|
||||
superType.fromSource() and
|
||||
(
|
||||
this.isPublic()
|
||||
or
|
||||
exists(SetterMethod setter | setter.getField() = this and setter.isPublic())
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user