Lines Matching refs:src
44 char *src; in lkdtm_FORTIFY_STR_MEMBER() local
46 src = kmalloc(size, GFP_KERNEL); in lkdtm_FORTIFY_STR_MEMBER()
47 strscpy(src, "over ten bytes", size); in lkdtm_FORTIFY_STR_MEMBER()
48 size = strlen(src) + 1; in lkdtm_FORTIFY_STR_MEMBER()
57 strncpy(target.a, src, size); in lkdtm_FORTIFY_STR_MEMBER()
65 kfree(src); in lkdtm_FORTIFY_STR_MEMBER()
109 char *src; in lkdtm_FORTIFY_MEM_MEMBER() local
111 src = kmalloc(size, GFP_KERNEL); in lkdtm_FORTIFY_MEM_MEMBER()
112 strscpy(src, "over ten bytes", size); in lkdtm_FORTIFY_MEM_MEMBER()
113 size = strlen(src) + 1; in lkdtm_FORTIFY_MEM_MEMBER()
122 memcpy(target.a, src, size); in lkdtm_FORTIFY_MEM_MEMBER()
130 kfree(src); in lkdtm_FORTIFY_MEM_MEMBER()
140 char *src; in lkdtm_FORTIFY_STRSCPY() local
146 char src[5]; in lkdtm_FORTIFY_STRSCPY() member
149 char weird_dst[sizeof(weird.src) + 1]; in lkdtm_FORTIFY_STRSCPY()
151 src = kstrdup("foobar", GFP_KERNEL); in lkdtm_FORTIFY_STRSCPY()
153 if (src == NULL) in lkdtm_FORTIFY_STRSCPY()
157 if (strscpy(dst, src, 0) != -E2BIG) in lkdtm_FORTIFY_STRSCPY()
161 if (strscpy(dst, src, sizeof(dst)) != -E2BIG) in lkdtm_FORTIFY_STRSCPY()
170 src[3] = '\0'; in lkdtm_FORTIFY_STRSCPY()
176 if (strscpy(dst, src, sizeof(dst)) != 3) in lkdtm_FORTIFY_STRSCPY()
185 strscpy(weird_dst, weird.src, sizeof(weird_dst)); in lkdtm_FORTIFY_STRSCPY()
192 src[3] = 'b'; in lkdtm_FORTIFY_STRSCPY()
198 strscpy(dst, src, strlen(src)); in lkdtm_FORTIFY_STRSCPY()
203 kfree(src); in lkdtm_FORTIFY_STRSCPY()