mudflap: how do I give size for 'void *' objects?

Eyal Lebedinsky eyal@eyal.emu.id.au
Fri Apr 4 01:27:00 GMT 2003


I have a problem where I get a large number of reported violations
when accessing objects acquired through something like
	p = shmat()
where the size of the object is unknown (unless mudflap uses
extra internal knowledge).

I also get a violation on practically every access to a ctype is*()
function, which may be related to a similar issue. I think this
problem is not present in a later libc.

I attempted something like this, but it did not help:

p = (char *)*(MY_STRUCT * (*) (int __shmid, __const void *__shmaddr,
	int __shmflg))(&shmat) (shmid, NULL, 0);

Currently running any of my programs is a pain, generating 100s
of megs of violation reports.

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>



More information about the Gcc mailing list