Skip to content

Commit a61fae3

Browse files
committed
cwe-mapper: suppres a false positive of Coverity
``` Error: PASS_BY_VALUE (CWE-398): src/lib/cwe-mapper.cc:38:45: pass_by_value: Passing parameter def of type "Defect" (size 200 bytes) by value, which exceeds the low threshold of 128 bytes. ``` Closes: #216
1 parent ba468e9 commit a61fae3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/cwe-mapper.cc

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct CweMap::Private {
3535
bool detectedByTool(Defect def, const char *tool) const;
3636
};
3737

38+
// coverity[pass_by_value]
3839
bool CweMap::Private::detectedByTool(Defect def, const char *tool) const
3940
{
4041
// detect tool in case it is not explicitly specified

0 commit comments

Comments
 (0)