GithubHelp home page GithubHelp logo

Comments (12)

TSRBerry avatar TSRBerry commented on May 17, 2024

I don't see any reference to SwitchLoader in the stacktrace. Next time please, copy and paste them into your issue in a code block, that makes it a lot easier to work with them.

It definitely looks odd, could you provide more information? What binary are you analyzing? Which Switch-Loader version are you using? Was this binary analyzed using an older Ghidra version before?

from ghidra-switch-loader.

StevensND avatar StevensND commented on May 17, 2024

I don't see any reference to SwitchLoader in the stacktrace. Next time please, copy and paste them into your issue in a code block, that makes it a lot easier to work with them.

It definitely looks odd, could you provide more information? What binary are you analyzing? Which Switch-Loader version are you using? Was this binary analyzed using an older Ghidra version before?

Right now I'm analyzing another game. I will copy the errors into a .txt and upload it later.

I'm analyzing a main file extracted from the game. Switch-Loader version is the one compatible with Ghidra 11.0 (I just merged the changes you did and compile it by myself).

When I used Ghidra 10.4 I didn't have these issues. So could be an issue with Ghidra 11.0?. Could you give me your Switch-Loader 11.0 version compiled to test?. Thanks.

from ghidra-switch-loader.

StevensND avatar StevensND commented on May 17, 2024

Here's the pastebin with the errors that I'm getting.

from ghidra-switch-loader.

TSRBerry avatar TSRBerry commented on May 17, 2024

What game are you analyzing? Could you use hactool to get the SDK version of the the nca file containing the main nso that you are analyzing?

from ghidra-switch-loader.

TSRBerry avatar TSRBerry commented on May 17, 2024

Nevermind, I'm able to reproduce this when I try to analyze the main nso of "Super Mario Bros. Wonder".
I'll try to figure it out, but I'm currently pretty busy, so it might take some time.

from ghidra-switch-loader.

TSRBerry avatar TSRBerry commented on May 17, 2024

This is a Ghidra issue and was fixed just 2 weeks ago: https://github.com/NationalSecurityAgency/ghidra/blob/85d276bce0bb2055c5556825afc810d3163ed15f/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/protorules/HomogeneousAggregate.java#L71-L74

The current release does not check if the result is empty and tries to access index 0 unconditionally:

if (!DatatypeFilter.extractPrimitives(dt, MAX_PRIMITIVES, null, res)) {
    return false;
}
DataType base = res.get(0);

I assume the next release will contain this fix.

from ghidra-switch-loader.

StevensND avatar StevensND commented on May 17, 2024

What game are you analyzing? Could you use hactool to get the SDK version of the the nca file containing the main nso that you are analyzing?

It happens with all games that I analyzed using Ghidra 11.

So it seems to be a Ghidra 11 issue then?.

Then I guess I have to stay at 10.4 for now.

from ghidra-switch-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.