Hi All,

Not sure if this is exactly the right place to send the report but here
goes anyway.

On P274 of the Palm OS Programmers Companion there's a sample function
called GoToURL which shows how to launch Clipper with a URL. The code
appears to work correctly but unfortunately there's an off-by-one in a
memory allocation :

---------
url = MemPtrNew(StrLen(origurl)); // oops, this should be
StrLen(origurl) + 1
if (!url) return sysErrNoFreeRAM;
StrCopy(url, origurl);
---------

Pose catches this and complains (thank-you, Pose maintainers!), but on a
real device memory is silently scribbled over.

-- 
Tony

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to