|
33 | 33 |
|
34 | 34 | void test_ctype__isspace(void)
|
35 | 35 | {
|
36 |
| - TEST_CHAR_CLASS(isspace, " \n\r\t"); |
| 36 | + TEST_CHAR_CLASS(isspace, " \n\r\t"); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
37 | 37 | }
|
38 | 38 |
|
39 | 39 | void test_ctype__isdigit(void)
|
40 | 40 | {
|
41 |
| - TEST_CHAR_CLASS(isdigit, DIGIT); |
| 41 | + TEST_CHAR_CLASS(isdigit, DIGIT); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | void test_ctype__isalpha(void)
|
45 | 45 | {
|
46 |
| - TEST_CHAR_CLASS(isalpha, LOWER UPPER); |
| 46 | + TEST_CHAR_CLASS(isalpha, LOWER UPPER); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | void test_ctype__isalnum(void)
|
50 | 50 | {
|
51 |
| - TEST_CHAR_CLASS(isalnum, LOWER UPPER DIGIT); |
| 51 | + TEST_CHAR_CLASS(isalnum, LOWER UPPER DIGIT); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
52 | 52 | }
|
53 | 53 |
|
54 | 54 | void test_ctype__is_glob_special(void)
|
55 | 55 | {
|
56 |
| - TEST_CHAR_CLASS(is_glob_special, "*?[\\"); |
| 56 | + TEST_CHAR_CLASS(is_glob_special, "*?[\\"); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
57 | 57 | }
|
58 | 58 |
|
59 | 59 | void test_ctype__is_regex_special(void)
|
60 | 60 | {
|
61 |
| - TEST_CHAR_CLASS(is_regex_special, "$()*+.?[\\^{|"); |
| 61 | + TEST_CHAR_CLASS(is_regex_special, "$()*+.?[\\^{|"); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
62 | 62 | }
|
63 | 63 |
|
64 | 64 | void test_ctype__is_pathspec_magic(void)
|
65 | 65 | {
|
66 |
| - TEST_CHAR_CLASS(is_pathspec_magic, "!\"#%&',-/:;<=>@_`~"); |
| 66 | + TEST_CHAR_CLASS(is_pathspec_magic, "!\"#%&',-/:;<=>@_`~"); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
67 | 67 | }
|
68 | 68 |
|
69 | 69 | void test_ctype__isascii(void)
|
70 | 70 | {
|
71 |
| - TEST_CHAR_CLASS(isascii, ASCII); |
| 71 | + TEST_CHAR_CLASS(isascii, ASCII); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
72 | 72 | }
|
73 | 73 |
|
74 | 74 | void test_ctype__islower(void)
|
75 | 75 | {
|
76 |
| - TEST_CHAR_CLASS(islower, LOWER); |
| 76 | + TEST_CHAR_CLASS(islower, LOWER); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
77 | 77 | }
|
78 | 78 |
|
79 | 79 | void test_ctype__isupper(void)
|
80 | 80 | {
|
81 |
| - TEST_CHAR_CLASS(isupper, UPPER); |
| 81 | + TEST_CHAR_CLASS(isupper, UPPER); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
82 | 82 | }
|
83 | 83 |
|
84 | 84 | void test_ctype__iscntrl(void)
|
85 | 85 | {
|
86 |
| - TEST_CHAR_CLASS(iscntrl, CNTRL); |
| 86 | + TEST_CHAR_CLASS(iscntrl, CNTRL); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
87 | 87 | }
|
88 | 88 |
|
89 | 89 | void test_ctype__ispunct(void)
|
90 | 90 | {
|
91 |
| - TEST_CHAR_CLASS(ispunct, PUNCT); |
| 91 | + TEST_CHAR_CLASS(ispunct, PUNCT); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
92 | 92 | }
|
93 | 93 |
|
94 | 94 | void test_ctype__isxdigit(void)
|
95 | 95 | {
|
96 |
| - TEST_CHAR_CLASS(isxdigit, DIGIT "abcdefABCDEF"); |
| 96 | + TEST_CHAR_CLASS(isxdigit, DIGIT "abcdefABCDEF"); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
97 | 97 | }
|
98 | 98 |
|
99 | 99 | void test_ctype__isprint(void)
|
100 | 100 | {
|
101 |
| - TEST_CHAR_CLASS(isprint, LOWER UPPER DIGIT PUNCT " "); |
| 101 | + TEST_CHAR_CLASS(isprint, LOWER UPPER DIGIT PUNCT " "); // CodeQL [SM01947] justification: Code implicitly exercises sane_istest() macro extensively; CodeQL misses the (unsigned char) cast, mistaking accesses for being past array end |
102 | 102 | }
|
0 commit comments