diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2018-11-17 11:20:08 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2018-11-17 11:20:08 +0000 |
commit | 867deb44ce59102b3c817b8228d9cbfd9d9b1fde (patch) | |
tree | 5477718406ee42263fced79b4649ec3b3d6d82fe /base/gsfcmap.c | |
parent | aba438b1835c4c0f4c2b0aee5b7d8430d7e58251 (diff) | |
download | ghostpdl-867deb44ce59102b3c817b8228d9cbfd9d9b1fde.tar.gz |
Check structure types when using the r_ptr macro
Two more places where we were using the r_ptr macro to cast a PostScript
ref object into a structure without thoroughly checking that the object
was in fact a structure of the correct type.
One case did a partial check, but this is more robust.
Diffstat (limited to 'base/gsfcmap.c')
-rw-r--r-- | base/gsfcmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gsfcmap.c b/base/gsfcmap.c index ac57d7f2f..150b4d954 100644 --- a/base/gsfcmap.c +++ b/base/gsfcmap.c @@ -32,7 +32,7 @@ typedef struct gs_cmap_identity_s { /* GC descriptors */ public_st_cmap(); -gs_private_st_suffix_add0_local(st_cmap_identity, gs_cmap_identity_t, +gs_public_st_suffix_add0_local(st_cmap_identity, gs_cmap_identity_t, "gs_cmap_identity_t", cmap_ptrs, cmap_data, st_cmap); @@ -425,7 +425,7 @@ gs_cmap_compute_identity(const gs_cmap_t *pcmap, int font_index_only) static const int gs_cmap_ToUnicode_code_bytes = 2; -gs_private_st_suffix_add0(st_cmap_ToUnicode, gs_cmap_ToUnicode_t, +gs_public_st_suffix_add0(st_cmap_ToUnicode, gs_cmap_ToUnicode_t, "gs_cmap_ToUnicode_t", cmap_ToUnicode_enum_ptrs, cmap_ToUnicode_reloc_ptrs, st_cmap); |