diff --git a/build.gradle b/build.gradle index f50a601..2bc7b4d 100644 --- a/build.gradle +++ b/build.gradle @@ -8,9 +8,9 @@ plugins { * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -19,10 +19,10 @@ plugins { */ // Builds a Ghidra Extension for a given Ghidra installation. // -// An absolute path to the Ghidra installation directory must be supplied either by setting the +// An absolute path to the Ghidra installation directory must be supplied either by setting the // GHIDRA_INSTALL_DIR environment variable or Gradle project property: // -// > export GHIDRA_INSTALL_DIR= +// > export GHIDRA_INSTALL_DIR= // > gradle // // or @@ -52,7 +52,7 @@ else { //----------------------END "DO NOT MODIFY" SECTION------------------------------- repositories { - // Declare dependency repositories here. This is not needed if dependencies are manually + // Declare dependency repositories here. This is not needed if dependencies are manually // dropped into the lib/ directory. // See https://docs.gradle.org/current/userguide/declaring_repositories.html for more info. // Ex: mavenCentral() @@ -66,7 +66,7 @@ dependencies { implementation 'org.json:json:20250107' implementation "com.google.guava:guava:33.2.0-jre" implementation group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '3.5.2' - implementation('ai.reveng:sdk:3.82.2') + implementation('ai.reveng:sdk:3.86.3') testImplementation('junit:junit:4.13.1') testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.8.2") @@ -124,4 +124,4 @@ idea { downloadSources = true downloadJavadoc = true } -} \ No newline at end of file +} diff --git a/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java b/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java index 2eb9735..81fc899 100644 --- a/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java +++ b/src/main/java/ai/reveng/toolkit/ghidra/core/services/api/TypedApiImplementation.java @@ -130,7 +130,7 @@ public BinaryHash upload(Path binPath) throws FileNotFoundException, ApiExceptio if (!bin.exists()) throw new FileNotFoundException("Binary to upload does not exist"); - var result = this.analysisCoreApi.uploadFile(UploadFileType.fromValue("BINARY"), bin.getAbsolutePath(), null, true); + var result = this.analysisCoreApi.uploadFile(UploadFileType.fromValue("BINARY"), bin, null, true); return new BinaryHash(result.getData().getSha256Hash()); }