Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: Fixing bitwise check values in NE InformationBlock.java (Closes #9579)

Ryan Kurtz2b10e2fb597a
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java
index 32dfcd6fd1..b3b3894da7 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java
@@ -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");
}