New Ghostscript/GhostPDL compiler warnings - 2018-07-19-20:30:01 - f8300fe31d487088e2de195ab0bf3a5725e6806f

[email protected] Thu, 19 Jul 2018 21:45:54 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20180720044554.92FD82040620@i7>
Previous Revision: 12e9787cd20407b1440edf212d8e7f1c544dc29e
 Current Revision: f8300fe31d487088e2de195ab0bf3a5725e6806f

commit f8300fe31d487088e2de195ab0bf3a5725e6806f
Author:     Sebastian Rasmussen <[email protected]>
AuthorDate: Sun Jul 1 13:19:43 2018 +0800
CommitDate: Thu Jul 19 18:38:20 2018 +0800

    jbig2dec: Warn on out of range symbol IDs, but continue.

jbig2dec/jbig2_text.c



Ghostscript:

new scan-build warnings:

./jbig2dec/jbig2_text.c:419:32: warning: Access to field 'width' results in a dereference of a null pointer (loaded from variable 'IBO')
                if (((int32_t) IBO->width) + RDW < 0 || ((int32_t) IBO->height) + RDH < 0) {
                               ^~~~~~~~~~

./jbig2dec/jbig2_text.c:460:25: warning: Access to field 'width' results in a dereference of a null pointer (loaded from variable 'IB')
                CURS += IB->width - 1;
                        ^~~~~~~~~

./jbig2dec/jbig2_text.c:462:25: warning: Access to field 'height' results in a dereference of a null pointer (loaded from variable 'IB')
                CURS += IB->height - 1;
                        ^~~~~~~~~~


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

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




GhostPCL:

new scan-build warnings:

./jbig2dec/jbig2_text.c:419:32: warning: Access to field 'width' results in a dereference of a null pointer (loaded from variable 'IBO')
                if (((int32_t) IBO->width) + RDW < 0 || ((int32_t) IBO->height) + RDH < 0) {
                               ^~~~~~~~~~

./jbig2dec/jbig2_text.c:460:25: warning: Access to field 'width' results in a dereference of a null pointer (loaded from variable 'IB')
                CURS += IB->width - 1;
                        ^~~~~~~~~

./jbig2dec/jbig2_text.c:462:25: warning: Access to field 'height' results in a dereference of a null pointer (loaded from variable 'IB')
                CURS += IB->height - 1;
                        ^~~~~~~~~~


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

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