Home | History | Annotate | Download | only in Analysis

Lines Matching refs:strlen

32 // strlen()
35 #define strlen BUILTIN(strlen)
36 size_t strlen(const char *s);
39 if (strlen("123") != 3)
45 if (strlen(a) != 3)
51 if (strlen(a) != 3)
54 if (strlen(a) != 3)
59 return strlen(0); // expected-warning{{Null pointer argument in call to string length function}}
63 return strlen((char*)&strlen_fn); // expected-warning{{Argument to string length function is the address of the function 'strlen_fn', which is not a null-terminated string}}
68 return strlen((char*)&&label); // expected-warning{{Argument to string length function is the address of the label 'label', which is not a null-terminated string}}
78 size_t a = strlen(z.a);
80 size_t b = strlen(z.a);
86 size_t c = strlen(z.a);
93 size_t a = strlen(x);
94 size_t b = strlen(x);
100 size_t c = strlen(x);
107 size_t a = strlen(global_str);
108 size_t b = strlen(global_str);
115 size_t c = strlen(global_str);
121 size_t a = strlen(x);
124 size_t b = strlen(x);
131 size_t c = strlen(x);
137 size_t a = strlen(x);
143 size_t c = strlen(x);
149 if (strlen(x) < 5)
151 if (strlen(x) < 5)
233 if (strnlen(x, 10) != strlen(x))
310 if (strlen(x) != strlen(y))
319 if (strlen(y) == 4)
325 if (strlen(y) == 3)
351 if (stpcpy(x, y) != &x[strlen(y)])
354 if (strlen(x) != strlen(y))
363 if (strlen(y) == 4)
369 if (strlen(y) == 3)
406 size_t orig_len = strlen(x);
409 if (strlen(y) != 4)
415 if ((int)strlen(x) != (orig_len + strlen(y)))
421 if (strlen(y) == 4)
427 if (strlen(y) == 3)
433 if (strlen(y) == 2)
439 if (strlen(y) == 2)
445 if (strlen(dst) < 4)
452 if (strlen(dst) < 4)
459 if (strlen(dst) < 4)
466 if (strlen(dst) < 4)
471 // length for the "before" strlen, we won't be able to set one for "after".
474 if (strlen(dst) != (((size_t)0) - 2))
476 if (strlen(src) != 2)
519 if (strlen(x) != strlen(y))
528 if (strlen(y) == 4)
534 if (strlen(y) == 3)
543 if (strlen(y) == 3)
549 if (strlen(y) == 4)
555 if (strlen(y) == 3)
563 // strncpy does not null-terminate, so we have no idea what the strlen is
565 if (strlen(x) > 4)
570 if (strlen(y) >= 4)
577 if (strlen(x) > 3)
614 size_t orig_len = strlen(x);
617 if (strlen(y) != 4)
620 if (strncat(x, y, strlen(y)) != x)
623 if (strlen(x) != orig_len + strlen(y))
629 if (strlen(y) == 4)
630 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
635 if (strlen(y) == 3)
636 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
641 if (strlen(y) == 2)
642 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
647 if (strlen(y) == 4)
652 if (strlen(y) == 2)
653 strncat(x, y, strlen(y)); // no-warning
658 if (strlen(y) == 4)
664 if (strlen(dst) < 4)
671 if (strlen(dst) < 4)
681 if (strlen(dst) < 4)
689 // length for the "before" strlen, we won't be able to set one for "after".
695 if (strlen(dst) < 4)
697 if (strlen(dst) == 4)
705 if (strlen(dst) < 4)
707 if (strlen(dst) == 4)
712 if (strlen(dst) != (((size_t)0) - 2))
714 if (strlen(src) != 2)