mirror of
https://github.com/RPCSX/xed.git
synced 2026-01-31 01:05:17 +01:00
xed-ex1.c: fix limit check for 30 nibble inputs
Change-Id: I97c662215ee0b742e982f2002c55b455cbd3a2db (cherry picked from commit 4342bc083f604c387db68794a3427622a9ea1872)
This commit is contained in:
committed by
Mark Charney
parent
3bb261de91
commit
f303a550fa
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user