|
test_24
‘test_24’: event 1
276 | void *ptr = alloca (sizeof (int)); /* { dg-message "memory is allocated on the stack here" } */ |
| ^~~~~~ |
| | |
| (1) memory is allocated on the stack here |
|
‘test_24’: event 2
277 | free (ptr); /* { dg-warning "'free' of memory allocated on the stack by 'alloca' \\('ptr'\\) will corrupt the heap \\\[CWE-590\\\]" } */ |
| ^~~~~~~~~~ |
| | |
| (2) call to ‘free’ here |
|
|