New Ghostscript/GhostPDL compiler warnings - 2019-05-08-07:30:27 - 97253bf54a701d5e433378df953e066d009afde0

[email protected] Wed, 8 May 2019 12:28:32 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20190508192832.8F71C2040527@i7>
Previous Revision: 880a700f691f444c483053f48b3c0b0f3a920883
 Current Revision: 97253bf54a701d5e433378df953e066d009afde0

commit 97253bf54a701d5e433378df953e066d009afde0
Author:     Ken Sharp <[email protected]>
AuthorDate: Mon May 6 16:51:26 2019 +0100
CommitDate: Wed May 8 15:27:28 2019 +0100

    DeviceN - change ink names to be C strings instead of name indices
    
    As indicated in previous commits, change the stored ink names in the
    colour space structure params.device_n from numeric values
    (gs_separation_name) into C strings.
    
    We never have to pass these back to the interpreter, so we allocate the
    storage using the non-GC allocater, which simplifies things for the
    array which used to store the indices and now stores the pointers to the
    C strings.

base/gscdevn.c
base/gscspace.h
base/gsequivc.c
base/gsicc_cache.c
base/gsicc_manage.c
base/gxcmap.c
devices/vector/gdevpdfc.c
devices/vector/gdevpdfg.c
psi/zcolor.c



Ghostscript:

new scan-build warnings:

./base/gscdevn.c:774:21: warning: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from variable 'mem')
            gs_free(mem, proc_names[k], strlen(proc_names[k]) + 1, 1,
            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


http://miles.ghostscript.com:8080/artifex/97253bf54a701d5e433378df953e066d009afde0/gs/index.html

http://miles.ghostscript.com:8080/artifex/97253bf54a701d5e433378df953e066d009afde0/gs-scan-build.txt




GhostPCL:

new scan-build warnings:

./base/gscdevn.c:774:21: warning: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from variable 'mem')
            gs_free(mem, proc_names[k], strlen(proc_names[k]) + 1, 1,
            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


http://miles.ghostscript.com:8080/artifex/97253bf54a701d5e433378df953e066d009afde0/pcl/index.html

http://miles.ghostscript.com:8080/artifex/97253bf54a701d5e433378df953e066d009afde0/pcl-scan-build.txt