Home | History | Annotate | Download | only in Analysis

Lines Matching refs:strncat

558 // strncat()
566 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1)
570 #define strncat BUILTIN(strncat)
571 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
577 strncat(NULL, x, 4); // expected-warning{{Null pointer argument in call to string copy function}}
581 strncat(x, NULL, 4); // expected-warning{{Null pointer argument in call to string copy function}}
585 strncat
596 if (strncat(x, y, strlen(y)) != x)
606 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
612 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
618 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
624 strncat(x, y, 2); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
629 strncat(x, y, strlen(y)); // no-warning
635 strncat(x, y, 1); // no-warning
639 strncat(dst, "1234", 5);
646 strncat(dst, src, 3);
651 strncat(dst2, src, 4); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
656 strncat(dst, &src[offset], 3);
661 strncat(dst2, &src[offset], 4); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
670 strncat(dst, src, limit); // no-warning
680 strncat(dst, src, (size_t)limit); // no-warning
692 strncat(dst, src, 2); // expected-warning{{This expression will create a string whose length is too big to be represented as a size_t}}