Lines Matching full:dest

24   char dest[10];  in testStrncat()  local
25 …at(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential buffe… in testStrncat()
26 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer… in testStrncat()
27 …strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning… in testStrncat()
28 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}} in testStrncat()
30 strncat(dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(char)); in testStrncat()
34 char dest[10]; in testStrlcpy() local
35 size_t destlen = sizeof(dest); in testStrlcpy()
39 strlcpy(dest, src, sizeof(dest)); in testStrlcpy()
40 strlcpy(dest, src, destlen); in testStrlcpy()
41 strlcpy(dest, src, 10); in testStrlcpy()
42 …cpy(dest, src, 20); // expected-warning {{The third argument allows to potentially copy more bytes… in testStrlcpy()
43 …y(dest, src, badlen); // expected-warning {{The third argument allows to potentially copy more byt… in testStrlcpy()
44 strlcpy(dest, src, ulen); in testStrlcpy()
45 strlcpy(dest + 5, src, 5); in testStrlcpy()
46 …strlcpy(dest + 5, src, 10); // expected-warning {{The third argument allows to potentially copy mo… in testStrlcpy()
47 strlcpy(dest, "aaaaaaaaaaaaaaa", 10); // no-warning in testStrlcpy()
51 char dest[10]; in testStrlcat() local
54 strlcpy(dest, "aaaaa", sizeof("aaaaa") - 1); in testStrlcat()
55 strlcat(dest, "bbbb", (sizeof("bbbb") - 1) - sizeof(dest) - 1); in testStrlcat()
56 strlcpy(dest, "012345678", sizeof(dest)); in testStrlcat()
57 strlcat(dest, "910", sizeof(dest)); in testStrlcat()
58 strlcpy(dest, "0123456789", sizeof(dest)); in testStrlcat()
59 strlcpy(dest, "0123456789", sizeof(dest)); in testStrlcat()
60 strlcat(dest, "0123456789", badlen / 2); in testStrlcat()
61dest, "0123456789", badlen); // expected-warning {{The third argument allows to potentially copy m… in testStrlcat()
62 strlcat(dest, "0123456789", badlen - strlen(dest) - 1); in testStrlcat()
63 strlcat(dest, src, ulen); in testStrlcat()
64 strlcpy(dest, src, 5); in testStrlcat()
65 …strlcat(dest + 5, src, badlen); // expected-warning {{The third argument allows to potentially cop… in testStrlcat()
66 strlcat(dest, "aaaaaaaaaaaaaaa", 10); // no-warning in testStrlcat()