You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Description:
Before this code snippet, variable i_l is 2, so case 2 should be executed.
In the decompiled code, the first if body comes from the original case 2 body, so the condition is supposed to be _stack._offset_12 == 2. But it is recovered as == 1, so the if body is not reached.
Instead, the second if condition is met and the code corresponding to original default body is executed.
Files: 1.zip
(original code orig.c, original exec orig_exec, PTML file dec.ptml, and decompiled code dec_default.c are included)
Reproduce the issue:
compiled orig.c with GCC and -O0.
decompile the program with rev.ng into C code.
this issue is in func_1() near the end of decompiled code.
Original code:
Decompiled code:
Description:
Before this code snippet, variable
i_lis2, socase 2should be executed.In the decompiled code, the first
ifbody comes from the originalcase 2body, so the condition is supposed to be_stack._offset_12 == 2. But it is recovered as== 1, so theifbody is not reached.Instead, the second
ifcondition is met and the code corresponding to originaldefaultbody is executed.Files:
1.zip
(original code
orig.c, original execorig_exec, PTML filedec.ptml, and decompiled codedec_default.care included)Reproduce the issue:
orig.cwith GCC and -O0.