mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
17 lines
580 B
Plaintext
17 lines
580 B
Plaintext
private import cpp
|
|
private import semmle.code.cpp.ir.dataflow.FlowSteps
|
|
private import semmle.code.cpp.dataflow.new.DataFlow
|
|
|
|
/** The `CComBSTR` class from the Microsoft "Active Template Library". */
|
|
class CcomBstr extends Class {
|
|
CcomBstr() { this.hasQualifiedName("ATL", "CComBSTR") }
|
|
}
|
|
|
|
private class Mstr extends Field {
|
|
Mstr() { this.getDeclaringType() instanceof CcomBstr and this.hasName("m_str") }
|
|
}
|
|
|
|
private class MstrTaintInheritingContent extends TaintInheritingContent, DataFlow::FieldContent {
|
|
MstrTaintInheritingContent() { this.getField() instanceof Mstr }
|
|
}
|