mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C++: Add models.
This commit is contained in:
@@ -50,3 +50,4 @@ private import implementations.System
|
||||
private import implementations.StructuredExceptionHandling
|
||||
private import implementations.ZMQ
|
||||
private import implementations.Win32CommandExecution
|
||||
private import implementations.CA2AEX
|
||||
|
||||
17
cpp/ql/lib/semmle/code/cpp/models/implementations/CA2AEX.qll
Normal file
17
cpp/ql/lib/semmle/code/cpp/models/implementations/CA2AEX.qll
Normal file
@@ -0,0 +1,17 @@
|
||||
private import cpp
|
||||
private import semmle.code.cpp.ir.dataflow.FlowSteps
|
||||
private import semmle.code.cpp.dataflow.new.DataFlow
|
||||
|
||||
/**
|
||||
* The `CA2AEX` (and related) classes from the Windows Active Template library.
|
||||
*/
|
||||
class Ca2Aex extends Class {
|
||||
Ca2Aex() { this.hasGlobalName(["CA2AEX", "CA2CAEX", "CA2WEX"]) }
|
||||
}
|
||||
|
||||
private class Ca2AexTaintInheritingContent extends TaintInheritingContent, DataFlow::FieldContent {
|
||||
Ca2AexTaintInheritingContent() {
|
||||
// The two members m_psz and m_szBuffer
|
||||
this.getField().getDeclaringType() instanceof Ca2Aex
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user