summaryrefslogtreecommitdiff
path: root/libcpu/i386_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu/i386_data.h')
-rw-r--r--libcpu/i386_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/i386_data.h b/libcpu/i386_data.h
index b8a34c3e..06356b8a 100644
--- a/libcpu/i386_data.h
+++ b/libcpu/i386_data.h
@@ -1336,7 +1336,7 @@ FCT_sel (struct output_data *d)
{
assert (d->opoff1 % 8 == 0);
assert (d->opoff1 / 8 == 5);
- if (*d->param_start + 2 > d->end)
+ if (*d->param_start + 2 >= d->end)
return -1;
*d->param_start += 2;
uint16_t absval = read_2ubyte_unaligned (&d->data[5]);