Skip to content

Commit 2041a4e

Browse files
authored
Merge pull request #152 from RevEngAI/feat-PLU-211
feat: support for latest Ghidra
2 parents 632aa76 + 13fb6f7 commit 2041a4e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16+
- ghidra: "11.4.3"
17+
java: "21"
18+
- ghidra: "11.4.2"
19+
java: "21"
1620
- ghidra: "11.4.1"
1721
java: "21"
1822
- ghidra: "11.4"

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include:
18+
- ghidra: "11.4.3"
19+
java: "21"
1820
- ghidra: "11.4.2"
1921
java: "21"
2022
- ghidra: "11.4.1"

src/main/java/ai/reveng/toolkit/ghidra/binarysimilarity/ui/aidecompiler/AIDecompilationdWindow.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ public JComponent getComponent() {
143143

144144

145145
public void setDisplayedValuesBasedOnStatus(Function function, AIDecompilationStatus status) {
146-
setVisible(true);
147146
this.function = function;
148147
if (status.status().equals("success")) {
149148
setCode(status.decompilation());
@@ -155,7 +154,6 @@ public void setDisplayedValuesBasedOnStatus(Function function, AIDecompilationSt
155154
}
156155

157156
private void setCode(String code) {
158-
setVisible(true);
159157
String text = code;
160158
textArea.setText(text);
161159
}

src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public TypedApiImplementation(String baseUrl, String apiKey) {
109109
headers = new HashMap<>();
110110
headers.put("Authorization", apiKey);
111111
headers.put("User-Agent", userAgent);
112+
headers.put("X-RevEng-Application", userAgent);
112113

113114
// TODO: Actually implement support for some encodings and then accept them
114115
// headers.put("Accept-Encoding", "gzip, deflate, br");

0 commit comments

Comments
 (0)