Skip to content

Commit eb6c848

Browse files
committed
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`.
1 parent dffb120 commit eb6c848

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/codeql/codeql-language-guides/detecting-a-potential-buffer-overflow.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ The completed query will now identify cases where the result of ``strlen`` is st
204204
.. code-block:: ql
205205
206206
import cpp
207+
import semmle.code.cpp.controlflow.SSA
207208
208209
class MallocCall extends FunctionCall
209210
{

0 commit comments

Comments
 (0)