opensubscriber
   Find in this group all groups
 
Unknown more information…

p : plucker-dev@plkr.org 11 January 2009 • 8:58AM -0500

Re: bug in uncompress.c?
by Pruss, Alexander

REPLY TO AUTHOR
 
REPLY TO GROUP




Mike: Is that 4096 compressed or 4096 uncompressed?

-----Original Message-----

From:  "Michael Nordstrom" <plucker@tarf...>
Subj:  Re: bug in uncompress.c?
Date:  Sat Jan 10, 2009 4:46 pm
Size:  609 bytes
To:  "Plucker development list" <plucker-dev@plkr...>

On Sat, Jan 10, 2009, Pruss, Alexander wrote:
> Isn't there a danger that outBuf[i++]=c^0x80 will overflow BUFSIZE?  I
> don't fully understand the code yet, so I may be missing something.

PalmDOC data is always divided into 4096 byte blocks (i.e. BUFSIZE)
and the blocks are acted upon independently, so it should be safe as
long as the document is valid. If the document is invalid then all
bets are off anyway ;-)

Cheers,
/Mike
_______________________________________________
Public archival of this list without permission is prohibited.
http://lists.plkr.org/mailman/listinfo/plucker-dev

_______________________________________________
Public archival of this list without permission is prohibited.
http://lists.plkr.org/mailman/listinfo/plucker-dev

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.