Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

Another null pointer dereference was discovered in lsr_decode_laser_unit(). The vulnerability causes a segmentation fault and application crash.

**Version:**

```
MP4Box - GPAC version 1.1.0-DEV-rev1574-g8b22f0912-master
(c) 2000-2021 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io

Please cite our work in your research:
        GPAC Filters: https://doi.org/10.1145/3339825.3394929
        GPAC: https://doi.org/10.1145/1291233.1291452

GPAC Configuration: 
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB  GPAC_DISABLE_3D
```

**Command:**

```
./MP4Box -bt ./poc
```

**Result:**

```
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing
[1]    4006143 segmentation fault  ~/gpac-8b22f09/raw_gpac/gpac/bin/gcc/MP4Box -bt
```

**GDB**

```
pwndbg> run -bt ./id:000096,sig:11,src:000026,op:int32,pos:51597,val:be:-128   
Starting program: /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/MP4Box -bt ./id:000096,sig:11,src:000026,op:int32,pos:51597,val:be:-128
ERROR: Could not find ELF base!
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b5d504 in lsr_decode_laser_unit () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
────────────────────────────────────────────────────────────────────────────[ REGISTERS ]─────────────────────────────────────────────────────────────────────────────
 RAX  0x0
 RBX  0x0
 RCX  0x2010
 RDX  0x0
 RDI  0x1
 RSI  0x4
 R8   0x0
 R9   0x0
 R10  0x5555555e7000
 R11  0xfffffffffffff000
 R12  0xc2711f43
 R13  0x1
 R14  0x1
 R15  0x5555555dcda0 —▸ 0x5555555d2690 ◂— 0x0
 RBP  0x1
 RSP  0x7fffffff72b0 ◂— 0x7fff00000001
 RIP  0x7ffff7b5d504 (lsr_decode_laser_unit+836) ◂— mov    word ptr [rax], r14w
──────────────────────────────────────────────────────────────────────────────[ DISASM ]──────────────────────────────────────────────────────────────────────────────
 ► 0x7ffff7b5d504 <lsr_decode_laser_unit+836>     mov    word ptr [rax], r14w
   0x7ffff7b5d508 <lsr_decode_laser_unit+840>     mov    word ptr [rax + 2], r13w
   0x7ffff7b5d50d <lsr_decode_laser_unit+845>     mov    word ptr [rax + 4], bp
   0x7ffff7b5d511 <lsr_decode_laser_unit+849>     mov    r9d, dword ptr [r15 + 0x10]
   0x7ffff7b5d515 <lsr_decode_laser_unit+853>     test   r9d, r9d
   0x7ffff7b5d518 <lsr_decode_laser_unit+856>     jne    lsr_decode_laser_unit+552 <lsr_decode_laser_unit+552>
    ↓
   0x7ffff7b5d3e8 <lsr_decode_laser_unit+552>     mov    rax, qword ptr [rsp + 0x28]
   0x7ffff7b5d3ed <lsr_decode_laser_unit+557>     xor    rax, qword ptr fs:[0x28]
   0x7ffff7b5d3f6 <lsr_decode_laser_unit+566>     jne    lsr_decode_laser_unit+3867 <lsr_decode_laser_unit+3867>
    ↓
   0x7ffff7b5e0db <lsr_decode_laser_unit+3867>    call   __stack_chk_fail@plt <__stack_chk_fail@plt>
 
   0x7ffff7b5e0e0 <lsr_read_conditional>          push   r12
──────────────────────────────────────────────────────────────────────────────[ STACK ]───────────────────────────────────────────────────────────────────────────────
00:0000│ rsp 0x7fffffff72b0 ◂— 0x7fff00000001
01:0008│     0x7fffffff72b8 ◂— 0x0
02:0010│     0x7fffffff72c0 —▸ 0x5555555e10f0 ◂— 0x0
03:0018│     0x7fffffff72c8 —▸ 0x7ffff75e12d4 (malloc+116) ◂— mov    r8, rax
04:0020│     0x7fffffff72d0 ◂— 0x2010
05:0028│     0x7fffffff72d8 ◂— 0xc1c836d95cdc800
06:0030│     0x7fffffff72e0 ◂— 0x0
07:0038│     0x7fffffff72e8 —▸ 0x5555555dcda0 —▸ 0x5555555d2690 ◂— 0x0
────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]─────────────────────────────────────────────────────────────────────────────
 ► f 0   0x7ffff7b5d504 lsr_decode_laser_unit+836
   f 1   0x7ffff7b64bed gf_laser_decode_command_list+333
   f 2   0x7ffff7aa4541 gf_sm_load_run_isom+1505
   f 3   0x5555555844a8 dump_isom_scene+760
   f 4   0x55555557b42c mp4boxMain+9228
   f 5   0x7ffff756b0b3 __libc_start_main+243
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
pwndbg> bt
#0  0x00007ffff7b5d504 in lsr_decode_laser_unit () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#1  0x00007ffff7b64bed in gf_laser_decode_command_list () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#2  0x00007ffff7aa4541 in gf_sm_load_run_isom () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#3  0x00005555555844a8 in dump_isom_scene ()
#4  0x000055555557b42c in mp4boxMain ()
#5  0x00007ffff756b0b3 in __libc_start_main (main=0x55555556c420 <main>, argc=3, argv=0x7fffffffe2b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2a8) at ../csu/libc-start.c:308
#6  0x000055555556c45e in _start ()
```
Null Pointer Dereference in lsr_decode_laser_unit ()
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Null Pointer Dereference in lsr_decode_laser_unit ()
Issue date:

