|
From: Andreas R. <and...@gm...> - 2004-11-24 06:29:08
|
Fine with me. Cheers, - Andreas ----- Original Message ----- From: "Tim Rowledge" <ti...@su...> To: <squ...@li...> Sent: Wednesday, November 24, 2004 4:05 AM Subject: [Squeak-VMdev] Securing imageNamePutLength() > I'd like to improve the safety of the writing the image name; currently > the slang code for primitiveImageName merely assumes success in writing > absolutely anything you pass it. Since (so far as I can see) all > platforms have a practical maximum path length it seems like a good > thing to be able to return an indication as to whether the string was > truly acceptable - size, illegal chars, plausible path, whatever suits > the platform. > > Right now all four main platforms do something different:- > Acorn returns flase if the string cannot be canonicalised as a filename > but returns default if ok! > Mac returns the lesser of allowable image name size and actual length > Unix returns the same > Windows returns 1. > > Can we agree that returning something uniform (say 0) to indicate that > the prim should fail is a good idea? I'd like to make this a 3.8 thing > if possible. > > > tim > -- > Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim > Oxymorons: Legally drunk > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Squeak-VMdev mailing list > Squ...@li... > https://lists.sourceforge.net/lists/listinfo/squeak-vmdev > |