Lines Matching full:strnlen
158 // strnlen()
161 size_t strnlen(const char *s, size_t maxlen);
164 clang_analyzer_eval(strnlen("123", 10) == 3); // expected-warning{{TRUE}}
169 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}}
174 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{TRUE}}
176 clang_analyzer_eval(strnlen(a, 10) == 3); // expected-warning{{UNKNOWN}}
180 clang_analyzer_eval(strnlen("123456", 3) == 3); // expected-warning{{TRUE}}
185 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}}
190 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{TRUE}}
192 clang_analyzer_eval(strnlen(a, 3) == 3); // expected-warning{{UNKNOWN}}
196 return strnlen(0, 3); // expected-warning{{Null pointer argument in call to string length function}}
200 return strnlen((char*)&strlen_fn, 3); // expected-warning{{Argument to string length function is the address of the function 'strlen_fn', which is not a null-terminated string}}
205 return strnlen((char*)&&label, 3); // expected-warning{{Argument to string length function is the address of the label 'label', which is not a null-terminated string}}
209 clang_analyzer_eval(strnlen("abc", 0) == 0); // expected-warning{{TRUE}}
210 clang_analyzer_eval(strnlen(NULL, 0) == 0); // expected-warning{{TRUE}}
216 return strnlen((char[]) { 'a', 'b', 0 }, 1);
221 return strnlen("abc", (int)f);
225 clang_analyzer_eval(strnlen(x, 10) == strlen(x)); // expected-warning{{UNKNOWN}}
229 size_t len = strnlen(x, 10);
236 size_t len = strnlen("abc", limit);
238 // This is due to eager assertion in strnlen.