Bug 686989 - Internal strings too short for long GenericResourceDir path
Summary: Internal strings too short for long GenericResourceDir path
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: All All
: P1 normal
Assignee: Ray Johnston
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-08 11:29 UTC by Ray Johnston
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer: 590
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).