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/

# Version 
```
MP4Box - GPAC version 2.2-rev0-gab012bbfb-master
(c) 2000-2022 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: --enable-sanitizer
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

```
# Reproduce 
complie and run 
```
./configure --enable-sanitizer
make
./MP4Box -bt memory_leak_lsr_read_rare_full
```
information reported by sanitizer 
```

==633924==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 176 byte(s) in 1 object(s) allocated from:
    #0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
    #1 0x7f643a573f33 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f33)
    #2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
    #3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
    #4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
    #6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
    #7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
    #9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
    #10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
    #11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
    #12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
    #13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
    #14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
    #15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308

Direct leak of 44 byte(s) in 1 object(s) allocated from:
    #0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
    #1 0x7f643a573f93 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f93)
    #2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
    #3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
    #4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
    #6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
    #7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
    #9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
    #10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
    #11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
    #12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
    #13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
    #14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
    #15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: 220 byte(s) leaked in 2 allocation(s).

```
# Poc
 
https://drive.google.com/file/d/1C1pfK2vmGPOF7fQBM62nDRqm5K1r_sZh/view?usp=sharing
Memory leaks in lsr_read_rare_full function 
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Memory leaks in lsr_read_rare_full function 
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/

# Version 
```
MP4Box - GPAC version 2.2-rev0-gab012bbfb-master
(c) 2000-2022 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: --enable-sanitizer
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

```
# Reproduce 
complie and run 
```
./configure --enable-sanitizer
make
./MP4Box -bt memory_leak_lsr_read_rare_full
```
information reported by sanitizer 
```

==633924==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 176 byte(s) in 1 object(s) allocated from:
    #0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
    #1 0x7f643a573f33 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f33)
    #2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
    #3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
    #4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
    #6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
    #7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
    #9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
    #10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
    #11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
    #12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
    #13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
    #14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
    #15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308

Direct leak of 44 byte(s) in 1 object(s) allocated from:
    #0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
    #1 0x7f643a573f93 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f93)
    #2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
    #3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
    #4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
    #6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
    #7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
    #8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
    #9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
    #10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
    #11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
    #12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
    #13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
    #14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
    #15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: 220 byte(s) leaked in 2 allocation(s).

```
# Poc
 
https://drive.google.com/file/d/1C1pfK2vmGPOF7fQBM62nDRqm5K1r_sZh/view?usp=sharing
--- end body ---
