GP-0 corrected bounds check for instruction length override

This commit is contained in:
ghidra1 2023-09-26 13:25:48 -04:00
parent 6cd4fd80f7
commit 7e85ff1c0d

View File

@ -81,7 +81,7 @@ class SetLengthOverrideAction extends ListingContextAction {
}
}
if (maxLength == 1) {
if (maxLength == 0) {
// Assume we have an instruction whose length can't be changed
Msg.showError(this, null, "Length Override Error",
"Insufficient space to alter current length override of 1-byte");