S
Shao Miller
The "Re: How to solve problem about "segmentation fault; core dump" in
GCC?" thread had a few posters post about the value of a pointer being
indeterminate[1] after 'free'. While there's clearly a reference for
that in a C Standard, isn't it a bit impossible?
One could copy a pointer as an array of 'char', compress it, encrypt it,
OR it with something the implementation cannot possibly prove in
advance will be all zero bits, but is all zero bits nonetheless, send it
to a friend, then 'free' the pointed-to-object, receive the package back
from the friend, then decrypt the pointer, decompress it, then copy it
back, or to another such pointer?
Does it seem reasonable that 'free' should have this kind of influence?
[1] "C99" C Standard draft with filename 'n1256.pdf': 6.2.4p2
GCC?" thread had a few posters post about the value of a pointer being
indeterminate[1] after 'free'. While there's clearly a reference for
that in a C Standard, isn't it a bit impossible?
One could copy a pointer as an array of 'char', compress it, encrypt it,
OR it with something the implementation cannot possibly prove in
advance will be all zero bits, but is all zero bits nonetheless, send it
to a friend, then 'free' the pointed-to-object, receive the package back
from the friend, then decrypt the pointer, decompress it, then copy it
back, or to another such pointer?
Does it seem reasonable that 'free' should have this kind of influence?
[1] "C99" C Standard draft with filename 'n1256.pdf': 6.2.4p2