Home | History | Annotate | Download | only in tests

Lines Matching full:strncpy

134   strncpy(to, from, 0);
135 strncpy(to - 1, from - 1, 0);
136 // normal strncpy calls
137 strncpy(to, from, from_size);
138 strncpy(to, from, to_size);
139 strncpy(to, from + from_size - 1, to_size);
140 strncpy(to + to_size - 1, from, 1);
142 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)),
144 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)),
146 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)),
148 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)),
151 EXPECT_DEATH(Ident(strncpy(to + to_size - from_size + 1, from, from_size)),
153 EXPECT_DEATH(Ident(strncpy(to + 1, from, to_size)),
157 // normal strncpy call
158 strncpy(to, from, from_size);
160 EXPECT_DEATH(Ident(strncpy(to, from, to_size)),
440 // Check "strncpy".
442 strncpy(str, str + 10, 10);
443 EXPECT_DEATH(strncpy(str, str + 9, 10), OverlapErrorMessage("strncpy"));
444 EXPECT_DEATH(strncpy(str + 9, str, 10), OverlapErrorMessage("strncpy"));
446 strncpy
447 EXPECT_DEATH(strncpy(str + 10, str, 20), OverlapErrorMessage("strncpy"));