New Ghostscript/GhostPDL compiler warnings - 2018-10-09-05:45:02 - a6807394bd94b708be24758287b606154daaaed9

[email protected] Tue, 9 Oct 2018 07:01:27 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20181009140127.EE61D2040181@i7>
Previous Revision: 1778db6bc10a8d60dfe986b22d2300326733ddd6
 Current Revision: a6807394bd94b708be24758287b606154daaaed9

commit a6807394bd94b708be24758287b606154daaaed9
Author:     Chris Liddell <[email protected]>
AuthorDate: Tue Oct 2 16:02:58 2018 +0100
CommitDate: Tue Oct 9 10:30:34 2018 +0100

    For hidden operators, pass a name object to error handler.
    
    In normal operation, Postscript error handlers are passed the object which
    triggered the error: this is invariably an operator object.
    
    The issue arises when an error is triggered by an operator which is for internal
    use only, and that operator is then passed to the error handler, meaning it
    becomes visible to the error handler code.
    
    By converting to a name object, the error message is still valid, but we no
    longer expose internal use only operators.
    
    The change in gs_dps1.ps is related to the above: previously an error in
    scheck would throw an error against .gcheck, but as .gcheck is now a hidden
    operator, it resulted in a name object being passed to the error handler. As
    scheck is a 'real' operator, it's better to use the real operator, rather than
    the name of an internal, hidden one.

Resource/Init/gs_dps1.ps
psi/interp.c



Ghostscript:

new cppcheck warnings (Cppcheck 1.72): 

psi/interp.c:1188: error: Expression 'iref_temp=(const struct ref_s*)iref_packed,iref_temp' depends on order of evaluation of side effects
psi/interp.c:1398: error: Expression 'iref_temp=(const struct ref_s*)iref_packed,iref_temp' depends on order of evaluation of side effects

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