diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 18:16:37 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 18:16:37 -0700 |
commit | a6358096202e1b3bec58decabaad007f4957392c (patch) | |
tree | f1af30312ae2a4e8092db58e87d1f0bd055ec2d2 | |
parent | d91519a107d276d1ba891c82550f67b5808451c7 (diff) | |
download | nasm-a6358096202e1b3bec58decabaad007f4957392c.tar.gz |
list_option_mask(): return 0 (empty mask) for < '0'
Missing limit check at the bottom of the ASCII range.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | asm/listing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/listing.h b/asm/listing.h index 19cdbb48..21c46775 100644 --- a/asm/listing.h +++ b/asm/listing.h @@ -149,6 +149,8 @@ static inline const_func uint64_t list_option_mask(unsigned char x) if (x > '9') return 0; x = x - '0' + 26*2; + } else { + return 0; } return UINT64_C(1) << x; |