summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2023-04-13 10:00:31 +0100
committerKen Sharp <ken.sharp@artifex.com>2023-04-13 10:01:31 +0100
commit4d65fcef1b195a3cf1b7a9e315ca3d47e265d712 (patch)
tree80ad0e168c43e3be2ad5305e9603a71f218ae05f
parentf05fa039448c2f0787104e5fa89483f9241f6d49 (diff)
downloadghostpdl-4d65fcef1b195a3cf1b7a9e315ca3d47e265d712.tar.gz
Graphics library - add missing type check in parameter parsing
Bug #706571 "Segmentation violation at base/gscparam.c:342 (in c_param_write function)" We don't permit mixed type arrays when parsing parameters, the number parsing checked the array wasn't a string array, but didn't check to see if it was a name array.
-rw-r--r--base/gsparaml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gsparaml.c b/base/gsparaml.c
index ec608165d..d50bd040b 100644
--- a/base/gsparaml.c
+++ b/base/gsparaml.c
@@ -423,7 +423,7 @@ process_array(gs_memory_t *mem, gs_c_param_list *plist, gs_param_name key, char
case '.':
case '+':
case '-':
- if (array_type == gs_param_type_string_array) {
+ if (array_type == gs_param_type_string_array || array_type == gs_param_type_name_array ) {
code = gs_error_typecheck;
break;
} else {