|
|
f226a6 |
diff -ur ghostscript-9.54.0/base/gdevvec.c ghostscript-9.54.0-patched/base/gdevvec.c
|
|
|
f226a6 |
--- ghostscript-9.54.0/base/gdevvec.c
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/base/gdevvec.c
|
|
|
f226a6 |
@@ -643,7 +643,7 @@
|
|
|
f226a6 |
*/
|
|
|
f226a6 |
int
|
|
|
f226a6 |
gdev_vector_dopath_segment(gdev_vector_dopath_state_t *state, int pe_op,
|
|
|
f226a6 |
- gs_fixed_point vs[3])
|
|
|
f226a6 |
+ gs_fixed_point *vs)
|
|
|
f226a6 |
{
|
|
|
f226a6 |
gx_device_vector *vdev = state->vdev;
|
|
|
f226a6 |
const gs_matrix *const pmat = &state->scale_mat;
|
|
|
f226a6 |
diff -ur ghostscript-9.54.0/base/gdevvec.h ghostscript-9.54.0-patched/base/gdevvec.h
|
|
|
f226a6 |
--- ghostscript-9.54.0/base/gdevvec.h
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/base/gdevvec.h
|
|
|
f226a6 |
@@ -306,7 +306,7 @@
|
|
|
f226a6 |
|
|
|
f226a6 |
/* Write a segment of a path using the default implementation. */
|
|
|
f226a6 |
int gdev_vector_dopath_segment(gdev_vector_dopath_state_t *state, int pe_op,
|
|
|
f226a6 |
- gs_fixed_point vs[3]);
|
|
|
f226a6 |
+ gs_fixed_point *vs);
|
|
|
f226a6 |
|
|
|
f226a6 |
typedef struct gdev_vector_path_seg_record_s {
|
|
|
f226a6 |
int op;
|
|
|
f226a6 |
diff -ur ghostscript-9.54.0/base/gxclpath.c ghostscript-9.54.0-patched/base/gxclpath.c
|
|
|
f226a6 |
--- ghostscript-9.54.0/base/gxclpath.c 2021-03-30 09:40:28.000000000 +0200
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/base/gxclpath.c 2021-11-23 11:06:14.670137576 +0100
|
|
|
f226a6 |
@@ -715,10 +715,10 @@
|
|
|
f226a6 |
} else {
|
|
|
f226a6 |
code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_set_color_space,
|
|
|
f226a6 |
2 + sizeof(clist_icc_color_t));
|
|
|
f226a6 |
- memcpy(dp + 2, &(cldev->color_space.icc_info),
|
|
|
f226a6 |
- sizeof(clist_icc_color_t));
|
|
|
f226a6 |
if (code < 0)
|
|
|
f226a6 |
return code;
|
|
|
f226a6 |
+ memcpy(dp + 2, &(cldev->color_space.icc_info),
|
|
|
f226a6 |
+ sizeof(clist_icc_color_t));
|
|
|
f226a6 |
}
|
|
|
f226a6 |
dp[1] = cldev->color_space.byte1;
|
|
|
f226a6 |
pcls->known |= color_space_known;
|
|
|
f226a6 |
diff -ur ghostscript-9.54.0/extract/src/mem.c ghostscript-9.54.0-patched/extract/src/mem.c
|
|
|
f226a6 |
--- ghostscript-9.54.0/extract/src/mem.c 2021-03-30 09:40:28.000000000 +0200
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/extract/src/mem.c 2021-11-23 11:11:37.293082828 +0100
|
|
|
f226a6 |
@@ -19,14 +19,24 @@
|
|
|
f226a6 |
int extract_vasprintf(extract_alloc_t* alloc, char** out, const char* format, va_list va)
|
|
|
f226a6 |
{
|
|
|
f226a6 |
int n;
|
|
|
f226a6 |
- int n2;
|
|
|
f226a6 |
+ int ret;
|
|
|
f226a6 |
va_list va2;
|
|
|
f226a6 |
va_copy(va2, va);
|
|
|
f226a6 |
n = vsnprintf(NULL, 0, format, va);
|
|
|
f226a6 |
- if (n < 0) return n;
|
|
|
f226a6 |
- if (extract_malloc(alloc, out, n + 1)) return -1;
|
|
|
f226a6 |
- n2 = vsnprintf(*out, n + 1, format, va2);
|
|
|
f226a6 |
+ if (n < 0)
|
|
|
f226a6 |
+ {
|
|
|
f226a6 |
+ ret = n;
|
|
|
f226a6 |
+ goto end;
|
|
|
f226a6 |
+ }
|
|
|
f226a6 |
+ if (extract_malloc(alloc, out, n + 1))
|
|
|
f226a6 |
+ {
|
|
|
f226a6 |
+ ret = -1;
|
|
|
f226a6 |
+ goto end;
|
|
|
f226a6 |
+ }
|
|
|
f226a6 |
+ vsnprintf(*out, n + 1, format, va2);
|
|
|
f226a6 |
+ ret = 0;
|
|
|
f226a6 |
+
|
|
|
f226a6 |
+ end:
|
|
|
f226a6 |
va_end(va2);
|
|
|
f226a6 |
- assert(n2 == n);
|
|
|
f226a6 |
- return n2;
|
|
|
f226a6 |
+ return ret;
|
|
|
f226a6 |
}
|
|
|
f226a6 |
diff -ur ghostscript-9.54.0/psi/icie.h ghostscript-9.54.0-patched/psi/icie.h
|
|
|
f226a6 |
--- ghostscript-9.54.0/psi/icie.h 2021-03-30 09:40:28.000000000 +0200
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/psi/icie.h 2021-10-29 12:48:43.405814563 +0200
|
|
|
f226a6 |
@@ -53,7 +53,7 @@
|
|
|
f226a6 |
|
|
|
f226a6 |
/* Get 3 procedures from a dictionary. */
|
|
|
f226a6 |
int dict_proc3_param(const gs_memory_t *mem, const ref *pdref,
|
|
|
f226a6 |
- const char *kstr, ref proc3[3]);
|
|
|
f226a6 |
+ const char *kstr, ref *proc3);
|
|
|
f226a6 |
|
|
|
f226a6 |
/* Get WhitePoint and BlackPoint values. */
|
|
|
f226a6 |
int cie_points_param(const gs_memory_t *mem,
|
|
|
f226a6 |
diff -ur ghostscript-9.54.0/psi/zcie.c ghostscript-9.54.0-patched/psi/zcie.c
|
|
|
f226a6 |
--- ghostscript-9.54.0/psi/zcie.c 2021-03-30 09:40:28.000000000 +0200
|
|
|
f226a6 |
+++ ghostscript-9.54.0-patched/psi/zcie.c 2021-11-02 14:36:28.463448728 +0100
|
|
|
f226a6 |
@@ -144,7 +144,7 @@
|
|
|
f226a6 |
|
|
|
f226a6 |
/* Get 3 procedures from a dictionary. */
|
|
|
f226a6 |
int
|
|
|
f226a6 |
-dict_proc3_param(const gs_memory_t *mem, const ref *pdref, const char *kstr, ref proc3[3])
|
|
|
f226a6 |
+dict_proc3_param(const gs_memory_t *mem, const ref *pdref, const char *kstr, ref *proc3)
|
|
|
f226a6 |
{
|
|
|
f226a6 |
return dict_proc_array_param(mem, pdref, kstr, 3, proc3);
|
|
|
f226a6 |
}
|