public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* mudflap: how do I give size for 'void *' objects?
@ 2003-04-04  1:27 Eyal Lebedinsky
  2003-04-05 11:18 ` mudflap: how do I give size for 'void *' objects? - example Eyal Lebedinsky
  0 siblings, 1 reply; 6+ messages in thread
From: Eyal Lebedinsky @ 2003-04-04  1:27 UTC (permalink / raw)
  To: list, gcc, Eigler, Frank Ch.

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/>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-07 22:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04  1:27 mudflap: how do I give size for 'void *' objects? Eyal Lebedinsky
2003-04-05 11:18 ` mudflap: how do I give size for 'void *' objects? - example Eyal Lebedinsky
2003-04-05 21:17   ` Frank Ch. Eigler
2003-04-06 13:39     ` Eyal Lebedinsky
2003-04-07 19:54       ` Frank Ch. Eigler
2003-04-08  0:08         ` Eyal Lebedinsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).