diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-01 02:45:12 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-01 02:45:12 +0000 |
commit | 6cbb39d5e59b8c9869dd883731e05027f914d132 (patch) | |
tree | 233aaa622aecadadc1d839888d2a15892ac0621d /print/ghostscript7/files/patch-src-zdict.c | |
parent | 9da9e7fce489607005c258d52044964b5b7d8f1f (diff) |
Notes
Diffstat (limited to 'print/ghostscript7/files/patch-src-zdict.c')
-rw-r--r-- | print/ghostscript7/files/patch-src-zdict.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/print/ghostscript7/files/patch-src-zdict.c b/print/ghostscript7/files/patch-src-zdict.c new file mode 100644 index 000000000000..050ecc841717 --- /dev/null +++ b/print/ghostscript7/files/patch-src-zdict.c @@ -0,0 +1,29 @@ +--- src/zdict.c.orig 2013-04-30 11:04:05.000000000 +0900 ++++ src/zdict.c 2013-04-30 11:04:34.000000000 +0900 +@@ -35,12 +35,9 @@ + os_ptr op = osp; + + check_type(*op, t_integer); +-#if arch_sizeof_int < arch_sizeof_long +- check_int_leu(*op, max_uint); +-#else + if (op->value.intval < 0) + return_error(e_rangecheck); +-#endif ++ + return dict_create((uint) op->value.intval, op); + } + +@@ -458,12 +455,8 @@ + check_type(*op1, t_dictionary); + check_dict_write(*op1); + check_type(*op, t_integer); +-#if arch_sizeof_int < arch_sizeof_long +- check_int_leu(*op, max_uint); +-#else + if (op->value.intval < 0) + return_error(e_rangecheck); +-#endif + new_size = (uint) op->value.intval; + if (dict_length(op - 1) > new_size) + return_error(e_dictfull); |