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

Null pointer dereference in getInt (decompile.c 477) #164

JsHuang opened this Issue Sep 21, 2018 · 0 comments


None yet
1 participant
Copy link

JsHuang commented Sep 21, 2018

A null pointer dereference bug was found in function getInt (decompile.c 477)

This is not the same issue with #133

Program received signal SIGSEGV, Segmentation fault.
0x0000000000408606 in getInt (act=0x0) at decompile.c:477
477             switch( act->Type ) 
(gdb) p act->Type
Cannot access memory at address 0x10
(gdb) p act
$3 = (struct SWF_ACTIONPUSHPARAM *) 0x0
(gdb) bt
#0  0x0000000000408606 in getInt (act=0x0) at decompile.c:477
#1  0x0000000000408668 in getInt (act=0x631450) at decompile.c:484
#2  0x000000000040b0b4 in decompileGETPROPERTY (n=11, actions=0x6337c0, maxn=14) at decompile.c:1477
#3  0x0000000000410e0b in decompileAction (n=11, actions=0x6337c0, maxn=14) at decompile.c:3260
#4  0x00000000004114dd in decompileActions (n=14, actions=0x6337c0, indent=0) at decompile.c:3494
#5  0x00000000004115df in decompile5Action (n=14, actions=0x6337c0, indent=0) at decompile.c:3517
#6  0x00000000004055e1 in outputSWF_DOACTION (pblock=0x631250) at outputscript.c:1551
#7  0x0000000000406907 in outputBlock (type=12, blockp=0x631250, stream=0x630010) at outputscript.c:2083
#8  0x000000000040737f in readMovie (f=0x630010) at main.c:281
#9  0x00000000004076cb in main (argc=2, argv=0x7fffffffe508) at main.c:354

to reproduce it ,run swftopython with segmentaion_fault_decompile_477

./swftopython segmentaion_fault_decompile_477

credit: ADLab of Venustech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment