xed-ex1.c: fix limit check for 30 nibble inputs

Change-Id: I97c662215ee0b742e982f2002c55b455cbd3a2db
(cherry picked from commit 4342bc083f604c387db68794a3427622a9ea1872)
This commit is contained in:
Mark Charney
2017-03-02 16:10:11 -05:00
committed by Mark Charney
parent 3bb261de91
commit f303a550fa

View File

@@ -1,6 +1,6 @@
/*BEGIN_LEGAL
Copyright (c) 2016 Intel Corporation
Copyright (c) 2017 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -474,7 +474,7 @@ int main(int argc, char** argv) {
printf("Must supply even number of nibbles per substring\n");
exit(1);
}
if (len >= XED_MAX_INSTRUCTION_BYTES*2) {
if (len > XED_MAX_INSTRUCTION_BYTES*2) {
printf("Must supply at most 30 nibbles (15 bytes)\n");
exit(1);
}