> the newest (3.0a6) version of emulator,
The latest version of Poser is 3.0a7.
> case MainCheckFreeChunkAccessButton:
> intPtr = (UInt16*)MemPtrNew(sizeof(UInt16));
> MemPtrFree(intPtr);
> *intPtr = 32; // <- This is NOT reported at all!
> break;
I remember fixing a problem where a problem like this would not be caught.
However, I don't remember if I fixed it in 3.0a7 or an earlier version. If the
former, then use the latest version. If the latter, then I've got some homework
to do. <<<Checking...>>> Oops...looks like I might have some homework. The
problem I fixed was the following (from the 3.0a7 release notes):
* After creating a handle with MemHandleNew, locking it, remembering
the pointer, and then freeing the handle with MemHandleFree, the
application could write to the freed block using the now-stale
pointer. Fixed. [Neil Rhodes]
> case MainCheckOffStackedReferenceButton:
> intPtr = NULL;
> OffStacker(&intPtr); // This points intPtr to a
> // local array in OffStacker
> *intPtr = 43; // <- This is NOT reported at all!
> break;
This is not a check that Poser currently makes (but it's on my list of things to
do).
-- Keith Rollin
-- Palm OS Emulator engineer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/