mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Update cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
aa6bf67482
commit
9cb09d6e9a
@@ -49,7 +49,7 @@
|
||||
* 7. }
|
||||
* ```
|
||||
* In order to remove this false positive we define a barrier (see `Barrier2::BarrierConfig2`) that finds the possible guards
|
||||
* that compares a value to the size of the allocation. In the above example, that's the `(n >= size)` guard on line 3.
|
||||
* that compares a value to the size of the allocation. In the above example, this is the `(n >= size)` guard on line 3.
|
||||
* `Barrier2::getABarrierNode` then defines any node that is guarded by such a guard as a barrier in the dataflow configuration.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user