Lines Matching refs:strncpy
180 strncpy(to, from, 0); in TEST()
181 strncpy(to - 1, from - 1, 0); in TEST()
183 strncpy(to, from, from_size); in TEST()
184 strncpy(to, from, to_size); in TEST()
185 strncpy(to, from + from_size - 1, to_size); in TEST()
186 strncpy(to + to_size - 1, from, 1); in TEST()
188 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
190 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)), in TEST()
192 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)), in TEST()
194 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST()
197 EXPECT_DEATH(Ident(strncpy(to + to_size - from_size + 1, from, from_size)), in TEST()
199 EXPECT_DEATH(Ident(strncpy(to + 1, from, to_size)), in TEST()
204 strncpy(to, from, from_size); in TEST()
206 EXPECT_DEATH(Ident(strncpy(to, from, to_size)), in TEST()
482 strncpy(str, str + 10, 10); in TEST()
483 EXPECT_DEATH(strncpy(str, str + 9, 10), OverlapErrorMessage("strncpy")); in TEST()
484 EXPECT_DEATH(strncpy(str + 9, str, 10), OverlapErrorMessage("strncpy")); in TEST()
486 strncpy(str + 11, str, 20); in TEST()
487 EXPECT_DEATH(strncpy(str + 10, str, 20), OverlapErrorMessage("strncpy")); in TEST()