Skip to content

Clean up missed add minus values in decompiled result #29

@Escapingbug

Description

@Escapingbug

Describe the bug
The binary add should not be applied to minus value. If so, we should use sub to get a cleaner result.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
The binary add should not be applied to minus value. If so, we should use sub to get a cleaner result.

Screenshots
image
This should not happen.

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.

Environment (please complete the following information):

  • OS: [e.g. macOS 10.14.2]
  • Java Version: [e.g. 11.0]
  • Ghidra Version: [e.g. 9.1.2]
  • Ghidra Origin: [e.g. official ghidra-sre.org distro, third party distro, locally built]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpstreamThis issue also applies to upstream ghidra. When solving, we should better care about them.bugSomething isn't workingdifficulty: mediumrequires some internal insights of the project itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions