False positive fix (#2593)
* only report cert-STR07-C for C11 * fix false positive for checking c89/c99 code with cert-STR07-C
This commit is contained in:
parent
3773d0e875
commit
9267182d8c
|
@ -317,6 +317,8 @@ def str05(data):
|
|||
# STR07-C
|
||||
# Use the bounds-checking interfaces for string manipulation
|
||||
def str07(data):
|
||||
if(data.standards.c=='c89' or data.standards.c=='c99'):
|
||||
return
|
||||
for token in data.tokenlist:
|
||||
if not isFunctionCall(token, ('strcpy', 'strcat')):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue