mirror of
https://github.com/github/codeql.git
synced 2026-03-02 05:43:54 +01:00
Add additional Hibernate SQL sinks
This commit is contained in:
committed by
Arthur Baars
parent
e3a12c5fea
commit
bdcf4198e6
@@ -10,11 +10,11 @@ class HibernateSession extends RefType {
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `m` is a method on `HibernateSession` taking an SQL string as its
|
||||
* first argument.
|
||||
* Holds if `m` is a method on `HibernateSession`, or a subclass, taking an SQL
|
||||
* string as its first argument.
|
||||
*/
|
||||
predicate hibernateSqlMethod(Method m) {
|
||||
m.getDeclaringType() instanceof HibernateSession and
|
||||
m.getDeclaringType().getASourceSupertype*() instanceof HibernateSession and
|
||||
m.getParameterType(0) instanceof TypeString and
|
||||
(
|
||||
m.hasName("createQuery") or
|
||||
|
||||
Reference in New Issue
Block a user