[gs-bugs] [Bug 691655] COMPILE_INITS=0 and gsicc_set_icc_directory() failure
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Fri Oct 1 07:58:45 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=691655
--- Comment #4 from norbert.janssen at oce.com 2010-10-01 07:58:43 UTC ---
also check usage of gsicc_get_profile_handle_file. I saw strlen() and
strlen()+1 used.
gdevwts.c uses strlen()+1
gdevimdi.c gdevrinkj.c gdevxcf.c gdevpsd.c use strlen() => should be strlen()+1
Then all names in gsicc_manage.c can be stored incl. the NULLbytes. (This seems
a bit safer to me). And then the gsicc_open_search(pname, namelen, ...) always
uses a pname+0byte and namelen=strlen(pname)+1
i.e. by providing gsicc_set_iccsmaskprofile(..., pname, strlen(pname)+1); in
gsicc_initialize_iccsmask().
This causes gsicc_profile_new() to be used consistently with pname+0,
namelen=strlen()+1; iff a name is provided.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list