mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Fix AV Rule 76
This commit is contained in:
@@ -38,9 +38,9 @@ predicate hasNontrivialDestructor(Class c) {
|
||||
from Class c
|
||||
where
|
||||
(hasPointerMember(c) or hasNontrivialDestructor(c)) and
|
||||
not (
|
||||
c.getAMemberFunction() instanceof CopyConstructor and
|
||||
c.getAMemberFunction() instanceof CopyAssignmentOperator
|
||||
(
|
||||
c.hasImplicitCopyAssignmentOperator() or
|
||||
c.hasImplicitCopyConstructor()
|
||||
) and
|
||||
not c instanceof Struct
|
||||
select c,
|
||||
|
||||
Reference in New Issue
Block a user