This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Actually wait a minute a second time, these testcases are all invalid because other reasons. We are using memory after they have been "dealloced" Richard, do you have an example which does not have that issue because it seems like they are all invalid.
free (a); b = malloc (10); /* suppose b = a */ b->x = 3; a->x = 5; /* dangling pointer, but not invalid code */ return b->x; /* compiler may return 3 */
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |