|
From: Tom H. <to...@co...> - 2009-01-07 15:36:59
|
Julian Seward wrote: >> - Buffers allocated on the stack with alloca() which is something >> that I don't have a good solution for. > > Hmm. I'd have thought that wouldn't be a problem. An access to an > unlabelled section on the stack would be considered "I don't know > what this is". Provided the same instruction continues to access > in an unlabelled section (until the frame exits) there should be no > error reported. An error is only reported for transitions from > known to unknown (or back) and for known-to-different-known areas. > (where "known" means "stack area associated with a known variable"). > > But maybe it's more complex. Any possibility of a simple test case? Attached. >> - Constant strings, which obviously have no variable information >> associated with them in the DWARF so trigger a warning. > > I would have thought these too to be harmless. Hum. This one looks like it must be more complicated then I thought and I'm trying to reproduce it at the moment... Tom -- Tom Hughes (to...@co...) http://www.compton.nu/ |