mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
GP-0: Fixing bitwise check values in NE InformationBlock.java
(Closes #9579)
This commit is contained in:
@@ -148,19 +148,23 @@ public class InformationBlock {
|
||||
/**
|
||||
* Supports long names
|
||||
*/
|
||||
public final static byte OTHER_FLAGS_SUPPORTS_LONG_NAMES = (byte) 0x00;
|
||||
public final static byte OTHER_FLAGS_SUPPORTS_LONG_NAMES = (byte) 0x01;
|
||||
/**
|
||||
* Protected mode
|
||||
*/
|
||||
public final static byte OTHER_FLAGS_PROTECTED_MODE = (byte) 0x01;
|
||||
public final static byte OTHER_FLAGS_PROTECTED_MODE = (byte) 0x02;
|
||||
/**
|
||||
* Proportional font
|
||||
*/
|
||||
public final static byte OTHER_FLAGS_PROPORTIONAL_FONT = (byte) 0x02;
|
||||
public final static byte OTHER_FLAGS_PROPORTIONAL_FONT = (byte) 0x04;
|
||||
/**
|
||||
* Gangload area
|
||||
*/
|
||||
public final static byte OTHER_FLAGS_GANGLOAD_AREA = (byte) 0x04;
|
||||
public final static byte OTHER_FLAGS_GANGLOAD_AREA = (byte) 0x08;
|
||||
/**
|
||||
* WLO application
|
||||
*/
|
||||
public final static byte OTHER_FLAGS_WLO_APP = (byte) 0x80;
|
||||
|
||||
private short ne_magic; // Magic number
|
||||
private byte ne_ver; // Version number
|
||||
@@ -333,6 +337,9 @@ public class InformationBlock {
|
||||
*/
|
||||
public String getOtherFlagsAsString() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
if ((ne_flagsothers & OTHER_FLAGS_WLO_APP) != 0) {
|
||||
buffer.append(TAB + "WLO Application" + "\n");
|
||||
}
|
||||
if ((ne_flagsothers & OTHER_FLAGS_GANGLOAD_AREA) != 0) {
|
||||
buffer.append(TAB + "Gangload Area" + "\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user