|
9 | 9 | "replacements": ["fgets"] |
10 | 10 | }, |
11 | 11 | { |
12 | | - "names": ["memcpy"], |
13 | | - "replacements": ["memcpy_s"] |
| 12 | + "names": ["atof"], |
| 13 | + "replacements": ["strtod"] |
14 | 14 | }, |
15 | 15 | { |
16 | | - "names": ["wmemcpy"], |
17 | | - "replacements": ["wmemcpy_s"] |
| 16 | + "names": ["atoi", "atol", "atoll"], |
| 17 | + "replacements": ["strtol", "strtoll", "strtoul", "strtoull"] |
18 | 18 | }, |
19 | 19 | { |
20 | | - "names": ["memmove"], |
21 | | - "replacements": ["memmove_s"] |
| 20 | + "names": ["rewind"], |
| 21 | + "replacements": ["See SEI CERT MSC24-C: https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/recommendations/miscellaneous-msc/msc24-c/"] |
22 | 22 | }, |
23 | 23 | { |
24 | | - "names": ["wmemmove"], |
25 | | - "replacements": ["wmemmove_s"] |
| 24 | + "names": ["setbuf"], |
| 25 | + "replacements": ["setvbuf"] |
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "names": ["readdir_r"], |
29 | 29 | "replacements": ["readdir"] |
30 | 30 | }, |
31 | | - { |
32 | | - "names": ["scanf", "wscanf", "_tscanf", "sscanf", "swscanf", "_stscanf"], |
33 | | - "replacements": ["fgets"] |
34 | | - }, |
35 | 31 | { |
36 | 32 | "names": [ |
37 | 33 | "strcat", |
38 | | - "wcscat", |
39 | | - "_tcscat", |
40 | | - "_mbscat", |
41 | | - "StrCat", |
42 | | - "lstrcat", |
43 | | - "lStrCatBuff", |
44 | | - "_tccat", |
45 | | - "_mbccat", |
46 | | - "_ftcscat", |
47 | | - "strncat", |
48 | | - "wcsncat", |
49 | | - "_tcsncat", |
50 | | - "_mbsncat", |
51 | | - "_mbsnbcat", |
52 | | - "StrCatN", |
53 | | - "StrNCat", |
54 | | - "lstrncat", |
55 | | - "lstrcatn" |
| 34 | + "wcscat" |
56 | 35 | ], |
57 | | - "replacements": ["strcat_s", "strncat_s"] |
| 36 | + "replacements": ["See SEI CERT STR31-C: https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/characters-and-strings-str/str31-c/"] |
58 | 37 | }, |
59 | 38 | { |
60 | 39 | "names": [ |
61 | 40 | "strcpy", |
62 | | - "wcscpy", |
63 | | - "_tcscpy", |
64 | | - "_mbscpy", |
65 | | - "StrCpy", |
66 | | - "lstrcpy", |
67 | | - "_tccpy", |
68 | | - "_mbccpy", |
69 | | - "_ftcscpy", |
70 | | - "strncpy", |
71 | | - "wcsncpy", |
72 | | - "_tcsncpy", |
73 | | - "_mbsncpy", |
74 | | - "_mbsnbcpy", |
75 | | - "StrCpyN", |
76 | | - "StrNCpy", |
77 | | - "lstrcpyn" |
| 41 | + "wcscpy" |
78 | 42 | ], |
79 | | - "replacements": ["strcpy_s", "strncpy_s"] |
80 | | - }, |
81 | | - { |
82 | | - "names": ["strlen"], |
83 | | - "replacements": ["strnlen_s"] |
84 | | - }, |
85 | | - { |
86 | | - "names": ["wcslen"], |
87 | | - "replacements": ["wcsnlen_s"] |
88 | | - }, |
89 | | - { |
90 | | - "names": ["strtok", "_tcstok", "wcstok", "_mbstok"], |
91 | | - "replacements": ["strtok_s"] |
| 43 | + "replacements": ["See SEI CERT STR31-C: https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/characters-and-strings-str/str31-c/"] |
92 | 44 | }, |
93 | 45 | { |
94 | 46 | "names": [ |
95 | | - "wsprintf", |
96 | 47 | "sprintf", |
97 | | - "swprintf", |
98 | | - "_stprintf", |
99 | | - "wvsprintf", |
100 | | - "vsprintf", |
101 | | - "_vstprintf", |
102 | | - "vswprintf" |
| 48 | + "vsprintf" |
103 | 49 | ], |
104 | | - "replacements": ["snprintf", "snprintf_s"] |
| 50 | + "replacements": ["snprintf", "vsnprintf"] |
105 | 51 | } |
106 | 52 | ] |
107 | 53 | } |
0 commit comments