C++: Enable cpp/alloca-in-loop on LGTM

Now that the query has both tests and qhelp, we can use it on LGTM. This
commit also adds a change note.

I renamed the query to reduce confusion from the lower-case unquoted
word "alloca".
This commit is contained in:
Jonas Jensen
2019-03-27 13:42:14 +01:00
parent 54091e87fa
commit 399b64b9a6
2 changed files with 4 additions and 1 deletions

View File

@@ -1,11 +1,13 @@
/**
* @name alloca in a loop
* @name Call to alloca in a loop
* @description Using alloca in a loop can lead to a stack overflow
* @kind problem
* @problem.severity warning
* @precision high
* @id cpp/alloca-in-loop
* @tags reliability
* correctness
* security
* external/cwe/cwe-770
*/