mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Make "Detecting a potential buffer overflow" example more uniform
All queries that use SSA import `semmle.code.cpp.controlflow.SSA` explicitly, except for the last one. Also import the library there. Note that this is not strictly necessary, as the library is transitively imported via `import cpp`.
This commit is contained in:
@@ -204,6 +204,7 @@ The completed query will now identify cases where the result of ``strlen`` is st
|
||||
.. code-block:: ql
|
||||
|
||||
import cpp
|
||||
import semmle.code.cpp.controlflow.SSA
|
||||
|
||||
class MallocCall extends FunctionCall
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user