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

SEGV in parseABC_METHOD_INFO in parser.c:3238 #140

Open
macromachine opened this issue May 5, 2018 · 0 comments
Open

SEGV in parseABC_METHOD_INFO in parser.c:3238 #140

macromachine opened this issue May 5, 2018 · 0 comments

Comments

@macromachine
Copy link

The command to trigger the segfault
./listswf $POC
The gdb dump:

Program received signal SIGSEGV, Segmentation fault.
0x080af993 in parseABC_METHOD_INFO (method=0x5c795148, f=0x80be008) at parser.c:3238
3238	    method->ParamType[i] = readEncUInt30(f);
(gdb) bt
#0  0x080af993 in parseABC_METHOD_INFO (method=0x5c795148, f=0x80be008) at parser.c:3238
#1  0x080b1821 in parseABC_FILE (abcFile=0x80bf178, f=0x80be008) at parser.c:3438
#2  0x080b279a in parseSWF_DOABC (f=0x80be008, length=22) at parser.c:3485
#3  0x08064227 in blockParse (f=0x0, length=268435456, header=SWF_DOABC) at blocktypes.c:145
#4  0x0805d5fd in readMovie (f=0x80be008) at main.c:269
#5  main (argc=<optimized out>, argv=<optimized out>) at main.c:354
(gdb) p i
$1 = 0
(gdb) ptype method
type = struct ABC_METHOD_INFO {
    U30 ParamCount;
    U30 ReturnType;
    U30 *ParamType;
    U30 Name;
    UI8 Flags;
    struct ABC_OPTION_INFO Options;
    struct ABC_PARAM_INFO ParamNames;
} *
(gdb) p method
$2 = (struct ABC_METHOD_INFO *) 0x5c795148
(gdb) p method->ParamType
$3 = (U30 *) 0x0

poc.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