New Ghostscript/GhostPDL compiler warnings - 2018-03-30-03:45:02 - 344db7fb39f457201f243b2775e3d63cf8406010

[email protected] Fri, 30 Mar 2018 05:03:41 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20180330120341.C755C204050B@i7>
Previous Revision: 0f6ec1c44bb38175344be16d747b8feee35ae35f
 Current Revision: 344db7fb39f457201f243b2775e3d63cf8406010

commit 344db7fb39f457201f243b2775e3d63cf8406010
Author:     Shailesh Mistry <[email protected]>
AuthorDate: Tue Mar 27 20:13:18 2018 +0100
CommitDate: Thu Mar 29 18:45:11 2018 +0100

    Bug 697545 : Update functions to return error codes.
    
    Prevent numerous SEGV points by ensuring error codes are returned and
    handled appropriately.

base/gsdps1.c
base/gxchar.c
base/gxifast.c
base/gximage4.c
pcl/pcl/pctext.c



Ghostscript:

new cppcheck warnings (Cppcheck 1.72): 

base/gxchar.c:1595: error: Shifting a negative value is undefined behaviour
base/gxchar.c:1596: error: Shifting a negative value is undefined behaviour
base/gxchar.c:1603: error: Shifting a negative value is undefined behaviour
base/gxchar.c:1604: error: Shifting a negative value is undefined behaviour
base/gxifast.c:321: error: Shifting a negative value is undefined behaviour

http://miles.ghostscript.com:8080/artifex/344db7fb39f457201f243b2775e3d63cf8406010/gs-cppcheck.txt