Bug 686989

Summary: Internal strings too short for long GenericResourceDir path
Product: Ghostscript Reporter: Ray Johnston <ray.johnston>
Component: PS InterpreterAssignee: Ray Johnston <ray.johnston>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P1    
Version: master   
Hardware: All   
OS: All   
Customer: 590 Word Size: ---

Description Ray Johnston 2003-08-08 11:29:04 UTC
This path succeeds:

(C:/Documents and Settings/ratkins/Local Settings/Application
Data/Customer590/Appl/)

This path fails in GhostScript:

(C:/Documents and Settings/ratkins/Local Settings/Application
Data/Customer590/Appl/en/Configuration/Importers/)

---
I (ray) traced the problem to gs_res.ps that had '100 string'
intenally for path/file names. Long GenericResourceDir paths
would cause Resources to not be found.
Comment 1 Ray Johnston 2003-08-08 11:46:28 UTC
I reviewed all strings used in the 'helper' and PDF interp .ps
files and adjustedstring sizes so that filename paths are 8192
bytes. Various platforms may fail with shorter paths, but this
will allow long paths on OS's that allow them.

I also changed the strings used for file copy operations to 64000
to make them be consistent and slightly more efficient (less loops).