--- start body ---
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

Another null pointer dereference was discovered in lsr_decode_laser_unit(). The vulnerability causes a segmentation fault and application crash.

**Version:**

```
MP4Box - GPAC version 1.1.0-DEV-rev1574-g8b22f0912-master
(c) 2000-2021 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io

Please cite our work in your research:
        GPAC Filters: https://doi.org/10.1145/3339825.3394929
        GPAC: https://doi.org/10.1145/1291233.1291452

GPAC Configuration: 
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB  GPAC_DISABLE_3D
```

**Command:**

```
./MP4Box -bt ./poc
```

**Result:**

```
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing
[1]    4006143 segmentation fault  ~/gpac-8b22f09/raw_gpac/gpac/bin/gcc/MP4Box -bt
```

**GDB**

```
pwndbg> run -bt ./id:000096,sig:11,src:000026,op:int32,pos:51597,val:be:-128   
Starting program: /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/MP4Box -bt ./id:000096,sig:11,src:000026,op:int32,pos:51597,val:be:-128
ERROR: Could not find ELF base!
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b5d504 in lsr_decode_laser_unit () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
────────────────────────────────────────────────────────────────────────────[ REGISTERS ]─────────────────────────────────────────────────────────────────────────────
 RAX  0x0
 RBX  0x0
 RCX  0x2010
 RDX  0x0
 RDI  0x1
 RSI  0x4
 R8   0x0
 R9   0x0
 R10  0x5555555e7000
 R11  0xfffffffffffff000
 R12  0xc2711f43
 R13  0x1
 R14  0x1
 R15  0x5555555dcda0 —▸ 0x5555555d2690 ◂— 0x0
 RBP  0x1
 RSP  0x7fffffff72b0 ◂— 0x7fff00000001
 RIP  0x7ffff7b5d504 (lsr_decode_laser_unit+836) ◂— mov    word ptr [rax], r14w
──────────────────────────────────────────────────────────────────────────────[ DISASM ]──────────────────────────────────────────────────────────────────────────────
 ► 0x7ffff7b5d504 <lsr_decode_laser_unit+836>     mov    word ptr [rax], r14w
   0x7ffff7b5d508 <lsr_decode_laser_unit+840>     mov    word ptr [rax + 2], r13w
   0x7ffff7b5d50d <lsr_decode_laser_unit+845>     mov    word ptr [rax + 4], bp
   0x7ffff7b5d511 <lsr_decode_laser_unit+849>     mov    r9d, dword ptr [r15 + 0x10]
   0x7ffff7b5d515 <lsr_decode_laser_unit+853>     test   r9d, r9d
   0x7ffff7b5d518 <lsr_decode_laser_unit+856>     jne    lsr_decode_laser_unit+552 <lsr_decode_laser_unit+552>
    ↓
   0x7ffff7b5d3e8 <lsr_decode_laser_unit+552>     mov    rax, qword ptr [rsp + 0x28]
   0x7ffff7b5d3ed <lsr_decode_laser_unit+557>     xor    rax, qword ptr fs:[0x28]
   0x7ffff7b5d3f6 <lsr_decode_laser_unit+566>     jne    lsr_decode_laser_unit+3867 <lsr_decode_laser_unit+3867>
    ↓
   0x7ffff7b5e0db <lsr_decode_laser_unit+3867>    call   __stack_chk_fail@plt <__stack_chk_fail@plt>
 
   0x7ffff7b5e0e0 <lsr_read_conditional>          push   r12
──────────────────────────────────────────────────────────────────────────────[ STACK ]───────────────────────────────────────────────────────────────────────────────
00:0000│ rsp 0x7fffffff72b0 ◂— 0x7fff00000001
01:0008│     0x7fffffff72b8 ◂— 0x0
02:0010│     0x7fffffff72c0 —▸ 0x5555555e10f0 ◂— 0x0
03:0018│     0x7fffffff72c8 —▸ 0x7ffff75e12d4 (malloc+116) ◂— mov    r8, rax
04:0020│     0x7fffffff72d0 ◂— 0x2010
05:0028│     0x7fffffff72d8 ◂— 0xc1c836d95cdc800
06:0030│     0x7fffffff72e0 ◂— 0x0
07:0038│     0x7fffffff72e8 —▸ 0x5555555dcda0 —▸ 0x5555555d2690 ◂— 0x0
────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]─────────────────────────────────────────────────────────────────────────────
 ► f 0   0x7ffff7b5d504 lsr_decode_laser_unit+836
   f 1   0x7ffff7b64bed gf_laser_decode_command_list+333
   f 2   0x7ffff7aa4541 gf_sm_load_run_isom+1505
   f 3   0x5555555844a8 dump_isom_scene+760
   f 4   0x55555557b42c mp4boxMain+9228
   f 5   0x7ffff756b0b3 __libc_start_main+243
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
pwndbg> bt
#0  0x00007ffff7b5d504 in lsr_decode_laser_unit () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#1  0x00007ffff7b64bed in gf_laser_decode_command_list () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#2  0x00007ffff7aa4541 in gf_sm_load_run_isom () from /home/surager/gpac-8b22f09/raw_gpac/gpac/bin/gcc/libgpac.so.10
#3  0x00005555555844a8 in dump_isom_scene ()
#4  0x000055555557b42c in mp4boxMain ()
#5  0x00007ffff756b0b3 in __libc_start_main (main=0x55555556c420 <main>, argc=3, argv=0x7fffffffe2b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2a8) at ../csu/libc-start.c:308
#6  0x000055555556c45e in _start ()
```
--- end body ---
