mirror of
https://github.com/github/codeql.git
synced 2026-05-27 17:41:24 +02:00
18 lines
536 B
Plaintext
18 lines
536 B
Plaintext
import semmle.code.cpp.models.interfaces.FlowSource
|
|
|
|
/**
|
|
* The `CAtlFile` class from Microsoft's Active Template Library.
|
|
*/
|
|
class CAtlFile extends Class {
|
|
CAtlFile() { this.hasGlobalName("CAtlFile") }
|
|
}
|
|
|
|
private class CAtlFileRead extends MemberFunction, LocalFlowSourceFunction {
|
|
CAtlFileRead() { this.getClassAndName("Read") instanceof CAtlFile }
|
|
|
|
override predicate hasLocalFlowSource(FunctionOutput output, string description) {
|
|
output.isParameterDeref(0) and
|
|
description = "string read by " + this.getName()
|
|
}
|
|
}
|