## Environment
Ubuntu 22.04.3 LTS
## Compiler
clang version 11.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
## Step to reproduce
```cd libming 
./autogen.sh
./configure --disable-shared --disable-freetype
cd util
./swftophp <PoC file>
```
## Contents of PoC file
```
Unzip the file below.
```
[PoC.zip](https://github.com/libming/libming/files/13644043/PoC.zip)
## Expected behavior 
Print error or warning messages handled within swftophp.
## Current behavior
```
<?php
$m = new SWFMovie(10);

ming_setscale(1.0);
$m->setRate(25.000000);
$m->setDimension(13000, 10000);
$m->setFrames(60);
/*Unknown block type 69*/

/* SWF_SETBACKGROUNDCOLOR */
$m->setBackground(0x00, 0x00, 0x00);

/* SWF_DEFINEBITSJPEG3 */

/* Bitmap 1 (jpeg3). To extract: */
/* swfextract -j 1 -o character1.jpg $swf */
$character1 = new SWFBitmap('character1.jpg');

/* SWF_DEFINESHAPE */

/* Shape 2 (TYPE=1, RECT=-995,995 -506,507)*/
$character2 = new SWFShape();
/*2 fillstyle(s)*/
/* BitmapID: 65535 */
$ character2_f0 = $character2->addBitmapFill($character65535,SWFFILL_NONSMOOTHED_CLIPPED_BITMAP);
$character2_f0->scaleTo(20.000000);
/* BitmapID: 1 */
$ character2_f1 = $character2->addBitmapFill($character1,SWFFILL_NONSMOOTHED_CLIPPED_BITMAP);
$character2_f1->scaleTo(18.425903, -18.425903);
$character2_f1->moveTo(-995, 507);
/*0 linestyles(s)*/
$character2->setLeftFill($character2_f1);
$character2->movePenTo(-995, -506);
$character2->drawLine(0, 1013);
$character2->drawLine(1990, 0);
$character2->drawLine(0, -1013);
$character2->drawLine(-1990, 0);

/* SWF_DEFINESPRITE */

	/*  MovieClip 3 */
$character3 = new SWFMovieClip(); /* 1 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_PLACEOBJECT2 */
$ i1 = $character3->add($character2);
$i1->setDepth(1);
/* PlaceFlagHasMatrix */

/* SWF_SHOWFRAME */
$character3->nextFrame(); /* end of clip frame 1 */

/* SWF_END */

/* SWF_DEFINEFONT3 */
/* font name: Cambria*/
$f4 = new SWFFont("font4.fdb" );
/* init font 4 code table*/
/*Unknown block type 73*/
/*Unknown block type 88*/

/* SWF_DEFINETEXT */
$character5 = new SWFText(1);
$character5->setFont($f4);
$character5->setHeight(200);
$character5->setColor(0x00, 0x00, 0x00);
$character5->moveTo(0, 200);
$character5->addString("Forsaken");
/*Unknown block type 74*/

/* SWF_DEFINETEXT */
$character6 = new SWFText(1);
$character6->setFont($f4);
$character6->setHeight(200);
$character6->setColor(0x00, 0x00, 0x00);
$character6->moveTo(0, 200);
$character6->addString("Village");
/*Unknown block type 74*/

/* SWF_DEFINESPRITE */

	/*  MovieClip 7 */
$character7 = new SWFMovieClip(); /* 1 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_PLACEOBJECT2 */
$ i1 = $character7->add($character3);
$i1->setDepth(1);
/* PlaceFlagHasMatrix */
$i1->moveTo(1, -1);

/* SWF_PLACEOBJECT2 */
$ i3 = $character7->add($character5);
$i3->setDepth(3);
/* PlaceFlagHasMatrix */
$i3->moveTo(-563, -67);

/* SWF_PLACEOBJECT2 */
$ i4 = $character7->add($character6);
$i4->setDepth(4);
/* PlaceFlagHasMatrix */
$i4->moveTo(-187, 142);

/* SWF_SHOWFRAME */
$character7->nextFrame(); /* end of clip frame 1 */

/* SWF_END */

/* SWF_DEFINETEXT */
$character8 = new SWFText(1);
$character8->setFont($f4);
$character8->setHeight(240);
$character8->setColor(0x00, 0x66, 0x00);
$character8->moveTo(0, 220);
$character8->addString("Cleared");
/*Unknown block type 74*/

/* SWF_DEFINESPRITE */

	/*  MovieClip 9 */
$character9 = new SWFMovieClip(); /* 26 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_DOACTION */
    122337:SWFACTION_CONSTANTPOOL
     [000] this
     [001] _x
     [002] _y
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1401319==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x56150c1f3056 bp 0x7ffc5279ce40 sp 0x7ffc5279ce20 T0)
==1401319==The signal is caused by a READ memory access.
==1401319==Hint: address points to the zero page.
    #0 0x56150c1f3056 in getName (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x25056)
    #1 0x56150c1f8b9a in decompileGETVARIABLE (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x2ab9a)
    #2 0x56150c200ed4 in decompileAction (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x32ed4)
    #3 0x56150c201483 in decompileActions (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x33483)
    #4 0x56150c2015bd in decompile5Action (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x335bd)
    #5 0x56150c1eca2e in outputSWF_DOACTION (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x1ea2e)
    #6 0x56150c1ef2cb in outputBlock (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x212cb)
    #7 0x56150c1eb160 in outputSWF_DEFINESPRITE (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x1d160)
    #8 0x56150c1ef2cb in outputBlock (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x212cb)
    #9 0x56150c1f0479 in readMovie (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x22479)
    #10 0x56150c1f0c3d in main (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x22c3d)
    #11 0x7f7ea9c29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #12 0x7f7ea9c29e3f in __libc_start_main_impl ../csu/libc-start.c:392
    #13 0x56150c1e2864 in _start (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x14864)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x25056) in getName
==1401319==ABORTING
```
Segmentation Violation in decompileGETVARIABLE
This is a GitHub Issue
repo:libming
owner:libming
Title : Segmentation Violation in decompileGETVARIABLE
Issue date:

--- start body ---
## Environment
Ubuntu 22.04.3 LTS
## Compiler
clang version 11.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
## Step to reproduce
```cd libming 
./autogen.sh
./configure --disable-shared --disable-freetype
cd util
./swftophp <PoC file>
```
## Contents of PoC file
```
Unzip the file below.
```
[PoC.zip](https://github.com/libming/libming/files/13644043/PoC.zip)
## Expected behavior 
Print error or warning messages handled within swftophp.
## Current behavior
```
<?php
$m = new SWFMovie(10);

ming_setscale(1.0);
$m->setRate(25.000000);
$m->setDimension(13000, 10000);
$m->setFrames(60);
/*Unknown block type 69*/

/* SWF_SETBACKGROUNDCOLOR */
$m->setBackground(0x00, 0x00, 0x00);

/* SWF_DEFINEBITSJPEG3 */

/* Bitmap 1 (jpeg3). To extract: */
/* swfextract -j 1 -o character1.jpg $swf */
$character1 = new SWFBitmap('character1.jpg');

/* SWF_DEFINESHAPE */

/* Shape 2 (TYPE=1, RECT=-995,995 -506,507)*/
$character2 = new SWFShape();
/*2 fillstyle(s)*/
/* BitmapID: 65535 */
$ character2_f0 = $character2->addBitmapFill($character65535,SWFFILL_NONSMOOTHED_CLIPPED_BITMAP);
$character2_f0->scaleTo(20.000000);
/* BitmapID: 1 */
$ character2_f1 = $character2->addBitmapFill($character1,SWFFILL_NONSMOOTHED_CLIPPED_BITMAP);
$character2_f1->scaleTo(18.425903, -18.425903);
$character2_f1->moveTo(-995, 507);
/*0 linestyles(s)*/
$character2->setLeftFill($character2_f1);
$character2->movePenTo(-995, -506);
$character2->drawLine(0, 1013);
$character2->drawLine(1990, 0);
$character2->drawLine(0, -1013);
$character2->drawLine(-1990, 0);

/* SWF_DEFINESPRITE */

	/*  MovieClip 3 */
$character3 = new SWFMovieClip(); /* 1 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_PLACEOBJECT2 */
$ i1 = $character3->add($character2);
$i1->setDepth(1);
/* PlaceFlagHasMatrix */

/* SWF_SHOWFRAME */
$character3->nextFrame(); /* end of clip frame 1 */

/* SWF_END */

/* SWF_DEFINEFONT3 */
/* font name: Cambria*/
$f4 = new SWFFont("font4.fdb" );
/* init font 4 code table*/
/*Unknown block type 73*/
/*Unknown block type 88*/

/* SWF_DEFINETEXT */
$character5 = new SWFText(1);
$character5->setFont($f4);
$character5->setHeight(200);
$character5->setColor(0x00, 0x00, 0x00);
$character5->moveTo(0, 200);
$character5->addString("Forsaken");
/*Unknown block type 74*/

/* SWF_DEFINETEXT */
$character6 = new SWFText(1);
$character6->setFont($f4);
$character6->setHeight(200);
$character6->setColor(0x00, 0x00, 0x00);
$character6->moveTo(0, 200);
$character6->addString("Village");
/*Unknown block type 74*/

/* SWF_DEFINESPRITE */

	/*  MovieClip 7 */
$character7 = new SWFMovieClip(); /* 1 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_PLACEOBJECT2 */
$ i1 = $character7->add($character3);
$i1->setDepth(1);
/* PlaceFlagHasMatrix */
$i1->moveTo(1, -1);

/* SWF_PLACEOBJECT2 */
$ i3 = $character7->add($character5);
$i3->setDepth(3);
/* PlaceFlagHasMatrix */
$i3->moveTo(-563, -67);

/* SWF_PLACEOBJECT2 */
$ i4 = $character7->add($character6);
$i4->setDepth(4);
/* PlaceFlagHasMatrix */
$i4->moveTo(-187, 142);

/* SWF_SHOWFRAME */
$character7->nextFrame(); /* end of clip frame 1 */

/* SWF_END */

/* SWF_DEFINETEXT */
$character8 = new SWFText(1);
$character8->setFont($f4);
$character8->setHeight(240);
$character8->setColor(0x00, 0x66, 0x00);
$character8->moveTo(0, 220);
$character8->addString("Cleared");
/*Unknown block type 74*/

/* SWF_DEFINESPRITE */

	/*  MovieClip 9 */
$character9 = new SWFMovieClip(); /* 26 frames */

/* SWF_SOUNDSTREAMHEAD2 */

/* SWF_DOACTION */
    122337:SWFACTION_CONSTANTPOOL
     [000] this
     [001] _x
     [002] _y
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1401319==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x56150c1f3056 bp 0x7ffc5279ce40 sp 0x7ffc5279ce20 T0)
==1401319==The signal is caused by a READ memory access.
==1401319==Hint: address points to the zero page.
    #0 0x56150c1f3056 in getName (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x25056)
    #1 0x56150c1f8b9a in decompileGETVARIABLE (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x2ab9a)
    #2 0x56150c200ed4 in decompileAction (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x32ed4)
    #3 0x56150c201483 in decompileActions (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x33483)
    #4 0x56150c2015bd in decompile5Action (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x335bd)
    #5 0x56150c1eca2e in outputSWF_DOACTION (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x1ea2e)
    #6 0x56150c1ef2cb in outputBlock (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x212cb)
    #7 0x56150c1eb160 in outputSWF_DEFINESPRITE (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x1d160)
    #8 0x56150c1ef2cb in outputBlock (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x212cb)
    #9 0x56150c1f0479 in readMovie (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x22479)
    #10 0x56150c1f0c3d in main (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x22c3d)
    #11 0x7f7ea9c29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #12 0x7f7ea9c29e3f in __libc_start_main_impl ../csu/libc-start.c:392
    #13 0x56150c1e2864 in _start (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x14864)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/smb8508/Desktop/work_space/debuging/libming/util/swftophp+0x25056) in getName
==1401319==ABORTING
```
--- end body ---
