mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-10-02 16:33:49 +00:00
GP-0 corrected bounds check for instruction length override
This commit is contained in:
parent
6cd4fd80f7
commit
7e85ff1c0d
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue