[poc_crash000437](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_stack_overflow/crash000437) is here.

```
MP4Box -dash 1000 ./crash000173
```

```
Version

$ ./bin/gcc/MP4Box -version
MP4Box - GPAC version 2.3-DEV-revrelease
(c) 2000-2023 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_SSL 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

Proof of Concept

./bin/gcc/MP4Box -dash 1000 ./crash000173

[poc_crash000437](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_stack_overflow/crash000437) is here.
ASAN details

information reported by sanitizer

$ ./bin/gcc/MP4Box -dash 1000 ./now_crashes/dash_442/crash000437
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Failed to connect filter btplay PID crash000437 to filter dasher: Feature Not Supported
Blacklisting dasher as output from btplay and retrying connections
BT: X3D (WRL) Scene Parsing      | (10/100)
AddressSanitizer:DEADLYSIGNAL    | (39/100)
=================================================================
==377331==ERROR: AddressSanitizer: stack-overflow on address 0x7fff963d4ff8 (pc 0x7fa806c3908a bp 0x7fff963d5000 sp 0x7fff963d5000 T0)
    #0 0x7fa806c39089 in gf_gzseek utils/gzio.c:755
    #1 0x7fa8076228b0 in gf_bt_check_line scene_manager/loader_bt.c:164
    #2 0x7fa807623fd7 in gf_bt_check_line scene_manager/loader_bt.c:408
[...]
    #248 0x7fa807623fd7 in gf_bt_check_line scene_manager/loader_bt.c:408

SUMMARY: AddressSanitizer: stack-overflow utils/gzio.c:755 in gf_gzseek
==377331==ABORTING

Impact

This is capable of causing crashes.

Impact

This is capable of causing crashes.
Occurrences

loader_bt.c L408

stack overflow in gf_bt_check_line scene_manager/loader_bt.c:408
```

stack-overflow in gf_bt_check_line scene_manager/loader_bt.c:408
This is a GitHub Issue
repo:gpac
owner:gpac
Title : stack-overflow in gf_bt_check_line scene_manager/loader_bt.c:408
Issue date:

--- start body ---
[poc_crash000437](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_stack_overflow/crash000437) is here.

```
MP4Box -dash 1000 ./crash000173
```

```
Version

$ ./bin/gcc/MP4Box -version
MP4Box - GPAC version 2.3-DEV-revrelease
(c) 2000-2023 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_SSL 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

Proof of Concept

./bin/gcc/MP4Box -dash 1000 ./crash000173

[poc_crash000437](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_stack_overflow/crash000437) is here.
ASAN details

information reported by sanitizer

$ ./bin/gcc/MP4Box -dash 1000 ./now_crashes/dash_442/crash000437
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Failed to connect filter btplay PID crash000437 to filter dasher: Feature Not Supported
Blacklisting dasher as output from btplay and retrying connections
BT: X3D (WRL) Scene Parsing      | (10/100)
AddressSanitizer:DEADLYSIGNAL    | (39/100)
=================================================================
==377331==ERROR: AddressSanitizer: stack-overflow on address 0x7fff963d4ff8 (pc 0x7fa806c3908a bp 0x7fff963d5000 sp 0x7fff963d5000 T0)
    #0 0x7fa806c39089 in gf_gzseek utils/gzio.c:755
    #1 0x7fa8076228b0 in gf_bt_check_line scene_manager/loader_bt.c:164
    #2 0x7fa807623fd7 in gf_bt_check_line scene_manager/loader_bt.c:408
[...]
    #248 0x7fa807623fd7 in gf_bt_check_line scene_manager/loader_bt.c:408

SUMMARY: AddressSanitizer: stack-overflow utils/gzio.c:755 in gf_gzseek
==377331==ABORTING

Impact

This is capable of causing crashes.

Impact

This is capable of causing crashes.
Occurrences

loader_bt.c L408

stack overflow in gf_bt_check_line scene_manager/loader_bt.c:408
```

--- end body ---
