forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatible with the latest released version of the CodeQL CLI
- Loading branch information
Showing
1,059 changed files
with
27,601 additions
and
18,107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.1.2 | ||
7.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## 1.2.0 | ||
|
||
### New Features | ||
|
||
* The syntax for models-as-data rows has been extended to make it easier to select sources, sinks, and summaries that involve templated functions and classes. Additionally, the syntax has also been extended to make it easier to specify models with arbitrary levels of indirection. See `dataflow/ExternalFlow.qll` for the updated documentation and specification for the model format. | ||
* It is now possible to extend the classes `AllocationFunction` and `DeallocationFunction` via data extensions. Extensions of these classes should be added to the `lib/ext/allocation` and `lib/ext/deallocation` directories respectively. | ||
|
||
### Minor Analysis Improvements | ||
|
||
* The queries "Potential double free" (`cpp/double-free`) and "Potential use after free" (`cpp/use-after-free`) now produce fewer false positives. | ||
* The "Guards" library (`semmle.code.cpp.controlflow.Guards`) now also infers guards from calls to the builtin operation `__builtin_expect`. As a result, some queries may produce fewer false positives. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
lastReleaseVersion: 1.1.1 | ||
lastReleaseVersion: 1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
extensions: | ||
# partial model of the Boost::Asio network library | ||
extensions: | ||
- addsTo: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: | ||
- ["", "", False, "kmem_alloc", "0", "", "", True] | ||
- ["", "", False, "kmem_zalloc", "0", "", "", True] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: | ||
- ["", "", False, "g_malloc", "0", "", "", True] | ||
- ["", "", False, "g_try_malloc", "0", "", "", True] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: | ||
- ["", "", False, "CRYPTO_malloc", "0", "", "", True] | ||
- ["", "", False, "CRYPTO_zalloc", "0", "", "", True] | ||
- ["", "", False, "CRYPTO_secure_malloc", "0", "", "", True] | ||
- ["", "", False, "CRYPTO_secure_zalloc", "0", "", "", True] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: | ||
- ["", "", False, "malloc", "0", "", "", True] | ||
- ["std", "", False, "malloc", "0", "", "", True] | ||
- ["bsl", "", False, "malloc", "0", "", "", True] | ||
- ["", "", False, "alloca", "0", "", "", False] | ||
- ["", "", False, "__builtin_alloca", "0", "", "", False] | ||
- ["", "", False, "_alloca", "0", "", "", False] | ||
- ["", "", False, "_malloca", "0", "", "", False] | ||
- ["", "", False, "calloc", "1", "0", "", True] | ||
- ["std", "", False, "calloc", "1", "0", "", True] | ||
- ["bsl", "", False, "calloc", "1", "0", "", True] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: | ||
- ["", "", False, "MmAllocateContiguousMemory", "0", "", "", True] | ||
- ["", "", False, "MmAllocateContiguousNodeMemory", "0", "", "", True] | ||
- ["", "", False, "MmAllocateContiguousMemorySpecifyCache", "0", "", "", True] | ||
- ["", "", False, "MmAllocateContiguousMemorySpecifyCacheNode", "0", "", "", True] | ||
- ["", "", False, "MmAllocateNonCachedMemory", "0", "", "", True] | ||
- ["", "", False, "MmAllocateMappingAddress", "0", "", "", True] | ||
- ["", "", False, "CoTaskMemAlloc", "0", "", "", True] | ||
- ["", "", False, "ExAllocatePool", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePool2", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePool3", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePoolWithTag", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePoolWithTagPriority", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePoolWithQuota", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePoolWithQuotaTag", "1", "", "", True] | ||
- ["", "", False, "ExAllocatePoolZero", "1", "", "", True] | ||
- ["", "", False, "IoAllocateMdl", "1", "", "", True] | ||
- ["", "", False, "IoAllocateErrorLogEntry", "1", "", "", True] | ||
- ["", "", False, "LocalAlloc", "1", "", "", True] | ||
- ["", "", False, "GlobalAlloc", "1", "", "", True] | ||
- ["", "", False, "VirtualAlloc", "1", "", "", True] | ||
- ["", "", False, "HeapAlloc", "2", "", "", True] | ||
- ["", "", False, "MmAllocatePagesForMdl", "3", "", "", True] | ||
- ["", "", False, "MmAllocatePagesForMdlEx", "3", "", "", True] | ||
- ["", "", False, "MmAllocateNodePagesForMdlEx", "3", "", "", True] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: allocationFunctionModel | ||
data: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/cpp-all | ||
extensible: summaryModel | ||
data: # namespace, type, subtypes, name, signature, ext, input, output, kind, provenance | ||
- ["bsl", "array", True, "at", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"] | ||
- ["bsl", "array", True, "begin", "", "", "Argument[-1].Element[@]", "ReturnValue.Element[@]", "value", "manual"] | ||
- ["bsl", "array", True, "cbegin", "", "", "Argument[-1].Element[@]", "ReturnValue.Element[@]", "value", "manual"] | ||
- ["bsl", "array", True, "data", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"] | ||
- ["bsl", "array", True, "operator[]", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"] | ||
- ["bsl", "array", True, "rbegin", "", "", "Argument[-1].Element[@]", "ReturnValue.Element[@]", "value", "manual"] | ||
- ["bsl", "array", True, "rcbegin", "", "", "Argument[-1].Element[@]", "ReturnValue.Element[@]", "value", "manual"] | ||
- ["bsl", "array", True, "front", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"] | ||
- ["bsl", "array", True, "back", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"] |
Oops, something went wrong.