Hi, I found a memory allocation failure in parseSWF_DEFINESCENEANDFRAMEDATA, util/parser.c:3525,  in the latest version of libming.

Here is the reproducing command:
`./swftophp ./POC2`
[POC2.zip](https://github.com/libming/libming/files/10109788/POC2.zip)

Here is the reproduce trace reported by ASAN:
```
header indicates a filesize of 4278526758 but filesize is 73
<?php
$m = new SWFMovie(87);

ming_setscale(1.0);
$m->setRate(38.054688);
$m->setDimension(18813439, -524058784);

/* Note: xMin and/or yMin are not 0! */

$m->setFrames(46108);
/*Unknown block type 514*/
==2858==ERROR: AddressSanitizer failed to allocate 0x7d6f0000 (2104426496) bytes of LargeMmapAllocator (errno: 12)
==2858==Process memory map follows:
	0x000000400000-0x00000044a000	/home/chen/ifcut/swftophp/swftophp-asan
	0x00000064a000-0x00000064c000	/home/chen/ifcut/swftophp/swftophp-asan
	0x00000064c000-0x000000659000	/home/chen/ifcut/swftophp/swftophp-asan
	0x000000659000-0x00000065b000	[heap]
	0x00007fff7000-0x00008fff7000	
	0x00008fff7000-0x02008fff7000	
	0x02008fff7000-0x10007fff8000	
	0x600000000000-0x603000000000	
	0x603000000000-0x603000010000	
	0x603000010000-0x612000000000	
	0x612000000000-0x612000010000	
	0x612000010000-0x616000000000	
	0x616000000000-0x616000020000	
	0x616000020000-0x619000000000	
	0x619000000000-0x619000020000	
	0x619000020000-0x621000000000	
	0x621000000000-0x621000020000	
	0x621000020000-0x624000000000	
	0x624000000000-0x624000020000	
	0x624000020000-0x640000000000	
	0x640000000000-0x640000003000	
	0x7ffff3800000-0x7ffff3900000	
	0x7ffff3a00000-0x7ffff3b00000	
	0x7ffff3bf2000-0x7ffff5f44000	
	0x7ffff5f44000-0x7ffff5f5a000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff5f5a000-0x7ffff6159000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff6159000-0x7ffff615a000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff615a000-0x7ffff615d000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff615d000-0x7ffff635c000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635c000-0x7ffff635d000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635d000-0x7ffff635e000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635e000-0x7ffff6376000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6376000-0x7ffff6575000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6575000-0x7ffff6576000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6576000-0x7ffff6577000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6577000-0x7ffff657b000	
	0x7ffff657b000-0x7ffff673b000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff673b000-0x7ffff693b000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff693b000-0x7ffff693f000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff693f000-0x7ffff6941000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff6941000-0x7ffff6945000	
	0x7ffff6945000-0x7ffff6960000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6960000-0x7ffff6b5f000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b5f000-0x7ffff6b60000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b60000-0x7ffff6b61000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b61000-0x7ffff6c69000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6c69000-0x7ffff6e68000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e68000-0x7ffff6e69000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e69000-0x7ffff6e6a000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e6a000-0x7ffff6f5e000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff6f5e000-0x7ffff715e000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff715e000-0x7ffff7161000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff7161000-0x7ffff7162000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff7162000-0x7ffff7dd7000	
	0x7ffff7dd7000-0x7ffff7dfd000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7fa2000-0x7ffff7fd9000	
	0x7ffff7fdc000-0x7ffff7fe0000	
	0x7ffff7fe2000-0x7ffff7ff7000	
	0x7ffff7ff7000-0x7ffff7ffa000	[vvar]
	0x7ffff7ffa000-0x7ffff7ffc000	[vdso]
	0x7ffff7ffc000-0x7ffff7ffd000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7ffd000-0x7ffff7ffe000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7ffe000-0x7ffff7fff000	
	0x7ffffffdd000-0x7ffffffff000	[stack]
	0xffffffffff600000-0xffffffffff601000	[vsyscall]
==2858==End of process memory map.
==2858==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_posix.cc:121 "(("unable to mmap" && 0)) != (0)" (0x0, 0x0)
    #0 0x7ffff6f0a631  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa0631)
    #1 0x7ffff6f0f5e3 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa55e3)
    #2 0x7ffff6f17611  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xad611)
    #3 0x7ffff6e8cc0c  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x22c0c)
    #4 0x7ffff6f025d2 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x985d2)
    #5 0x430a0e in parseSWF_DEFINESCENEANDFRAMEDATA /home/chen/libming/util/parser.c:3525
    #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)
    #10 0x401a18 in _start (/home/chen/ifcut/swftophp/swftophp-asan+0x401a18)
```

Memory allocation failure in parseSWF_DEFINESCENEANDFRAMEDATA
This is a GitHub Issue
repo:libming
owner:libming
Title : Memory allocation failure in parseSWF_DEFINESCENEANDFRAMEDATA
Issue date:

--- start body ---
Hi, I found a memory allocation failure in parseSWF_DEFINESCENEANDFRAMEDATA, util/parser.c:3525,  in the latest version of libming.

Here is the reproducing command:
`./swftophp ./POC2`
[POC2.zip](https://github.com/libming/libming/files/10109788/POC2.zip)

Here is the reproduce trace reported by ASAN:
```
header indicates a filesize of 4278526758 but filesize is 73
<?php
$m = new SWFMovie(87);

ming_setscale(1.0);
$m->setRate(38.054688);
$m->setDimension(18813439, -524058784);

/* Note: xMin and/or yMin are not 0! */

$m->setFrames(46108);
/*Unknown block type 514*/
==2858==ERROR: AddressSanitizer failed to allocate 0x7d6f0000 (2104426496) bytes of LargeMmapAllocator (errno: 12)
==2858==Process memory map follows:
	0x000000400000-0x00000044a000	/home/chen/ifcut/swftophp/swftophp-asan
	0x00000064a000-0x00000064c000	/home/chen/ifcut/swftophp/swftophp-asan
	0x00000064c000-0x000000659000	/home/chen/ifcut/swftophp/swftophp-asan
	0x000000659000-0x00000065b000	[heap]
	0x00007fff7000-0x00008fff7000	
	0x00008fff7000-0x02008fff7000	
	0x02008fff7000-0x10007fff8000	
	0x600000000000-0x603000000000	
	0x603000000000-0x603000010000	
	0x603000010000-0x612000000000	
	0x612000000000-0x612000010000	
	0x612000010000-0x616000000000	
	0x616000000000-0x616000020000	
	0x616000020000-0x619000000000	
	0x619000000000-0x619000020000	
	0x619000020000-0x621000000000	
	0x621000000000-0x621000020000	
	0x621000020000-0x624000000000	
	0x624000000000-0x624000020000	
	0x624000020000-0x640000000000	
	0x640000000000-0x640000003000	
	0x7ffff3800000-0x7ffff3900000	
	0x7ffff3a00000-0x7ffff3b00000	
	0x7ffff3bf2000-0x7ffff5f44000	
	0x7ffff5f44000-0x7ffff5f5a000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff5f5a000-0x7ffff6159000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff6159000-0x7ffff615a000	/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x7ffff615a000-0x7ffff615d000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff615d000-0x7ffff635c000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635c000-0x7ffff635d000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635d000-0x7ffff635e000	/lib/x86_64-linux-gnu/libdl-2.23.so
	0x7ffff635e000-0x7ffff6376000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6376000-0x7ffff6575000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6575000-0x7ffff6576000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6576000-0x7ffff6577000	/lib/x86_64-linux-gnu/libpthread-2.23.so
	0x7ffff6577000-0x7ffff657b000	
	0x7ffff657b000-0x7ffff673b000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff673b000-0x7ffff693b000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff693b000-0x7ffff693f000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff693f000-0x7ffff6941000	/lib/x86_64-linux-gnu/libc-2.23.so
	0x7ffff6941000-0x7ffff6945000	
	0x7ffff6945000-0x7ffff6960000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6960000-0x7ffff6b5f000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b5f000-0x7ffff6b60000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b60000-0x7ffff6b61000	/usr/local/lib/libz.so.1.2.11
	0x7ffff6b61000-0x7ffff6c69000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6c69000-0x7ffff6e68000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e68000-0x7ffff6e69000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e69000-0x7ffff6e6a000	/lib/x86_64-linux-gnu/libm-2.23.so
	0x7ffff6e6a000-0x7ffff6f5e000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff6f5e000-0x7ffff715e000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff715e000-0x7ffff7161000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff7161000-0x7ffff7162000	/usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
	0x7ffff7162000-0x7ffff7dd7000	
	0x7ffff7dd7000-0x7ffff7dfd000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7fa2000-0x7ffff7fd9000	
	0x7ffff7fdc000-0x7ffff7fe0000	
	0x7ffff7fe2000-0x7ffff7ff7000	
	0x7ffff7ff7000-0x7ffff7ffa000	[vvar]
	0x7ffff7ffa000-0x7ffff7ffc000	[vdso]
	0x7ffff7ffc000-0x7ffff7ffd000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7ffd000-0x7ffff7ffe000	/lib/x86_64-linux-gnu/ld-2.23.so
	0x7ffff7ffe000-0x7ffff7fff000	
	0x7ffffffdd000-0x7ffffffff000	[stack]
	0xffffffffff600000-0xffffffffff601000	[vsyscall]
==2858==End of process memory map.
==2858==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_posix.cc:121 "(("unable to mmap" && 0)) != (0)" (0x0, 0x0)
    #0 0x7ffff6f0a631  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa0631)
    #1 0x7ffff6f0f5e3 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa55e3)
    #2 0x7ffff6f17611  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xad611)
    #3 0x7ffff6e8cc0c  (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x22c0c)
    #4 0x7ffff6f025d2 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x985d2)
    #5 0x430a0e in parseSWF_DEFINESCENEANDFRAMEDATA /home/chen/libming/util/parser.c:3525
    #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)
    #10 0x401a18 in _start (/home/chen/ifcut/swftophp/swftophp-asan+0x401a18)
```

--- end body ---

A memory allocation failure in the parseSWF_DEFINESCENEANDFRAMEDATA function of libming can lead to a Denial of Service (DoS) when processing specially crafted SWF files. The issue arises due to an incorrect header indicating a larger file size than the actual file, which causes the program to attempt to allocate an excessive amount of memory, resulting in a crash.