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/bug-reporting/


1.get latest commit code (gpac - GPAC command line filter engine - version 2.3-DEV-rev621-g3edb48d2b-master)
2.compile with --enable-sanitizer
3.run MP4Box -bt any.swf (not exists)

Env:
Ubunut 20.04 , clang 16.0.1

AddressSanitizer:DEADLYSIGNAL
=================================================================
==89492==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbbadd763c2 bp 0x7ffcfda28a20 sp 0x7ffcfda27900 T0)
==89492==The signal is caused by a WRITE memory access.
==89492==Hint: address points to the zero page.
    #0 0x7fbbadd763c2 in gf_sm_load_init_swf scene_manager/swf_parse.c:2655
    #1 0x7fbbadd0fa0f in gf_sm_load_init scene_manager/scene_manager.c:692
    #2 0x56046142d484 in dump_isom_scene /home/lly/pro/gpac/applications/mp4box/filedump.c:208
    #3 0x56046141d810 in mp4box_main /home/lly/pro/gpac/applications/mp4box/mp4box.c:6467
    #4 0x56046141fb4f in main /home/lly/pro/gpac/applications/mp4box/mp4box.c:6939
    #5 0x7fbbad1c3082 in __libc_start_main ../csu/libc-start.c:308
    #6 0x5604613f7ddd in _start (/home/lly/pro/gpac/bin/gcc/MP4Box+0x4fddd)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV scene_manager/swf_parse.c:2655 in gf_sm_load_init_swf
==89492==ABORTING


Seems mp4box did not check the swf file exist.
Null pointer at gf_sm_load_init_swf scene_manager/swf_parse.c:2655   with noexist swf file
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Null pointer at gf_sm_load_init_swf scene_manager/swf_parse.c:2655   with noexist swf file
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/bug-reporting/


1.get latest commit code (gpac - GPAC command line filter engine - version 2.3-DEV-rev621-g3edb48d2b-master)
2.compile with --enable-sanitizer
3.run MP4Box -bt any.swf (not exists)

Env:
Ubunut 20.04 , clang 16.0.1

AddressSanitizer:DEADLYSIGNAL
=================================================================
==89492==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbbadd763c2 bp 0x7ffcfda28a20 sp 0x7ffcfda27900 T0)
==89492==The signal is caused by a WRITE memory access.
==89492==Hint: address points to the zero page.
    #0 0x7fbbadd763c2 in gf_sm_load_init_swf scene_manager/swf_parse.c:2655
    #1 0x7fbbadd0fa0f in gf_sm_load_init scene_manager/scene_manager.c:692
    #2 0x56046142d484 in dump_isom_scene /home/lly/pro/gpac/applications/mp4box/filedump.c:208
    #3 0x56046141d810 in mp4box_main /home/lly/pro/gpac/applications/mp4box/mp4box.c:6467
    #4 0x56046141fb4f in main /home/lly/pro/gpac/applications/mp4box/mp4box.c:6939
    #5 0x7fbbad1c3082 in __libc_start_main ../csu/libc-start.c:308
    #6 0x5604613f7ddd in _start (/home/lly/pro/gpac/bin/gcc/MP4Box+0x4fddd)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV scene_manager/swf_parse.c:2655 in gf_sm_load_init_swf
==89492==ABORTING


Seems mp4box did not check the swf file exist.
--- end body ---
