Lines Matching refs:strncat

547 // strncat()
555 #define strncat(a,b,c) __strncat_chk(a,b,c, (size_t)-1)
559 #define strncat BUILTIN(strncat)
560 char *strncat(char *restrict s1, const char *restrict s2, size_t n);
566 strncat(NULL, x, 4); // expected-warning{{Null pointer argument in call to string copy function}}
570 strncat(x, NULL, 4); // expected-warning{{Null pointer argument in call to string copy function}}
574 strncat(x, (char*)&strncat_fn, 4); // expected-warning{{Argument to string copy function is the address of the function 'strncat_fn', which is not a null-terminated string}}
585 clang_analyzer_eval(strncat(x, y, strlen(y)) == x); // expected-warning{{TRUE}}
592 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
598 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
604 strncat(x, y, strlen(y)); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
610 strncat(x, y, 2); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
615 strncat(x, y, strlen(y)); // no-warning
621 strncat(x, y, 1); // no-warning
625 strncat(dst, "1234", 5);
631 strncat(dst, src, 3);
635 strncat(dst2, src, 4); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
640 strncat(dst, &src[offset], 3);
644 strncat(dst2, &src[offset], 4); // expected-warning{{Size argument is greater than the free space in the destination buffer}}
653 strncat(dst, src, limit); // no-warning
662 strncat(dst, src, (size_t)limit); // no-warning
673 strncat(dst, src, 2); // expected-warning{{This expression will create a string whose length is too big to be represented as a size_t}}
678 strncat(dst, src, 0); // no-warning
684 strncat(dst, src, 4); // no-warning