diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-12 13:50:37 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-12 13:54:42 -0700 |
commit | 987dc9c9dbe36601789aae4552a7c0ceb1ca0852 (patch) | |
tree | 75eb0e85bd86584ff82263de70c32a8781bdb643 /nasmlib | |
parent | d49e6dc08e5625ea393cfc7e17a99f66f41840e3 (diff) | |
download | nasm-987dc9c9dbe36601789aae4552a7c0ceb1ca0852.tar.gz |
Make any execution limit configurable, add eval limit
Make any "deadman"-style execution limit configurable on the command
line (--limit-foo) or via a pragma (%pragma limit foo).
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'nasmlib')
-rw-r--r-- | nasmlib/readnum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nasmlib/readnum.c b/nasmlib/readnum.c index e5b1cd69..47080884 100644 --- a/nasmlib/readnum.c +++ b/nasmlib/readnum.c @@ -65,9 +65,9 @@ static int radix_letter(char c) } } -int64_t readnum(char *str, bool *error) +int64_t readnum(const char *str, bool *error) { - char *r = str, *q; + const char *r = str, *q; int32_t pradix, sradix, radix; int plen, slen, len; uint64_t result, checklimit; |