2 { dg-options "-O2 -Wstringop-overflow" } */
4 extern char* strchr (const char*, int);
5 extern char* strcpy (char*, const char*);
6 extern void* malloc (__SIZE_TYPE__
);
7 extern __SIZE_TYPE__
strlen (const char *);
13 struct define_item
* foo(char *name
)
17 struct define_item
* ptr
;
19 p
= strchr (name
, '=');
25 ptr
= malloc(sizeof(struct define_item
) + strlen(value
));
26 strcpy(ptr
->value
, value
); /* { dg-bogus "bytes into a region" } */