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

SIGSEGV in function newVar_N at decompile.c:714 #159

Open
JsHuang opened this issue Sep 21, 2018 · 0 comments
Open

SIGSEGV in function newVar_N at decompile.c:714 #159

JsHuang opened this issue Sep 21, 2018 · 0 comments

Comments

@JsHuang
Copy link

JsHuang commented Sep 21, 2018

A Segmentation fault bug was found in function newVar_N() (decompile.c:714)

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106	../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x0000000000408ff0 in newVar_N (var=0x0, var2=0x425668 "[", var3=0x0, var4=0x4259f8 "](", pop_counter=0, 
    final=0x42502a ")") at decompile.c:714
#2  0x000000000040feb3 in decompileCALLMETHOD (n=23, actions=0x631500, maxn=24) at decompile.c:2937
#3  0x0000000000411190 in decompileAction (n=23, actions=0x631500, maxn=24) at decompile.c:3360
#4  0x0000000000411546 in decompileActions (n=24, actions=0x631500, indent=0) at decompile.c:3494
#5  0x0000000000411648 in decompile5Action (n=24, actions=0x631500, indent=0) at decompile.c:3517
#6  0x0000000000403528 in outputSWF_DEFINEBUTTON2 (pblock=0x631250) at outputscript.c:931
#7  0x0000000000406970 in outputBlock (type=34, blockp=0x631250, stream=0x630010) at outputscript.c:2083
#8  0x00000000004073e8 in readMovie (f=0x630010) at main.c:281
#9  0x0000000000407734 in main (argc=2, argv=0x7fffffffe448) at main.c:354

to reproduce it ,run swftophp with segmentaion_fault_decompile_714

./swftophp segmentaion_fault_decompile_714

poc file https://github.com/JsHuang/libming-poc/blob/master/swftophp/segmentaion_fault_decompile_714

credit: ADLab of Venustech

segmentaion_fault_decompile_714.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant