Home | History | Annotate | Download | only in Analysis

Lines Matching full:strnlen

156 // strnlen()
159 size_t strnlen(const char *s, size_t maxlen);
162 if (strnlen("123", 10) != 3)
168 if (strnlen(a, 10) != 3)
174 if (strnlen(a, 10) != 3)
177 if (strnlen(a, 10) != 3)
182 if (strnlen("123456", 3) != 3)
188 if (strnlen(a, 3) != 3)
194 if (strnlen(a, 3) != 3)
197 if (strnlen(a, 3) != 3)
202 return strnlen(0, 3); // expected-warning{{Null pointer argument in call to string length function}}
206 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}}
211 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}}
215 if (strnlen("abc", 0) != 0)
217 if (strnlen(NULL, 0) != 0) // no-warning
224 return strnlen((char[]) { 'a', 'b', 0 }, 1);
229 return strnlen("abc", (int)f);
233 if (strnlen(x, 10) != strlen(x))
238 size_t len = strnlen(x, 10);
246 size_t len = strnlen(x, 10);
254 size_t len = strnlen("abc", limit);
262 size_t len = strnlen("abc", limit);