==23822==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000007d0 at pc 0x00000052ba7d bp 0x7ffe1407fcd0 sp 0x7ffe1407fcc8
READ of size 1 at 0x6140000007d0 thread T0
    #0 0x52ba7c in decompileAction /libming-ming-0_4_8/util/decompile.c:3120:37
    #1 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #2 0x545509 in decompileSETTARGET /libming-ming-0_4_8/util/decompile.c:3076:3
    #3 0x52d350 in decompileAction /libming-ming-0_4_8/util/decompile.c:3372:10
    #4 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #5 0x5378c8 in decompileIF /libming-ming-0_4_8/util/decompile.c:2270:3
    #6 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #7 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #8 0x53c263 in decompileIF /libming-ming-0_4_8/util/decompile.c:2562:4
    #9 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #10 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #11 0x53c263 in decompileIF /libming-ming-0_4_8/util/decompile.c:2562:4
    #12 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #13 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #14 0x546dd6 in decompile5Action /libming-ming-0_4_8/util/decompile.c:3423:2
    #15 0x51f261 in outputSWF_DOACTION /libming-ming-0_4_8/util/outputscript.c:1548:29
    #16 0x51c3c9 in outputBlock /libming-ming-0_4_8/util/outputscript.c:2079:4
    #17 0x5287fe in readMovie /libming-ming-0_4_8/util/main.c:277:4
    #18 0x526ddc in main /libming-ming-0_4_8/util/main.c:350:2
    #19 0x7f4fc814e82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
    #20 0x419ed8 in _start (/libming-ming-0_4_8/util/swftophp+0x419ed8)

0x6140000007d0 is located 0 bytes to the right of 400-byte region [0x614000000640,0x6140000007d0)
allocated by thread T0 here:
    #0 0x4d2750 in calloc /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74
    #1 0x555ba2 in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1062:43
    #2 0x55615a in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1075:4
    #3 0x55615a in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1075:4
    #4 0x5802c7 in parseSWF_DOACTION /libming-ming-0_4_8/util/parser.c:2434:7
    #5 0x5298b5 in blockParse /libming-ming-0_4_8/util/blocktypes.c:145:14
    #6 0x5285bb in readMovie /libming-ming-0_4_8/util/main.c:265:11
    #7 0x526ddc in main /libming-ming-0_4_8/util/main.c:350:2
#8 0x7f4fc814e82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291

SUMMARY: AddressSanitizer: heap-buffer-overflow /libming-ming-0_4_8/util/decompile.c:3120:37 in decompileAction
Shadow bytes around the buggy address:
  0x0c287fff80a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c287fff80b0: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  0x0c287fff80c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c287fff80d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff80e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c287fff80f0: 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa
  0x0c287fff8100: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c287fff8110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff8120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff8130: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
  0x0c287fff8140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==23822==ABORTING
Heap Buffer Overflow in function decompileAction decompile.c 3120
This is a GitHub Issue
repo:libming
owner:libming
Title : Heap Buffer Overflow in function decompileAction decompile.c 3120
Issue date:

--- start body ---
==23822==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000007d0 at pc 0x00000052ba7d bp 0x7ffe1407fcd0 sp 0x7ffe1407fcc8
READ of size 1 at 0x6140000007d0 thread T0
    #0 0x52ba7c in decompileAction /libming-ming-0_4_8/util/decompile.c:3120:37
    #1 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #2 0x545509 in decompileSETTARGET /libming-ming-0_4_8/util/decompile.c:3076:3
    #3 0x52d350 in decompileAction /libming-ming-0_4_8/util/decompile.c:3372:10
    #4 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #5 0x5378c8 in decompileIF /libming-ming-0_4_8/util/decompile.c:2270:3
    #6 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #7 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #8 0x53c263 in decompileIF /libming-ming-0_4_8/util/decompile.c:2562:4
    #9 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #10 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #11 0x53c263 in decompileIF /libming-ming-0_4_8/util/decompile.c:2562:4
    #12 0x52c6be in decompileAction /libming-ming-0_4_8/util/decompile.c:3242:10
    #13 0x5471d0 in decompileActions /libming-ming-0_4_8/util/decompile.c:3401:6
    #14 0x546dd6 in decompile5Action /libming-ming-0_4_8/util/decompile.c:3423:2
    #15 0x51f261 in outputSWF_DOACTION /libming-ming-0_4_8/util/outputscript.c:1548:29
    #16 0x51c3c9 in outputBlock /libming-ming-0_4_8/util/outputscript.c:2079:4
    #17 0x5287fe in readMovie /libming-ming-0_4_8/util/main.c:277:4
    #18 0x526ddc in main /libming-ming-0_4_8/util/main.c:350:2
    #19 0x7f4fc814e82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291
    #20 0x419ed8 in _start (/libming-ming-0_4_8/util/swftophp+0x419ed8)

0x6140000007d0 is located 0 bytes to the right of 400-byte region [0x614000000640,0x6140000007d0)
allocated by thread T0 here:
    #0 0x4d2750 in calloc /fuzzer/build/llvm_tools/llvm-4.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74
    #1 0x555ba2 in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1062:43
    #2 0x55615a in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1075:4
    #3 0x55615a in parseSWF_ACTIONRECORD /libming-ming-0_4_8/util/parser.c:1075:4
    #4 0x5802c7 in parseSWF_DOACTION /libming-ming-0_4_8/util/parser.c:2434:7
    #5 0x5298b5 in blockParse /libming-ming-0_4_8/util/blocktypes.c:145:14
    #6 0x5285bb in readMovie /libming-ming-0_4_8/util/main.c:265:11
    #7 0x526ddc in main /libming-ming-0_4_8/util/main.c:350:2
#8 0x7f4fc814e82f in __libc_start_main /build/glibc-LK5gWL/glibc-2.23/csu/../csu/libc-start.c:291

SUMMARY: AddressSanitizer: heap-buffer-overflow /libming-ming-0_4_8/util/decompile.c:3120:37 in decompileAction
Shadow bytes around the buggy address:
  0x0c287fff80a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c287fff80b0: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  0x0c287fff80c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c287fff80d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff80e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c287fff80f0: 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa
  0x0c287fff8100: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x0c287fff8110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff8120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c287fff8130: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
  0x0c287fff8140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==23822==ABORTING
--- end body ---
