New Ghostscript/GhostPDL compiler warnings - 2018-02-06-04:30:05 - f6005484617ada241d2f5f4deee4808616474831
[email protected] Tue, 6 Feb 2018 06:23:47 -0800 (PST)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20180206142347.89FD6204025E@i7> |
Previous Revision: 16688a8b833cf4e8950265e933604c32b1f2392e Current Revision: f6005484617ada241d2f5f4deee4808616474831 commit f6005484617ada241d2f5f4deee4808616474831 Author: Ken Sharp <[email protected]> AuthorDate: Tue Feb 6 11:46:56 2018 +0000 CommitDate: Tue Feb 6 11:46:56 2018 +0000 Address more scanbuild/gcc/clang warnings gdevkrnlsclass.c Change a while...do into a do...while to see if it pacifies a 'dereference of NULL pointer' in scanbuild gsparamx.c Incorrect return code could lead to an earlier error not being preserved. Fortunately this is currently only called by claptrap. gsptype1.c remove unnecessary assignments gssprintf.c " " " gstype2.c " " " gstype42.c " " " gxfill.c " " " gsptype2.c rejig the code to avoid setting a return code that isn't used. Add a check on a return code that was missing. gxchar.c add return code checking gxcmap.c " " " " base/gdevkrnlsclass.c base/gsparamx.c base/gsptype1.c base/gsptype2.c base/gssprintf.c base/gstype2.c base/gstype42.c base/gxchar.c base/gxcmap.c base/gxfill.c Ghostscript: new cppcheck warnings (Cppcheck 1.72): base/gssprintf.c:884: error: Null pointer dereference base/gxchar.c:629: error: Shifting a negative value is undefined behaviour base/gxchar.c:630: error: Shifting a negative value is undefined behaviour base/gxchar.c:647: error: Shifting a negative value is undefined behaviour base/gxchar.c:648: error: Shifting a negative value is undefined behaviour base/gxchar.c:1089: error: Shifting a negative value is undefined behaviour base/gxchar.c:1091: error: Shifting a negative value is undefined behaviour base/gxchar.c:1590: error: Shifting a negative value is undefined behaviour base/gxchar.c:1591: error: Shifting a negative value is undefined behaviour base/gxchar.c:1598: error: Shifting a negative value is undefined behaviour base/gxchar.c:1599: error: Shifting a negative value is undefined behaviour base/gxfill.c:2216: error: Shifting a negative value is undefined behaviour base/gxfill.c:2218: error: Shifting a negative value is undefined behaviour http://miles.ghostscript.com:8080/artifex/f6005484617ada241d2f5f4deee4808616474831/gs-cppcheck.txt