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

Memory Leak in newVar, util/decompile.c:567 #252

Open
MaggieCwj opened this issue Nov 29, 2022 · 0 comments
Open

Memory Leak in newVar, util/decompile.c:567 #252

MaggieCwj opened this issue Nov 29, 2022 · 0 comments

Comments

@MaggieCwj
Copy link

Hi, there.

There is a memory leak in the latest version of libming which causes a huge momery information leakage.

Here is the reproducing command:
swftophp POC1

POC1.zip

Here is the reproduce trace reported by ASAN:

=================================================================
==45210==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 142868480 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f0279a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
    #1 0x40da65 in dcinit /home/chen/libming/util/decompile.c:85
    #2 0x4185f6 in decompile5Action /home/chen/libming/util/decompile.c:3550
    #3 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #4 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #5 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #6 0x40c051 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 1118480 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x428f8c in parseSWF_DOACTION /home/chen/libming/util/parser.c:2435
    #2 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #3 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #4 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #5 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 111616 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41865f in decompile5Action /home/chen/libming/util/decompile.c:3555
    #3 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #4 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #5 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #6 0x40c051 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 111616 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41864f in decompile5Action /home/chen/libming/util/decompile.c:3554
    #3 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #4 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #5 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #6 0x40c051 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 111616 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x418638 in decompile5Action /home/chen/libming/util/decompile.c:3553
    #3 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #4 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #5 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #6 0x40c051 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 111616 byte(s) in 3488 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41866f in decompile5Action /home/chen/libming/util/decompile.c:3556
    #3 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #4 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #5 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #6 0x40c051 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 1920 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417ba0 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2873
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #9 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #10 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #11 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #12 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #13 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #14 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #15 0x40c051 in main /home/chen/libming/util/main.c:354
    #16 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 1920 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417ba0 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2873
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #6 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #7 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #8 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #9 0x40c051 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 1920 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417ba0 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2873
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #9 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #10 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #11 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #12 0x40c051 in main /home/chen/libming/util/main.c:354
    #13 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 105 byte(s) in 5 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x4314a9 in readBytes /home/chen/libming/util/read.c:252
    #2 0x430e63 in parseSWF_UNKNOWNBLOCK /home/chen/libming/util/parser.c:3555
    #3 0x40c3e1 in blockParse /home/chen/libming/util/blocktypes.c:148
    #4 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #5 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #6 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417613 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2837
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #9 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #10 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #11 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #12 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #13 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #14 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #15 0x40c051 in main /home/chen/libming/util/main.c:354
    #16 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41778b in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2840
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #9 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #10 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #11 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #12 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #13 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #14 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #15 0x40c051 in main /home/chen/libming/util/main.c:354
    #16 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417596 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2836
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #9 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #10 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #11 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #12 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #13 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #14 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #15 0x40c051 in main /home/chen/libming/util/main.c:354
    #16 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417596 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2836
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #6 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #7 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #8 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #9 0x40c051 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417613 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2837
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #6 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #7 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #8 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #9 0x40c051 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41778b in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2840
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #6 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #7 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #8 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #9 0x40c051 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417596 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2836
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #9 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #10 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #11 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #12 0x40c051 in main /home/chen/libming/util/main.c:354
    #13 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x417613 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2837
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #9 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #10 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #11 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #12 0x40c051 in main /home/chen/libming/util/main.c:354
    #13 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x40e62f in newVar /home/chen/libming/util/decompile.c:567
    #2 0x41778b in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2840
    #3 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #4 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #5 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #6 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #7 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #8 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #9 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #10 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #11 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #12 0x40c051 in main /home/chen/libming/util/main.c:354
    #13 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 18944 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x43164c in readString /home/chen/libming/util/read.c:290
    #2 0x41cf91 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:939
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #5 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #6 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #7 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #8 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #9 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 6400 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x43164c in readString /home/chen/libming/util/read.c:290
    #2 0x41cf6c in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:938
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #5 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #6 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #7 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #8 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #9 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #10 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 2880 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x41ef1e in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1221
    #2 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #3 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #4 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #5 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #6 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 480 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x41ef1e in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1221
    #2 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #3 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #4 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #5 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #6 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 300 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x417b00 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2866
    #2 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #3 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #4 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #5 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #6 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #7 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #8 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #9 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #10 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #11 0x40c051 in main /home/chen/libming/util/main.c:354
    #12 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 300 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x417b00 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2866
    #2 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #3 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #4 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #5 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #6 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #7 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #8 0x40c051 in main /home/chen/libming/util/main.c:354
    #9 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 300 byte(s) in 60 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x417b00 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2866
    #2 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #3 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #4 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #5 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #6 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #7 0x417c65 in decompileDEFINEFUNCTION /home/chen/libming/util/decompile.c:2877
    #8 0x414f82 in decompileAction /home/chen/libming/util/decompile.c:3395
    #9 0x416735 in decompileActions /home/chen/libming/util/decompile.c:3535
    #10 0x418680 in decompile5Action /home/chen/libming/util/decompile.c:3558
    #11 0x407005 in outputSWF_DOACTION /home/chen/libming/util/outputscript.c:1551
    #12 0x40ae6a in outputBlock /home/chen/libming/util/outputscript.c:2083
    #13 0x40c051 in readMovie /home/chen/libming/util/main.c:281
    #14 0x40c051 in main /home/chen/libming/util/main.c:354
    #15 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x43157d in readString /home/chen/libming/util/read.c:272
    #2 0x41e718 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1193
    #3 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #4 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #5 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #6 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x43157d in readString /home/chen/libming/util/read.c:272
    #2 0x41e718 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1193
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #5 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #6 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #7 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #8 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x43157d in readString /home/chen/libming/util/read.c:272
    #2 0x41e718 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1193
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #5 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #6 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #7 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #8 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #9 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 240 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x41ef1e in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1221
    #2 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #5 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #6 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #7 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #8 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x41ecd1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1210
    #2 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #3 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #4 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #5 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #6 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x41ecd1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1210
    #2 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #3 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #4 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #5 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #6 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #7 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

Indirect leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x41ecd1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1210
    #2 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #3 0x41eed1 in parseSWF_ACTIONRECORD /home/chen/libming/util/parser.c:1220
    #4 0x428f42 in parseSWF_DOACTION /home/chen/libming/util/parser.c:2434
    #5 0x40c3ce in blockParse /home/chen/libming/util/blocktypes.c:145
    #6 0x40bfb0 in readMovie /home/chen/libming/util/main.c:269
    #7 0x40bfb0 in main /home/chen/libming/util/main.c:354
    #8 0x7ffff659b83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)

SUMMARY: AddressSanitizer: 144470192 byte(s) leaked in 21313 allocation(s).
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