Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un-assigned value for decompiled switch-case statement #4582

Open
yangzao opened this issue Apr 17, 2024 · 0 comments
Open

Un-assigned value for decompiled switch-case statement #4582

yangzao opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something is broken needs-triage Issue has yet to be looked at by a maintainer

Comments

@yangzao
Copy link

yangzao commented Apr 17, 2024

Description

Angr introduces an un-assigned variable for decompiled switch-case statements.

int tmp_10;
...
else if ((int)tmp_10 == 1)
   {
        v5 = 456;
    }
    else if ((int)tmp_10 != 2)
    {
        v4 = 9876543;
    }

Steps to reproduce the bug

Files:
1.zip

  1. Compile orig.c with Clang or Intel ICX compiler and -O0.
  2. Decompile the compiled program with angr.
  3. In the decompiled code, go to func_1() and the issue is at the if-else statement (decompiled from the switch-case statement).

Environment

No response

Additional context

No response

@yangzao yangzao added bug Something is broken needs-triage Issue has yet to be looked at by a maintainer labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken needs-triage Issue has yet to be looked at by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant