New Ghostscript/GhostPDL compiler warnings - 2019-06-04-01:45:50 - d5e123d42718370c144a62ba10a7b715cc88b81a
[email protected] Tue, 4 Jun 2019 03:41:22 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20190604104122.B7494204049C@i7> |
Previous Revision: c9a832653a91ddcdd1220fe9fbbc58839eade4aa Current Revision: d5e123d42718370c144a62ba10a7b715cc88b81a commit d5e123d42718370c144a62ba10a7b715cc88b81a Author: Ken Sharp <[email protected]> AuthorDate: Sat Jun 1 11:09:05 2019 +0100 CommitDate: Tue Jun 4 09:37:16 2019 +0100 Graphics library - match gsaves with grestores Auditing as part of the pdfi work, when the graphics library executes a gs_gsave() it should match it with a gs_grestore(), even in the case of an error. In addition, if gs_setcolorspace failed in image_PaintProc() it would leak the pattern enumerator. Because this is only called from PCL the memory is not garbage collected. base/gsptype1.c base/gxchar.c Ghostscript: new cppcheck warnings (Cppcheck 1.72): base/gxchar.c:445: error: Shifting a negative value is undefined behaviour base/gxchar.c:609: error: Shifting a negative value is undefined behaviour base/gxchar.c:610: error: Shifting a negative value is undefined behaviour base/gxchar.c:627: error: Shifting a negative value is undefined behaviour base/gxchar.c:628: error: Shifting a negative value is undefined behaviour base/gxchar.c:1075: error: Shifting a negative value is undefined behaviour base/gxchar.c:1582: error: Shifting a negative value is undefined behaviour base/gxchar.c:1583: 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 http://miles.ghostscript.com:8080/artifex/d5e123d42718370c144a62ba10a7b715cc88b81a/gs-cppcheck.txt