Re: [linux-safety] [PATCH] coccinelle: misc: Check for hard-coded constants
"Lukas Bulwahn" <[email protected]> Thu, 13 Aug 2020 15:45:39 +0000
| Newsgroups | tech.elisa.lists.linux-safety |
|---|---|
| Message-ID | <[email protected]> |
> imho, misc is ok for this one, but when you actually make a cocci script for
> CWE-414 ("Missing Lock Check"), that should be going to
> scripts/coccinelle/locks/
>
Agree. Locking checks go to locks.
The example of CWE-414 was just to show a suitable format for adding the CWE mapping into the tools/rules as comments and maintain the mapping there.
Lukas