Previous Revision: ce5c3f42d8bd062da65d592abdaaeea90b901970
Current Revision: 853737363b7b7cd1eab4da68ba8f83b7dfb5f453
commit 853737363b7b7cd1eab4da68ba8f83b7dfb5f453
Author: Robin Watts <[email protected]>
AuthorDate: Tue Nov 21 19:24:04 2017 +0000
CommitDate: Tue Nov 21 20:43:42 2017 +0000
clist tweak: Pass &var to macros if the value of var is updated.
Otherwise it's hard for someone unfamiliar with the macros to see
what is going on.
base/gxclbits.c
base/gxcldev.h
base/gxclimag.c
base/gxclpath.c
base/gxclrect.c
base/gxclutil.c
Ghostscript:
new scan-build warnings:
./base/gxclimag.c:1934:5: warning: Array access results in a null pointer dereference
cmd_put2w(h, bytes_per_plane, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclimag.c:1980:5: warning: Array access results in a null pointer dereference
cmd_put2w(h, bytes_per_plane, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclimag.c:280:21: warning: Array access results in a null pointer dereference
cmd_putxy(rect, &dp);
^~~~~~~~~~~~~~~~~~~~
./base/gxclrect.c:156:9: warning: Array access results in a null pointer dereference
cmd_put2w(x, width, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclrect.c:191:5: warning: Dereference of null pointer
cmd_putw(0, &dp);
^~~~~~~~~~~~~~~~
./base/gxclrect.c:46:5: warning: Dereference of null pointer
cmd_putw(prect->x, &dp);
^~~~~~~~~~~~~~~~~~~~~~~
./base/gxclutil.c:672:5: warning: Array access results in a null pointer dereference
cmd_putxy(pcls->tile_phase, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://miles.ghostscript.com:8080/artifex/853737363b7b7cd1eab4da68ba8f83b7dfb5f453/gs/index.html
http://miles.ghostscript.com:8080/artifex/853737363b7b7cd1eab4da68ba8f83b7dfb5f453/gs-scan-build.txt
GhostPCL:
new scan-build warnings:
./base/gxclimag.c:1934:5: warning: Array access results in a null pointer dereference
cmd_put2w(h, bytes_per_plane, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclimag.c:1980:5: warning: Array access results in a null pointer dereference
cmd_put2w(h, bytes_per_plane, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclimag.c:280:21: warning: Array access results in a null pointer dereference
cmd_putxy(rect, &dp);
^~~~~~~~~~~~~~~~~~~~
./base/gxclrect.c:156:9: warning: Array access results in a null pointer dereference
cmd_put2w(x, width, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~
./base/gxclrect.c:191:5: warning: Dereference of null pointer
cmd_putw(0, &dp);
^~~~~~~~~~~~~~~~
./base/gxclrect.c:46:5: warning: Dereference of null pointer
cmd_putw(prect->x, &dp);
^~~~~~~~~~~~~~~~~~~~~~~
./base/gxclutil.c:672:5: warning: Array access results in a null pointer dereference
cmd_putxy(pcls->tile_phase, &dp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://miles.ghostscript.com:8080/artifex/853737363b7b7cd1eab4da68ba8f83b7dfb5f453/pcl/index.html
http://miles.ghostscript.com:8080/artifex/853737363b7b7cd1eab4da68ba8f83b7dfb5f453/pcl-scan-build.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.