CheckMemoryLeak: Added 'scanf' and 'sscanf' to the whitelist
This commit is contained in:
parent
32604dd55e
commit
f49cc7f0ff
|
@ -49,8 +49,8 @@ static const char * const call_func_white_list[] =
|
|||
, "fwrite", "getc", "if", "ioctl", "lockf", "lseek", "memchr", "memcpy"
|
||||
, "memmove", "memset", "posix_fadvise", "posix_fallocate", "pread"
|
||||
, "printf", "puts", "pwrite", "qsort", "read", "readahead", "readdir", "readdir_r", "readv"
|
||||
, "realloc", "return", "rewind", "rewinddir", "scandir", "seekdir"
|
||||
, "setbuf", "setbuffer", "setlinebuf", "setvbuf", "snprintf", "sprintf", "strcasecmp"
|
||||
, "realloc", "return", "rewind", "rewinddir", "scandir", "scanf", "seekdir"
|
||||
, "setbuf", "setbuffer", "setlinebuf", "setvbuf", "snprintf", "sprintf", "sscanf", "strcasecmp"
|
||||
, "strcat", "strchr", "strcmp", "strcpy", "stricmp", "strlen", "strncat", "strncmp"
|
||||
, "strncpy", "strrchr", "strstr", "strtod", "strtol", "strtoul", "switch"
|
||||
, "sync_file_range", "telldir", "typeid", "while", "write", "writev"
|
||||
|
|
|
@ -510,6 +510,8 @@ private:
|
|||
{
|
||||
// whitelist..
|
||||
ASSERT_EQUALS(true, CheckMemoryLeakInFunction::test_white_list("qsort"));
|
||||
ASSERT_EQUALS(true, CheckMemoryLeakInFunction::test_white_list("scanf"));
|
||||
ASSERT_EQUALS(true, CheckMemoryLeakInFunction::test_white_list("sscanf"));
|
||||
|
||||
static const char * const call_func_white_list[] =
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue