[VM] non-MacRoman file names

John M McIntosh johnmci at smalltalkconsulting.com
Thu Nov 27 01:19:06 UTC 2003


Actually the 1000 mention is TOTAL PATH length. Error checking tends to  
be a bit sparse
so buffer overflowing is quite possible!

Occasionally we drag around just the file name, that was capped at 256.

Right we could spend time here and fix, sigh... Mind I'm going to ship  
something soon.

On Nov 26, 2003, at 4:36 PM, Tim Rowledge wrote:

> "Richard A. O'Keefe" <ok at cs.otago.ac.nz> wrote:
>
>> 	Alas lots of assumptions/code that considers that 256 bytes is  
>> maximum
>> 	for a file/folder name. Somehow
>> 	  I thought I was done, but now I've got possible VM changes and more
>> 	fiddling to do.
>> 	
>> In many versions of Unix the limit has been 1024 for a couple of  
>> decades.
> We really need to do a better job of this in various prims, whatever  
> the
> appropriate value is - a number of places assume 1000 chars. Terribly
> poor practise.
>
>
> tim
> --
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> Strange OpCodes: XID: Exchange Instructions with Data
>
>
>
--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Squeak-dev mailing list