Lines Matching full:length
7 int length; in path_sensitive_unknown_length() local
8 length = strlen(src); in path_sensitive_unknown_length()
9 position = (char *)memchr(src, '\0', length); in path_sensitive_unknown_length()
13 int length = strlen(src); in bad_memchr() local
14 position = (char *)memchr(src, '\0', length); in bad_memchr()
15 …// CHECK-MESSAGES: :[[@LINE-1]]:40: warning: the length is too short to include the null terminato… in bad_memchr()
25 int length = strlen(strerror(errno)); in bad_strerror_s() local
26 strerror_s(dest, length, errno); in bad_strerror_s()
29 // CHECK-FIXES-NEXT: int length = strlen(strerror(errno)); in bad_strerror_s()
30 // CHECK-FIXES-NEXT: strerror_s(dest, length + 1, errno); in bad_strerror_s()
35 int length = strlen(strerror(errno)); in good_strerror_s() local
36 strerror_s(dst, length + 1, errno); in good_strerror_s()
40 int length = strlen(str1) + 1; in bad_strncmp_1() local
41 return strncmp(str1, str2, length); in bad_strncmp_1()
42 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: comparison length is too long and might lead to a buf… in bad_strncmp_1()
43 // CHECK-FIXES: strncmp(str1, str2, length - 1); in bad_strncmp_1()
47 int length = strlen(str1) + 1; in good_strncmp_1() local
48 return strncmp(str1, str2, length - 1); in good_strncmp_1()
53 …// CHECK-MESSAGES: :[[@LINE-1]]:35: warning: comparison length is too long and might lead to a buf… in bad_strncmp_2()
59 …// CHECK-MESSAGES: :[[@LINE-1]]:34: warning: comparison length is too long and might lead to a buf… in bad_strncmp_3()