issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 261k ⌀ | issue_title stringlengths 1 925 | issue_comments_url stringlengths 56 81 | issue_comments_count int64 0 2.5k | issue_created_at stringlengths 20 20 | issue_updated_at stringlengths 20 20 | issue_html_url stringlengths 37 62 | issue_github_id int64 387k 2.46B | issue_number int64 1 127k |
|---|---|---|---|---|---|---|---|---|---|
[
"gpac",
"gpac"
] | # Description
Null pointer deference in gf_dash_setup_period at media_tools/dash_client.c:6333
# Version
```
git log
commit 7edc40feef23efd8c9948292d269eae76fa475af (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Thu Oct 12 16:58:53 2023 +0200
./bin/gcc/MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev588-g7edc40fee-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
# Poc :
https://github.com/Janette88/test_pocs/blob/main/poc15
# Reproduce
```
compile:
./configure --enable-sanitizer
make
```
```
./bin/gcc/MP4Box -dash 1000 /home/fuzz/crashes/poc15
[DASH] Updated manifest:
P#1: start 0 - duration 0 - xlink none
[DASH] Manifest after update:
P#1: start 0 - duration 0 - xlink none
[DASH] Setting up period start 0 duration 0 xlink none ID DID1
media_tools/dash_client.c:6333:9: runtime error: null pointer passed as argument 1, which is declared to never be null
```
```
Asan log:
./bin/gcc/MP4Box -dash 1000 /home/fuzz/crash/poc15
[DASH] Updated manifest:
P#1: start 0 - duration 0 - xlink none
[DASH] Manifest after update:
P#1: start 0 - duration 0 - xlink none
[DASH] Setting up period start 0 duration 0 xlink none ID DID1
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2807995==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000043f7e0 bp 0x7ffe04691450 sp 0x7ffe04690bf0 T0)
==2807995==The signal is caused by a READ memory access.
==2807995==Hint: address points to the zero page.
#0 0x43f7e0 in strcmp (/home/fuzz/gpac/gpac/bin/gcc/MP4Box+0x43f7e0)
#1 0x7fe80797751b in gf_dash_setup_period (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0xd4851b)
#2 0x7fe80792b0be in gf_dash_process (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0xcfc0be)
#3 0x7fe807fc31d3 in dashdmx_process (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x13941d3)
#4 0x7fe807e90d3e in gf_filter_process_task (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x1261d3e)
#5 0x7fe807e5ed86 in gf_fs_thread_proc (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x122fd86)
#6 0x7fe807e5d67f in gf_fs_run (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x122e67f)
#7 0x7fe8077fb9e7 in gf_dasher_process (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0xbcc9e7)
#8 0x50205c in do_dash /home/fuzz/gpac/gpac/applications/mp4box/mp4box.c:4831:15
#9 0x4f34ee in mp4box_main /home/fuzz/gpac/gpac/applications/mp4box/mp4box.c:6245:7
#10 0x7fe8068b0082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
#11 0x42ad4d in _start (/home/fuzz/gpac/gpac/bin/gcc/MP4Box+0x42ad4d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/fuzz/gpac/gpac/bin/gcc/MP4Box+0x43f7e0) in strcmp
==2807995==ABORTING
```
# Impact:
The vulnerability can potentially cause a crash or other effects.
# Credit:
Janette88 (Jq Wang) | Null pointer deference in gf_dash_setup_period at media_tools/dash_client.c:6333 | https://api.github.com/repos/gpac/gpac/issues/2641/comments | 1 | 2023-10-13T08:54:46Z | 2024-03-10T19:46:45Z | https://github.com/gpac/gpac/issues/2641 | 1,941,533,993 | 2,641 |
[
"gpac",
"gpac"
] | mac m1 chips
follow
https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-OSX#mp4box-only
to build
commit 7edc40feef23efd8c9948292d269eae76fa475af (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Thu Oct 12 16:58:53 2023 +0200
Fixed #2625
ld: warning: ignoring duplicate libraries: '-lbz2', '-lcaca', '-lfreetype', '-lnghttp2', '-lpng16', '-lpthread', '-lz'
ld: Undefined symbols:
_memrchr, referenced from:
_gf_props_parse_value in libgpac_static.a[234](filter_props.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
---chatgpt answer---
If you are trying to build on Mac, the function `memrchr` is not available in the macOS libc. This function is a GNU extension and is not present on all systems, including macOS.
You will need to either conditionally use an alternative function when building on Mac, or provide your own implementation of `memrchr`.
Here's an example of a simple `memrchr` implementation:
```c
void *memrchr(const void *s, int c, size_t n) {
const unsigned char *cp;
if (n != 0) {
cp = (unsigned char *)s + n;
do {
if (*(--cp) == (unsigned char)c)
return (void *)cp;
} while (--n != 0);
}
return NULL;
}
```
You can include this function in your code when you're building on macOS. Be sure to wrap it with an `#ifdef` check to ensure it's only used when `memrchr` is not available:
```c
#ifndef HAVE_MEMRCHR
void *memrchr(const void *s, int c, size_t n) {
/* ... function code ... */
}
#endif
```
Then, in your build system, ensure that `HAVE_MEMRCHR` is defined when building on systems that have `memrchr`.
| build fail in master brach on mac | https://api.github.com/repos/gpac/gpac/issues/2640/comments | 6 | 2023-10-13T07:51:24Z | 2023-11-03T08:53:55Z | https://github.com/gpac/gpac/issues/2640 | 1,941,432,352 | 2,640 |
[
"gpac",
"gpac"
] | 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/
I'm currently trying to work in a multitrack playlist hls packager, but gpac is not aplying the group correctly to each track
```bash
gpac \
-i udp://0.0.0.0:5010/:gpac:listen=true:tsprobe=true:#HLSGroup=LL_V_Group:#Representation=LL_V_Track:#HLSMExt=DEFAULT=YES reframer:rt=on \
-i udp://0.0.0.0:5011/:gpac:listen=true:tsprobe=true:#HLSGroup=Aug1_V_Group:#Representation=Aug1_V_Track:#HLSMExt=DEFAULT=NO reframer:rt=on \
-i udp://0.0.0.0:5012/:gpac:listen=true:tsprobe=true:#HLSGroup=Aug2_V_Group:#Representation=Aug2_V_Track:#HLSMExt=DEFAULT=NO reframer:rt=on \
-i udp://0.0.0.0:6010/:gpac:listen=true:tsprobe=true:#HLSGroup=LL_A_Group:#Representation=LL_A_Track reframer:rt=on \
-i udp://0.0.0.0:6011/:gpac:listen=true:tsprobe=true:#HLSGroup=Aug1_A_Group:#Representation=Aug1_A_Track reframer:rt=on \
-i udp://0.0.0.0:6012/:gpac:listen=true:tsprobe=true:#HLSGroup=Aug2_A_Group:#Representation=Aug2_A_Track reframer:rt=on \
-o http://origin:8081/live/upload/playlist.m3u8:gpac:buf=-150:ll_part_hb=-1:ll_rend_rep=true:hls_ap=true:seg_sync=no:segdur=6.0:cdur=0.5:llhls=sf:hlsc=true:cmaf=cmf2:dmode=dynamic:pssh=v:hmode=push
```
The generated playlist looks something like this...
```
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="Aug1_V_Group",DEFAULT=NO,NAME="Aug1_V_Track",URI="playlist_1.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="Aug2_V_Group",DEFAULT=NO,NAME="Aug2_V_Track",URI="playlist_2.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="LL_V_Group",DEFAULT=YES,NAME="LL_V_Track",URI="playlist_3.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=1024443,CODECS="mp4a.40.2,avc1.4D401F",RESOLUTION=1280x720,VIDEO="Aug1_V_Group"
playlist_4.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1024430,CODECS="mp4a.40.2,avc1.4D401F",RESOLUTION=1280x720,VIDEO="Aug1_V_Group"
playlist_5.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1024443,CODECS="mp4a.40.2,avc1.4D401F",RESOLUTION=1280x720,VIDEO="Aug1_V_Group"
playlist_6.m3u8
```
Is possible to see that the generated EXT-X-STREAM-INF is not pointing to the seted VIDEO with the HLSGroup, this happens also when the primary is the VIDEO (hls_ap=false) the AUDIO attribute in the EXT-X-STREAM-INF is pointing to the same audio and not the one setted in the HLSGroup
am I using GPAC wrong? could this be a bug?
Thanks in advance | HLSGroup not being applied correctly | https://api.github.com/repos/gpac/gpac/issues/2639/comments | 1 | 2023-10-12T19:18:47Z | 2023-12-04T14:49:25Z | https://github.com/gpac/gpac/issues/2639 | 1,940,641,254 | 2,639 |
[
"gpac",
"gpac"
] | Reproduce
./MP4Box -dash 10000 poc
POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/huaf_1658
```
Description
heap-use-after-free in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Asan
[33m[TTML EBU-TTD] time indicates frames but no frame rate set, assuming 25 FPS
[0m[31m[TTML EBU-TTD] invalid timings: "begin"=24680 , "end"=23320. Abort.
[0m[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[32m[Dasher] No bitrate property assigned to PID id000310sig06src000702time203216797execs1924021ophavocrep2, computing from bitstream
[0m[31m[TTML EBU-TTD] duplicated "begin" attribute. Abort.
[0m=================================================================
==734465==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000000868 at pc 0x7fa699af74f8 bp 0x7ffe98c75570 sp 0x7ffe98c75568
READ of size 8 at 0x604000000868 thread T0
#0 0x7fa699af74f7 in gf_xml_dom_node_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1658:12
#1 0x7fa699af7547 in gf_xml_dom_node_del /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1681:2
#2 0x7fa699af7410 in gf_xml_dom_node_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1672:4
#3 0x7fa699af7547 in gf_xml_dom_node_del /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1681:2
#4 0x7fa699af7410 in gf_xml_dom_node_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1672:4
#5 0x7fa699af7547 in gf_xml_dom_node_del /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1681:2
#6 0x7fa699af7410 in gf_xml_dom_node_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1672:4
#7 0x7fa699af7547 in gf_xml_dom_node_del /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1681:2
#8 0x7fa699af7b20 in gf_xml_dom_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1814:4
#9 0x7fa699af77d3 in gf_xml_dom_del /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1826:2
#10 0x7fa69ac9ffad in ttxtin_reset /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:4044:32
#11 0x7fa69ac9ffad in txtin_finalize /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:4293:2
#12 0x7fa69a96eb6c in gf_fs_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:773:6
#13 0x7fa69a2283f6 in gf_dasher_clean_inputs /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:164:3
#14 0x7fa69a2283f6 in gf_dasher_del /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:173:2
#15 0x563912e69d2d in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4894:2
#16 0x563912e5ab6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#17 0x7fa699229d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#18 0x7fa699229e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#19 0x563912d82dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x604000000868 is located 24 bytes inside of 48-byte region [0x604000000850,0x604000000880)
freed by thread T0 here:
#0 0x563912e05972 in free (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105972) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fa699af7410 in gf_xml_dom_node_reset /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1672:4
previously allocated by thread T0 here:
#0 0x563912e05c1e in malloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105c1e) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fa699af80fc in on_dom_node_start /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1702:2
SUMMARY: AddressSanitizer: heap-use-after-free /home/user/fuzzing_gpac/gpac/src/utils/xml_parser.c:1658:12 in gf_xml_dom_node_reset
Shadow bytes around the buggy address:
0x0c087fff80b0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff80c0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff80d0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c087fff80e0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff80f0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
=>0x0c087fff8100: fa fa fd fd fd fd fd fd fa fa fd fd fd[fd]fd fd
0x0c087fff8110: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8120: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8130: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8140: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8150: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==734465==ABORTING
Reproduce
./MP4Box -dash 10000 poc
POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/huaf_1658
Credit
Gandalf4a
Impact
This vulnerability allows a remote attacker to cause a denial of service or even arbitrary code execution on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
xml_parser.c L1658
```
| heap-use-after-free | https://api.github.com/repos/gpac/gpac/issues/2638/comments | 4 | 2023-10-12T18:16:49Z | 2023-10-19T21:00:28Z | https://github.com/gpac/gpac/issues/2638 | 1,940,542,015 | 2,638 |
[
"gpac",
"gpac"
] | https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/fpe_709
./MP4Box -dash 10000 poc
```
Description
2 FPE in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Reproduce
./MP4Box -dash 10000 poc
Credit
Gandalf4a
Impact
This vulnerability allows a remote attacker to cause a denial of service on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
reframe_latm.c L268
FPE in /gpac/src/filters/reframe_latm.c:268:13 in latm_dmx_check_dur
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/fpe_268
asan
AddressSanitizer:DEADLYSIGNAL
=================================================================
==741504==ERROR: AddressSanitizer: FPE on unknown address 0x7f64f600508d (pc 0x7f64f600508d bp 0x7ffca36fc170 sp 0x7ffca36fbdc0 T0)
#0 0x7f64f600508d in latm_dmx_check_dur /home/user/fuzzing_gpac/gpac/src/filters/reframe_latm.c:268:13
#1 0x7f64f60024d0 in latm_dmx_check_pid /home/user/fuzzing_gpac/gpac/src/filters/reframe_latm.c:318:3
#2 0x7f64f60024d0 in latm_dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_latm.c:545:3
#3 0x7f64f5bafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#4 0x7f64f5b7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#5 0x7f64f5b7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#6 0x7f64f542ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#7 0x55e9c82fd6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#8 0x55e9c82eeb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#9 0x7f64f4429d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#10 0x7f64f4429e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#11 0x55e9c8216dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /home/user/fuzzing_gpac/gpac/src/filters/reframe_latm.c:268:13 in latm_dmx_check_dur
==741504==ABORTING
reframe_nalu.c L709
FPE in /gpac/src/filters/reframe_nalu.c:709:13 in naludmx_check_dur
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/fpe_709
asan
[31m[VVC] Error parsing NAL unit type 16
[0m[31m[VVC] Error parsing NAL unit type 29
[0m[31m[VVC] Error parsing NAL unit type 0
[0m[31m[VVC] Error parsing NAL unit type 15
[0m[31m[VVC] Error parsing Sequence Param Set
[0m[31m[VVC] wrong num tile rows 43 in PPS
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==728272==ERROR: AddressSanitizer: FPE on unknown address 0x7fc7c5e5d5d5 (pc 0x7fc7c5e5d5d5 bp 0x7ffd88ccf210 sp 0x7ffd88ccef60 T0)
#0 0x7fc7c5e5d5d5 in naludmx_check_dur /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:709:13
#1 0x7fc7c5e64622 in naludmx_check_pid /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:1826:3
#2 0x7fc7c5e52dc5 in naludmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3370:4
#3 0x7fc7c59afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#4 0x7fc7c597d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#5 0x7fc7c597b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#6 0x7fc7c522ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#7 0x5647feba56dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#8 0x5647feb96b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#9 0x7fc7c4229d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#10 0x7fc7c4229e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#11 0x5647feabedd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:709:13 in naludmx_check_dur
==728272==ABORTING
``` | 2 FPE in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2637/comments | 2 | 2023-10-12T18:16:45Z | 2023-10-19T21:00:32Z | https://github.com/gpac/gpac/issues/2637 | 1,940,541,951 | 2,637 |
[
"gpac",
"gpac"
] | Reproduce
./MP4Box -dash 10000 poc
POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/mpo_104e44
```
Description
memcpy-param-overlap in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Asan
[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m=================================================================
==733818==ERROR: AddressSanitizer: memcpy-param-overlap: memory ranges [0x62a000066200,0x62a00006b01f) and [0x62a000066201, 0x62a00006b020) overlap
#0 0x557430340e44 in __asan_memcpy (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x104e44) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f79be43cc7c in mpgviddmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_mpgvid.c:959:7
#2 0x7f79bdfafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#3 0x7f79bdf7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#4 0x7f79bdf7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#5 0x7f79bd82ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#6 0x5574303a56dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#7 0x557430396b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#8 0x7f79bc829d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7f79bc829e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#10 0x5574302bedd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x62a000066200 is located 0 bytes inside of 20000-byte region [0x62a000066200,0x62a00006b020)
allocated by thread T0 here:
#0 0x557430342046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f79be438447 in mpgviddmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_mpgvid.c:670:21
#2 0x7f79bdfafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
0x62a000066201 is located 1 bytes inside of 20000-byte region [0x62a000066200,0x62a00006b020)
allocated by thread T0 here:
#0 0x557430342046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f79be438447 in mpgviddmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_mpgvid.c:670:21
#2 0x7f79bdfafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: memcpy-param-overlap (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x104e44) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in __asan_memcpy
==733818==ABORTING
Impact
This vulnerability allows a remote attacker to cause a denial of service on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
reframe_mpgvid.c L959
``` | memcpy-param-overlap in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2636/comments | 2 | 2023-10-12T18:16:44Z | 2023-10-19T21:00:34Z | https://github.com/gpac/gpac/issues/2636 | 1,940,541,929 | 2,636 |
[
"gpac",
"gpac"
] | https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/hbo_545
./MP4Box -dash 10000 poc
```
Description
4 heap-buffer-overflow in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Reproduce
./MP4Box -dash 10000 poc
Credit
Gandalf4a
Impact
This vulnerability allows a remote attacker to cause a denial of service or even arbitrary code execution on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
av_parsers.c L5004
heap-buffer-overflow in /gpac/src/media_tools/av_parsers.c:5004:41 in gf_media_nalu_add_emulation_bytes
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/hbo_5004
asan
[31m[AVC|H264] Error parsing NAL unit type 8
[0m[31m[AVC|H264] Error parsing Picture Param Set
[0m[33m[avc-h264] SEI user message type 71 size error (71 but 27 remain), keeping full SEI untouched
[0m[31m[AVC|H264] Error parsing NAL unit type 8
[0m[31m[AVC|H264] Error parsing Picture Param Set
[0m[31m[AVC|H264] Error parsing NAL unit type 8
[0m[31m[AVC|H264] Error parsing Picture Param Set
[0m=================================================================
==741711==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x615000012200 at pc 0x7f94b085ae28 bp 0x7ffd4f7982f0 sp 0x7ffd4f7982e8
WRITE of size 1 at 0x615000012200 thread T0
#0 0x7f94b085ae27 in gf_media_nalu_add_emulation_bytes /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:5004:41
#1 0x7f94b085ae27 in gf_avc_reformat_sei /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:6374:16
#2 0x7f94b146d858 in naludmx_push_prefix /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:2405:21
#3 0x7f94b1450fc1 in naludmx_parse_nal_avc /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:2824:4
#4 0x7f94b1450fc1 in naludmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3354:23
#5 0x7f94b0fafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#6 0x7f94b0f7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7f94b0f7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7f94b082ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x555f7476f6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x555f74760b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7f94af829d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7f94af829e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x555f74688dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x615000012200 is located 0 bytes to the right of 512-byte region [0x615000012000,0x615000012200)
allocated by thread T0 here:
#0 0x555f7470bc1e in malloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105c1e) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f94b0092fb7 in gf_bs_new /home/user/fuzzing_gpac/gpac/src/utils/bitstream.c:160:29
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:5004:41 in gf_media_nalu_add_emulation_bytes
Shadow bytes around the buggy address:
0x0c2a7fffa3f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c2a7fffa440:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa450: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa460: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa470: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa490: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==741711==ABORTING
utf.c L441
heap-buffer-overflow in /gpac/src/utils/utf.c:441:16 in gf_utf8_wcslen
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/hbo_441
asan
[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m[31m[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[0m=================================================================
==733772==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000006b2 at pc 0x7fbd2b99866f bp 0x7ffdaf664cc0 sp 0x7ffdaf664cb8
READ of size 2 at 0x6040000006b2 thread T0
#0 0x7fbd2b99866e in gf_utf8_wcslen /home/user/fuzzing_gpac/gpac/src/utils/utf.c:441:16
#1 0x7fbd2cc3098b in id3dmx_set_string /home/user/fuzzing_gpac/gpac/src/filters/reframe_mp3.c:206:39
#2 0x7fbd2cc30123 in id3dmx_flush /home/user/fuzzing_gpac/gpac/src/filters/reframe_mp3.c
#3 0x7fbd2cbfb48e in adts_dmx_check_pid /home/user/fuzzing_gpac/gpac/src/filters/reframe_adts.c:469:3
#4 0x7fbd2cbfb48e in adts_dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_adts.c:804:3
#5 0x7fbd2c7afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#6 0x7fbd2c77d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7fbd2c77b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7fbd2c02ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x55ccdee376dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x55ccdee28b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7fbd2b029d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7fbd2b029e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x55ccded50dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x6040000006b3 is located 0 bytes to the right of 35-byte region [0x604000000690,0x6040000006b3)
allocated by thread T0 here:
#0 0x55ccdedd4046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fbd2cc2fecd in id3dmx_flush /home/user/fuzzing_gpac/gpac/src/filters/reframe_mp3.c:269:11
#2 0x7fbd2cbfb48e in adts_dmx_check_pid /home/user/fuzzing_gpac/gpac/src/filters/reframe_adts.c:469:3
#3 0x7fbd2cbfb48e in adts_dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_adts.c:804:3
#4 0x7fbd2c7afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/utils/utf.c:441:16 in gf_utf8_wcslen
Shadow bytes around the buggy address:
0x0c087fff8080: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff8090: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80a0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80b0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80c0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
=>0x0c087fff80d0: fa fa 00 00 00 00[03]fa fa fa fa fa fa fa fa fa
0x0c087fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==733772==ABORTING
reframe_ac3.c L489
heap-buffer-overflow in /gpac/bin/gcc/MP4Box+0x104f46 in __asan_memcpy
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/hbo_104f46
asan
[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[33m[AC3Dmx] 193 bytes unrecovered before sync word
[0m[33m[AC3Dmx] 18 bytes unrecovered before sync word
[0m[33m[Dasher] PID id000132sig06src001446time89147436execs844212ophavocrep2 config changed during active period, forcing period switch
[0m[32m[MPD] Generating MPD at time 2023-10-11T15:29:21.016Z
[0m[32m[Dasher] End of Period
[0m[33m[AC3Dmx] 563 bytes unrecovered before sync word
[0m[33m[AC3Dmx] 93443 bytes unrecovered before sync word
[0m=================================================================
==723639==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x63200005f73a at pc 0x560fff285f47 bp 0x7ffff14dd9b0 sp 0x7ffff14dd180
READ of size 2 at 0x63200005f73a thread T0
#0 0x560fff285f46 in __asan_memcpy (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x104f46) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f840c5f2791 in ac3dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_ac3.c:489:4
#2 0x7f840c1afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#3 0x7f840c17d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#4 0x7f840c17b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#5 0x7f840ba2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#6 0x560fff2ea6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#7 0x560fff2dbb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#8 0x7f840aa29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7f840aa29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#10 0x560fff203dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x63200005f73a is located 0 bytes to the right of 94010-byte region [0x632000048800,0x63200005f73a)
allocated by thread T0 here:
#0 0x560fff287046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f840c5f1e92 in ac3dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_ac3.c:399:22
#2 0x7f840c1afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x104f46) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in __asan_memcpy
Shadow bytes around the buggy address:
0x0c6480003e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c6480003ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c6480003eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c6480003ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c6480003ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c6480003ee0: 00 00 00 00 00 00 00[02]fa fa fa fa fa fa fa fa
0x0c6480003ef0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c6480003f00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c6480003f10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c6480003f20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c6480003f30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==723639==ABORTING
reframe_mhas.c L545
heap-buffer-overflow in /gpac/src/filters/reframe_mhas.c:545:8 in mhas_dmx_process
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/hbo_545
asan
[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[33m[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
[0m[33m[MHASDmx] MHAS packet with 0 payload size, considering sync was lost
[0m=================================================================
==725111==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62500001b758 at pc 0x7fa175a2bcc1 bp 0x7ffeee026090 sp 0x7ffeee026088
READ of size 1 at 0x62500001b758 thread T0
#0 0x7fa175a2bcc0 in mhas_dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_mhas.c:545:8
#1 0x7fa1755afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#2 0x7fa17557d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#3 0x7fa17557b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#4 0x7fa174e2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#5 0x56237ce866dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#6 0x56237ce77b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#7 0x7fa173e29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#8 0x7fa173e29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#9 0x56237cd9fdd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x62500001b758 is located 0 bytes to the right of 9816-byte region [0x625000019100,0x62500001b758)
allocated by thread T0 here:
#0 0x56237ce23046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fa175a293f4 in mhas_dmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_mhas.c:510:23
#2 0x7fa1755afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/filters/reframe_mhas.c:545:8 in mhas_dmx_process
Shadow bytes around the buggy address:
0x0c4a7fffb690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c4a7fffb6e0: 00 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa
0x0c4a7fffb6f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb710: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb720: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb730: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==725111==ABORTING
``` | 4 heap-buffer-overflow in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2635/comments | 3 | 2023-10-12T18:16:43Z | 2023-10-19T21:00:38Z | https://github.com/gpac/gpac/issues/2635 | 1,940,541,908 | 2,635 |
[
"gpac",
"gpac"
] | poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/sbo_2471
./MP4Box -dash 10000 poc
```
Description
2 stack-buffer-overflow in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Reproduce
./MP4Box -dash 10000 poc
Credit
Gandalf4a
Impact
This vulnerability allows a remote attacker to cause a denial of service or even arbitrary code execution on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
avilib.c L67
stack-buffer-overflow in /gpac/bin/gcc/MP4Box+0x9e5ed in fread
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/sbo_9e5ed
asan
=================================================================
==718188==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff50785588 at pc 0x55f3f8e8d5ee bp 0x7fff50785100 sp 0x7fff507848d0
WRITE of size 2284 at 0x7fff50785588 thread T0
#0 0x55f3f8e8d5ed in fread (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x9e5ed) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f2b102019b1 in avi_read /home/user/fuzzing_gpac/gpac/src/media_tools/avilib.c:67:17
#2 0x7f2b102019b1 in AVI_read_audio /home/user/fuzzing_gpac/gpac/src/media_tools/avilib.c:3078:15
#3 0x7f2b108d5990 in avidmx_setup /home/user/fuzzing_gpac/gpac/src/filters/dmx_avi.c:285:5
#4 0x7f2b108d5990 in avidmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_avi.c:504:3
#5 0x7f2b107afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#6 0x7f2b1077d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7f2b1077b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7f2b1002ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x55f3f8f586dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x55f3f8f49b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7f2b0f029d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7f2b0f029e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x55f3f8e71dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
Address 0x7fff50785588 is located in stack of thread T0 at offset 1032 in frame
#0 0x7f2b108d23df in avidmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_avi.c:474
This frame has 42 object(s):
[32, 56) '.compoundliteral.i' (line 343)
[96, 120) '.compoundliteral116.i' (line 343)
[160, 184) '.compoundliteral122.i' (line 343)
[224, 248) '.compoundliteral130.i' (line 343)
[288, 312) '.compoundliteral136.i' (line 343)
[352, 376) '.compoundliteral142.i' (line 343)
[416, 440) '.compoundliteral152.i' (line 343)
[480, 504) '.compoundliteral158.i' (line 343)
[544, 568) '.compoundliteral164.i' (line 343)
[608, 632) '.compoundliteral169.i' (line 343)
[672, 676) 'stride.i' (line 158)
[688, 712) '.compoundliteral178.i' (line 343)
[752, 776) '.compoundliteral184.i' (line 343)
[816, 840) '.compoundliteral193.i' (line 343)
[880, 904) '.compoundliteral198.i' (line 343)
[944, 968) '.compoundliteral210.i' (line 343)
[1008, 1012) 'cid.i' (line 282)
[1024, 1032) 'data300.i' (line 283)
[1056, 1080) '.compoundliteral326.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1120, 1144) '.compoundliteral332.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1184, 1208) '.compoundliteral340.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1248, 1272) '.compoundliteral349.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1312, 1336) '.compoundliteral365.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1376, 1400) '.compoundliteral372.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1440, 1464) '.compoundliteral380.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1504, 1528) '.compoundliteral386.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1568, 1592) '.compoundliteral392.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1632, 1656) '.compoundliteral400.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1696, 1720) '.compoundliteral406.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1760, 1784) '.compoundliteral416.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1824, 1848) '.compoundliteral426.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[1888, 2376) 'acfg.i' (line 322) <== Memory access at offset 1032 partially underflows this variable
[2448, 2456) 'dsi.i' (line 323) <== Memory access at offset 1032 partially underflows this variable
[2480, 2484) 'dsi_len.i' (line 324) <== Memory access at offset 1032 partially underflows this variable
[2496, 2520) '.compoundliteral441.i' (line 343) <== Memory access at offset 1032 partially underflows this variable
[2560, 2564) 'start' (line 477) <== Memory access at offset 1032 partially underflows this variable
[2576, 2580) 'end' (line 477) <== Memory access at offset 1032 partially underflows this variable
[2592, 2596) 'key' (line 509) <== Memory access at offset 1032 partially underflows this variable
[2608, 2616) 'pck_data' (line 511) <== Memory access at offset 1032 partially underflows this variable
[2640, 2644) 'continuous' (line 595) <== Memory access at offset 1032 partially underflows this variable
[2656, 2664) 'pck_data179' (line 596) <== Memory access at offset 1032 partially underflows this variable
[2688, 3712) 'szStatus' (line 634) <== Memory access at offset 1032 partially underflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x9e5ed) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in fread
Shadow bytes around the buggy address:
0x10006a0e8a60: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8a70: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8a80: f2 f2 f2 f2 f8 f2 00 00 00 f2 f2 f2 f2 f2 00 00
0x10006a0e8a90: 00 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00
0x10006a0e8aa0: 00 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 04 f2
=>0x10006a0e8ab0: 00[f2]f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8ac0: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8ad0: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8ae0: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8af0: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
0x10006a0e8b00: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==718188==ABORTING
mpegts.c L2471
stack-buffer-overflow in /gpac/src/media_tools/mpegts.c:2471:21 in gf_m2ts_get_adaptation_field
asan
[31m[MPEG-2 TS] PID 1024: Bad Adaptation Descriptor found (tag 71) size is 71 but only 67 bytes available
[0m[31m[MPEG-2 TS] PID 1024: Bad Adaptation Descriptor found (tag 71) size is 71 but only 67 bytes available
[0m[33m[MPEG-2 TS] TS Packet 3 is scrambled - not supported
[0m[31m[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[0m[33m[MPEG-2 TS] TS Packet 5 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 6 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 7 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 8 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 9 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 10 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 11 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 12 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 13 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 14 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 15 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 16 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 17 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 18 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 19 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 20 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 21 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 22 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 23 is scrambled - not supported
[0m[33m[MPEG-2 TS] TS Packet 24 does not start with sync marker
[0m[33m[MPEG-2 TS] TS Packet 25 AF size is 71 when it must be 183 for AF type 2
[0m[33m[MPEG-2 TS] TS Packet 26 does not start with sync marker
[0m[33m[MPEG-2 TS] TS Packet 27 does not start with sync marker
[0m[31m[MPEG-2 TS] PID 1863: Bad Adaptation Extension found
[0m=================================================================
==738023==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd6b7fb75f at pc 0x7ff78ccec2b9 bp 0x7ffd6b7fb630 sp 0x7ffd6b7fb628
WRITE of size 1 at 0x7ffd6b7fb75f thread T0
#0 0x7ff78ccec2b8 in gf_m2ts_get_adaptation_field /home/user/fuzzing_gpac/gpac/src/media_tools/mpegts.c:2471:21
#1 0x7ff78cce0114 in gf_m2ts_process_packet /home/user/fuzzing_gpac/gpac/src/media_tools/mpegts.c:2565:16
#2 0x7ff78ccdf236 in gf_m2ts_process_data /home/user/fuzzing_gpac/gpac/src/media_tools/mpegts.c:2842:18
#3 0x7ff78d512ca8 in m2tsdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_m2ts.c:1173:5
#4 0x7ff78d30740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#5 0x7ff78d3262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#6 0x7ff78d37d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7ff78d37b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7ff78cc2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x564f871ee6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x564f871dfb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7ff78bc29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7ff78bc29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x564f87107dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
Address 0x7ffd6b7fb75f is located in stack of thread T0 at offset 287 in frame
#0 0x7ff78cceacdf in gf_m2ts_get_adaptation_field /home/user/fuzzing_gpac/gpac/src/media_tools/mpegts.c:2350
This frame has 2 object(s):
[32, 287) 'URL' (line 2442) <== Memory access at offset 287 overflows this variable
[352, 392) 'temi_loc' (line 2443)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/mpegts.c:2471:21 in gf_m2ts_get_adaptation_field
Shadow bytes around the buggy address:
0x10002d6f7690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f76a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f76b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f76c0: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
0x10002d6f76d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10002d6f76e0: 00 00 00 00 00 00 00 00 00 00 00[07]f2 f2 f2 f2
0x10002d6f76f0: f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3
0x10002d6f7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f7710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f7720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10002d6f7730: f1 f1 f1 f1 00 02 f2 f2 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==738023==ABORTING
``` | 2 stack-buffer-overflow in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2634/comments | 2 | 2023-10-12T18:16:41Z | 2023-10-19T21:00:44Z | https://github.com/gpac/gpac/issues/2634 | 1,940,541,874 | 2,634 |
[
"gpac",
"gpac"
] | Reproduce
./MP4Box -dash 10000 poc
poc: https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/segv_media
```
Description
3 SEGV in MP4Box
Version
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
Platform
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Credit
Gandalf4a
Impact
This vulnerability allows a remote attacker to cause a denial of service on an affected gpac MP4Box. Exploiting this vulnerability requires user interaction, as the target must access a malicious page or open a malicious file.
Occurrences
tx3g.c L105
SEGV in /gpac/src/isomedia/tx3g.c:105:46 in gf_isom_get_text_description
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/segv_105
asan
[32m[iso file] Unknown box type f0100b in parent tx3g
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==723342==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000024 (pc 0x7f9e8457c6ad bp 0x56467ebbcaa0 sp 0x7fff2b899080 T0)
==723342==The signal is caused by a READ memory access.
==723342==Hint: address points to the zero page.
#0 0x7f9e8457c6ad in gf_isom_get_text_description /home/user/fuzzing_gpac/gpac/src/isomedia/tx3g.c:105:46
#1 0x7f9e850293c0 in isor_declare_track /home/user/fuzzing_gpac/gpac/src/filters/isoffin_load.c:267:8
#2 0x7f9e8503e827 in isor_declare_objects /home/user/fuzzing_gpac/gpac/src/filters/isoffin_load.c:1728:3
#3 0x7f9e8504614f in isoffin_setup /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read.c:181:6
#4 0x7f9e85043443 in isoffin_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read.c:477:9
#5 0x7f9e84d0740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#6 0x7f9e84d262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#7 0x7f9e84d7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#8 0x7f9e84d7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#9 0x7f9e8462ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x56467ea9d6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#11 0x56467ea8eb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#12 0x7f9e83629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7f9e83629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#14 0x56467e9b6dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/isomedia/tx3g.c:105:46 in gf_isom_get_text_description
==723342==ABORTING
isoffin_load.c L92
SEGV in /gpac/bin/gcc/MP4Box+0x11cc00 in __sanitizer::internal_strlen(char const*)
poc
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/poc2/segv_11cc
asan
/home/user/vul/MP4Box/crashes1/id000400sig11src000359time287654266execs2699429ophavocrep16
[32m[iso file] Unknown box type 110387F4
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==741124==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55e484f78c00 bp 0x7ffec5f6e230 sp 0x7ffec5f6d9e8 T0)
==741124==The signal is caused by a READ memory access.
==741124==Hint: address points to the zero page.
#0 0x55e484f78c00 in __sanitizer::internal_strlen(char const*) (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x11cc00) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x55e484f4c461 in strdup (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0xf0461) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#2 0x7f475163175d in isor_get_chapters /home/user/fuzzing_gpac/gpac/src/filters/isoffin_load.c:92:20
#3 0x7f475163175d in isor_declare_track /home/user/fuzzing_gpac/gpac/src/filters/isoffin_load.c:1187:3
#4 0x7f475163e827 in isor_declare_objects /home/user/fuzzing_gpac/gpac/src/filters/isoffin_load.c:1728:3
#5 0x7f475164614f in isoffin_setup /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read.c:181:6
#6 0x7f4751643443 in isoffin_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read.c:477:9
#7 0x7f475130740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#8 0x7f47513262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#9 0x7f475137d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#10 0x7f475137b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#11 0x7f4750c2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#12 0x55e484fc56dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#13 0x55e484fb6b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#14 0x7f474fc29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x7f474fc29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#16 0x55e484ededd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x11cc00) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in __sanitizer::internal_strlen(char const*)
==741124==ABORTING
media.c L144
SEGV in /gpac/src/isomedia/media.c in Media_GetESD
asan
[32m[iso file] Unknown box type ysrC in parent lsr1
[0m[32m[iso file] Unknown top-level box type 08B0AB00
[0m[32m[iso file] Unknown box type ysrC in parent lsr1
[0m[32m[iso file] Unknown top-level box type 08B0AB00
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==709034==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000030 (pc 0x7fea150f47e4 bp 0x7ffcd94d09b0 sp 0x7ffcd94d06a0 T0)
==709034==The signal is caused by a READ memory access.
==709034==Hint: address points to the zero page.
#0 0x7fea150f47e4 in Media_GetESD /home/user/fuzzing_gpac/gpac/src/isomedia/media.c
#1 0x7fea151699d6 in GetESD /home/user/fuzzing_gpac/gpac/src/isomedia/track.c:86:6
#2 0x7fea1516cbe9 in GetESDForTime /home/user/fuzzing_gpac/gpac/src/isomedia/track.c:325:9
#3 0x7fea15055202 in gf_isom_get_root_od /home/user/fuzzing_gpac/gpac/src/isomedia/isom_read.c:792:23
#4 0x7fea1549ded7 in gf_sm_load_init_isom /home/user/fuzzing_gpac/gpac/src/scene_manager/loader_isom.c:369:47
#5 0x7fea1544c4ee in gf_sm_load_init /home/user/fuzzing_gpac/gpac/src/scene_manager/scene_manager.c:697:10
#6 0x55f84837059a in dump_isom_scene /home/user/fuzzing_gpac/gpac/applications/mp4box/filedump.c:208:6
#7 0x55f848358c0a in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6467:7
#8 0x7fea14229d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7fea14229e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#10 0x55f84827fdd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/isomedia/media.c in Media_GetESD
==709034==ABORTING
``` | 3 SEGV in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2633/comments | 2 | 2023-10-12T18:16:40Z | 2023-10-15T20:21:52Z | https://github.com/gpac/gpac/issues/2633 | 1,940,541,824 | 2,633 |
[
"gpac",
"gpac"
] | ./bin/gcc/MP4Box -dash 1000 -out /dev/null poc2_nul
https://github.com/Janette88/test_pocs/blob/main/poc2_null
```
Description
NULL Pointer Dereference in function gf_filter_pck_new_alloc_internal at filter_core/filter_pck.c:108.
Version
git log
commit 5692dc729491805e0e5f55c21d50ba1e6b19e88e (HEAD -> master, origin/master, origin/HEAD)
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Wed Oct 11 13:24:46 2023 +0200
ac3dmx: add remain size check (fixes #2627)
./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev577-g5692dc729-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Proof of Concept
reported (no instrumented program)
./configure --enable-sanitizer
make
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[PCMReframe] Missing audio sample rate, cannot parse
filter_core/filter_pck.c:108:6: runtime error: member access within null pointer of type 'struct GF_FilterPid'
Reported with ASAN (instrumented program):
./bin/gcc/MP4Box -dash 1000 -out /dev/null poc2_null
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[PCMReframe] Missing audio sample rate, cannot parse
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2015631==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f6dd4798891 bp 0x7ffee005d790 sp 0x7ffee005d6a0 T0)
==2015631==The signal is caused by a READ memory access.
==2015631==Hint: address points to the zero page.
#0 0x7f6dd4798891 in gf_filter_pck_new_alloc_internal (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x119b891)
#1 0x7f6dd4d1ef00 in pcmreframe_process (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x1721f00)
#2 0x7f6dd48571ce in gf_filter_process_task (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x125a1ce)
#3 0x7f6dd4825216 in gf_fs_thread_proc (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x1228216)
#4 0x7f6dd4823b0f in gf_fs_run (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x1226b0f)
#5 0x7f6dd41c2047 in gf_dasher_process (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0xbc5047)
#6 0x50205c in do_dash /home/fuzz/gpac/gpac/applications/mp4box/mp4box.c:4831:15
#7 0x4f34ee in mp4box_main /home/fuzz/gpac/gpac/applications/mp4box/mp4box.c:6245:7
#8 0x7f6dd327e082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
#9 0x42ad4d in _start (/home/fuzz/gpac/gpac/bin/gcc/MP4Box+0x42ad4d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/fuzz/gpac/gpac/bin/gcc/libgpac.so.12+0x119b891) in gf_filter_pck_new_alloc_internal
Impact
This vulnerability is capable of making the MP4Box crash, An attacker who can successfully exploit this vulnerability could potentially execute arbitrary code in the context of the application, leading to a compromise of the system where the vulnerable software is installed. Additionally, the attacker could use this vulnerability to cause a denial of service (DoS) by crashing the application or making it unresponsive. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of systems running the affected software.
Occurrences
filter_pck.c L108
``` | NULL Pointer Dereference in function gf_filter_pck_new_alloc_internal | https://api.github.com/repos/gpac/gpac/issues/2632/comments | 0 | 2023-10-12T18:16:38Z | 2023-10-13T14:25:21Z | https://github.com/gpac/gpac/issues/2632 | 1,940,541,749 | 2,632 |
[
"gpac",
"gpac"
] | MP4Box -dash 30000 -profile onDemand music_normal.mp4 -out music.mpd --dual
play music_normal_dashinit.mp4 in windows media player
when seek to the last part of the video. it is not playable and will jump back to the beggining .
no problem on other player .
@jeanlf in the last issue (https://github.com/gpac/gpac/issues/2488)
you mentioned
"
Here's what I checked:
dashing using 15s segments instead of 30s: playback until end OK
dashing video only with 30s segments: playback until end OK
dashing audio only with 30s segments: playback until end OK
The segment durations in 30s Audio+Video and 30s VideoOnly are the same, and the last segments are correct.
I think that's a WMP bug, there's not much we can do here.
"
I have set the segments to 29s 20s 15s , playback is OK.
[babcock_15.m3u8.txt](https://github.com/gpac/gpac/files/12879541/babcock_15.m3u8.txt)
[babcock_29.m3u8.txt](https://github.com/gpac/gpac/files/12879537/babcock_29.m3u8.txt)
[babcock_30.m3u8.txt](https://github.com/gpac/gpac/files/12879538/babcock_30.m3u8.txt)
babcock_15 and babcock_29 plays ok
for the same mp4 I use different version of mp4box ,the segment is different .
[20230922_new30.m3u8.txt](https://github.com/gpac/gpac/files/12879521/20230922_new30.m3u8.txt)
[20230922_org30.m3u8.txt](https://github.com/gpac/gpac/files/12879523/20230922_org30.m3u8.txt)
20230922_new30 plays ok
looks like this issue is related to segment strategy
do you still have the mp4 file(timely.mp4) mentioned in https://github.com/gpac/gpac/issues/2488 ?
we have a lot of cases here, however ,I could not send them to you , for it is customer data.
[timely.zip](https://github.com/gpac/gpac/files/12879591/timely.zip)
here is what I can provide
timly_29.m3u8 plays OK
while
timly_30.m3u8 last few seconds is not playable.
| the last few seconds of mp4 is not playable in windows media player | https://api.github.com/repos/gpac/gpac/issues/2631/comments | 5 | 2023-10-12T09:18:55Z | 2024-06-04T14:36:14Z | https://github.com/gpac/gpac/issues/2631 | 1,939,569,513 | 2,631 |
[
"gpac",
"gpac"
] | Is there a way to command line combine multiple video files into one while keeping the file actually playable and adding black bars to vertical clips?
This functionality kind of works when using MP4Joiner, but it is fairly slow to add files and it crashes very often when trying to combine 100+ files or some files that are broken for whatever playback reason.
The output is also often choppy and video files become garbled at points and playback is not possible. (MPC HC but eventually planning to upload to youtube unlisted)
However the addition of black bars is excellent and from my task manager i can see many files are being re-encoded with ffmpeg while the process is going on.
When using MP4Box, the videos combine, but playback is not possible a lot of the time and vertical clips are streched to fit the first horizontal size.
My command is this - i've tried some variations and removal of bs-switching as well.
`$command = '"C:\Program Files (x86)\MP4Tools\bin\MP4Box" -bs-switching merge -force-cat' ; (Get-ChildItem *.mp4 | sort { [regex]::Replace($_.Name, '\d+', { $args[0].Value.PadLeft(20) }) } ) | foreach { $command += " -cat $_" } ; $command += " combined.mp4" ;$command ; cmd /c $command`
(i have also tried the newest GPAC mp4box.exe files)
With this i get a full list of mp4's and they are all -cat'ed into the command.
Here are some sample files and the mp4 that is created when i combine with the mp4box command.
https://www.dropbox.com/scl/fo/auvvmk03oeoq2k7w175qv/h?rlkey=387jb5ccu9b6vvdv3k55qd1c9&dl=0
In these test files the mp4joiner file is also quite broken after combining. But the mp4box combined file handles vertical even worse.
How could i re-encode these to make the files actually play? I cant find a way right now, but it would be awesome to be able to combine my live photo clips to a movie. | combining multiple small video files (iphone live photo clips) into one file - horizontal and vertical files | https://api.github.com/repos/gpac/gpac/issues/2630/comments | 4 | 2023-10-11T07:52:49Z | 2023-10-13T09:09:09Z | https://github.com/gpac/gpac/issues/2630 | 1,937,091,378 | 2,630 |
[
"gpac",
"gpac"
] | # Version
```
root@4dd48d09e778:~/gpac/bin/gcc# ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev573-g201320819-master
(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:
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
```
# Platform
```
root@4dd48d09e778:~/gpac/bin/gcc# uname -a
Linux 4dd48d09e778 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
# Poc
```
Pocgpac:https://github.com/S0ngJX/Poc/blob/main/Pocgpac
```
# Asan
```
root@4dd48d09e778:~/gpac/bin/gcc# ./MP4Box -dash 1000 -profile live -out session.mpd Pocgpac:@reframer:sap=1 Pocgpac
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4066570==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ffff5cc2ed0 bp 0x7ffffffeaf40 sp 0x7ffffffea6d8 T0)
==4066570==The signal is caused by a READ memory access.
==4066570==Hint: address points to the zero page.
#0 0x7ffff5cc2ed0 (/lib/x86_64-linux-gnu/libc.so.6+0x184ed0)
#1 0x441f94 in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long) (/root/gpac/bin/gcc/MP4Box+0x441f94)
#2 0x44236a in bcmp (/root/gpac/bin/gcc/MP4Box+0x44236a)
#3 0x7ffff681ed6d in gf_isom_get_user_data /root/gpac/src/isomedia/isom_read.c:2807:51
#4 0x7ffff71e9acb in isor_declare_track /root/gpac/src/filters/isoffin_load.c:696:5
#5 0x7ffff71fb2f6 in isor_declare_objects /root/gpac/src/filters/isoffin_load.c:1728:3
#6 0x7ffff72023e7 in isoffin_setup /root/gpac/src/filters/isoffin_read.c:181:6
#7 0x7ffff71ffb66 in isoffin_configure_pid /root/gpac/src/filters/isoffin_read.c:477:9
#8 0x7ffff6f1abed in gf_filter_pid_configure /root/gpac/src/filter_core/filter_pid.c:876:6
#9 0x7ffff6f367b6 in gf_filter_pid_connect_task /root/gpac/src/filter_core/filter_pid.c:1230:3
#10 0x7ffff6f85478 in gf_fs_thread_proc /root/gpac/src/filter_core/filter_session.c:2105:3
#11 0x7ffff6f83fed in gf_fs_run /root/gpac/src/filter_core/filter_session.c:2405:3
#12 0x7ffff69bd98c in gf_dasher_process /root/gpac/src/media_tools/dash_segmenter.c:1236:6
#13 0x50dfc7 in do_dash /root/gpac/applications/mp4box/mp4box.c:4831:15
#14 0x50dfc7 in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6245:7
#15 0x7ffff5b62082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#16 0x42adad in _start (/root/gpac/bin/gcc/MP4Box+0x42adad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x184ed0)
==4066570==ABORTING
```
# Reproduce
```
./MP4Box -dash 1000 -profile live -out session.mpd Pocgpac:@reframer:sap=1 Pocgpac
```
# Credit
```
Song Jiaxuan (Huazhong University of Science and Technology)
Zeng Yunxiang (Huazhong University of Science and Technology)
```
| SEGV in gpac/src/isomedia/isom_read.c:2807:51 in gf_isom_get_user_data | https://api.github.com/repos/gpac/gpac/issues/2629/comments | 0 | 2023-10-10T04:03:18Z | 2023-10-11T10:57:17Z | https://github.com/gpac/gpac/issues/2629 | 1,934,290,908 | 2,629 |
[
"gpac",
"gpac"
] | I'm trying to build a custom filter that will push Transport Stream segments to GPAC. My filter will connect to an `m2tsdmx` for demuxing the data and continuing the processing.
My filter creates a PID with the same properties as the [TS muxer](https://github.com/gpac/gpac/blob/master/src/filters/mux_ts.c#L1144) and the filter capabilities are set similarly:
```c
CAP_UINT(GF_CAPS_OUTPUT_STATIC, GF_PROP_PID_STREAM_TYPE, GF_STREAM_FILE),
CAP_STRING(GF_CAPS_OUTPUT_STATIC, GF_PROP_PID_FILE_EXT, M2TS_FILE_EXTS),
CAP_STRING(GF_CAPS_OUTPUT_STATIC, GF_PROP_PID_MIME, M2TS_MIMES),
```
## The problem
After building an instance of my filter (`tssource`) and one of `m2tsdmx` and connecting them together using `gf_filter_set_source` (which return OK error code), the filters still are not connected.
### Questions
* Is there a way to diagnose why the `gf_filter_set_source` failed at creating the links between two filters? Currently, `gf_filter_set_source` returns OK, so I'm not sure where else to look for information.
* What should be the Filter caps, and PID properties needed to be able to feed an instance of `m2tsdmx`?
Debug information:
```
Session debug info (UTC 1696887822289)
Filter stats - 0 filters
Session stats - threads 1
Thread 1: run_time 0 us active_time 0 us nb_tasks 0
Total: run_time 0 us active_time 0 us nb_tasks 0
Main thread tasks:
Filters status:
[ts_source] initialize
[ts_source] creating output pid
IS SOURCE: false
IS SINK: false
Session debug info (UTC 1696887822289)
Filters connected:
tssource (idx=1)
Filters not connected:
m2tsdmx (idx=2)
Filter stats - 2 filters
Filter tssource ID _0x5580bc598660_ : 0 input pids 1 output pids 0 tasks 0 us process time
* output PID ts_source: 0 packets sent
Filter m2tsdmx : 0 input pids 0 output pids 0 tasks 0 us process time
Session stats - threads 1
Thread 1: run_time 1696887822289707 us active_time 0 us nb_tasks 0
Total: run_time 1696887822289707 us active_time 0 us nb_tasks 0
Main thread tasks:
T1 "pid_init" filter "tssource" (tssource) output PID ts_source force_main
Filters status:
F1 "tssource" (tssource) ID _0x5580bc598660_ - 0 PIDs playing tasks:
T1 "pid_init" notified filter "tssource" (tssource) output PID ts_source force_main
F2 "m2tsdmx" (m2tsdmx) - 0 PIDs playing no tasks
[ts_source] finalize
Session debug info (UTC 1696887822290)
Filters not connected:
m2tsdmx (idx=2)
Filters in unknown connection state:
tssource (idx=1)
Filter stats - 2 filters
Filter tssource ID _0x5580bc598660_ : 0 input pids 0 output pids 1 tasks 1170 us process time
Filter m2tsdmx : 0 input pids 0 output pids 0 tasks 0 us process time
Session stats - threads 1
Thread 1: run_time 1696887822289707 us active_time 1170 us nb_tasks 1
Total: run_time 1696887822289707 us active_time 1170 us nb_tasks 1
Main thread tasks:
Filters status:
F1 "tssource" (tssource) ID _0x5580bc598660_ - 0 PIDs playing - finalized
F2 "m2tsdmx" (m2tsdmx) - 0 PIDs playing no tasks
Session debug info (UTC 1696887822291)
Filters not connected:
m2tsdmx (idx=2)
Filters in unknown connection state:
tssource (idx=1)
Filter stats - 2 filters
Filter tssource ID _0x5580bc598660_ : 0 input pids 0 output pids 2 tasks 1170 us process time
Filter m2tsdmx : 0 input pids 0 output pids 0 tasks 0 us process time
Session stats - threads 1
Thread 1: run_time 1696887822289707 us active_time 1172 us nb_tasks 2
Total: run_time 1696887822289707 us active_time 1172 us nb_tasks 2
Main thread tasks:
Filters status:
F1 "tssource" (tssource) ID _0x5580bc598660_ - 0 PIDs playing - finalized
F2 "m2tsdmx" (m2tsdmx) - 0 PIDs playing no tasks
Session debug info (UTC 1696887822291)
Filters not connected:
m2tsdmx (idx=2)
Filters in unknown connection state:
tssource (idx=1)
Filter stats - 2 filters
Filter tssource ID _0x5580bc598660_ : 0 input pids 0 output pids 2 tasks 1170 us process time
Filter m2tsdmx : 0 input pids 0 output pids 0 tasks 0 us process time
Session stats - threads 1
Thread 1: run_time 1696887822289707 us active_time 1172 us nb_tasks 2
Total: run_time 1696887822289707 us active_time 1172 us nb_tasks 2
Main thread tasks:
Filters status:
F1 "tssource" (tssource) ID _0x5580bc598660_ - 0 PIDs playing - finalized
F2 "m2tsdmx" (m2tsdmx) - 0 PIDs playing no tasks
``` | Detect PID connection erros using C-API | https://api.github.com/repos/gpac/gpac/issues/2628/comments | 3 | 2023-10-09T21:55:57Z | 2023-12-04T10:13:05Z | https://github.com/gpac/gpac/issues/2628 | 1,933,875,487 | 2,628 |
[
"gpac",
"gpac"
] | POC:
```
./MP4Box -dash 1000 ./POC5_min
```
[POC File](https://drive.google.com/file/d/1TEACJHSYHvkd1CSYuK7QTN_ElGriJClC)
```
Environment
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Version
I checked against the latest release as of 10/08/23 the current master branch at commit 50c2ab06f45a3101d73d6f317e98f041809f4923 .
Description
This AddressSanitizer output is indicating an OOB read of invalid heap memory. This exception occurred in the function ac3dmx_process at [line 489](https://github.com/gpac/gpac/blob/master/src/filters/reframe_ac3.c#L489) in the file src/filters/reframe_ac3.c. This error being an OOB read indicates that the error is related to the source calculation [here](https://github.com/gpac/gpac/blob/master/src/filters/reframe_ac3.c#L465).
src/filters/reframe_ac3.c:[line 489](https://github.com/gpac/gpac/blob/master/src/filters/reframe_ac3.c#L489)
memcpy(output, sync, ctx->hdr.framesize);
ASAN
[BS] Attempt to overread bitstream
[Dasher] No template assigned, using $File$_dash$FS$$Number$
=================================================================
==1037600==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300000293c at pc 0x5555563f1b57 bp 0x7fffffff6670 sp 0x7fffffff5e40
READ of size 98 at 0x60300000293c thread T0
#0 0x5555563f1b56 in __asan_memcpy (/path/gpac/build/bin/gcc/MP4Box+0xe9db56) (BuildId: 1b19b3f64554102b121e6b611467f4f8dd9b5747)
#1 0x55555787b067 in ac3dmx_process /path/gpac/src/filters/reframe_ac3.c:489:4
#2 0x555557276bc7 in gf_filter_process_task /path/gpac/src/filter_core/filter.c:2971:7
#3 0x55555722b99e in gf_fs_thread_proc /path/gpac/src/filter_core/filter_session.c:2105:3
#4 0x55555722985d in gf_fs_run /path/gpac/src/filter_core/filter_session.c:2405:3
#5 0x555556dd7a39 in gf_dasher_process /path/gpac/src/media_tools/dash_segmenter.c:1236:6
#6 0x55555646143c in do_dash /path/gpac/applications/mp4box/mp4box.c:4831:15
#7 0x555556451064 in mp4box_main /path/gpac/applications/mp4box/mp4box.c:6245:7
#8 0x7ffff6fe11c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7ffff6fe1284 in __libc_start_main csu/../csu/libc-start.c:360:3
#10 0x55555636f9e0 in _start (/path/gpac/build/bin/gcc/MP4Box+0xe1b9e0) (BuildId: 1b19b3f64554102b121e6b611467f4f8dd9b5747)
0x60300000293c is located 0 bytes to the right of 28-byte region [0x603000002920,0x60300000293c)
allocated by thread T0 here:
#0 0x5555563f2c56 in __interceptor_realloc (/path/gpac/build/bin/gcc/MP4Box+0xe9ec56) (BuildId: 1b19b3f64554102b121e6b611467f4f8dd9b5747)
#1 0x55555787a567 in ac3dmx_process /path/gpac/src/filters/reframe_ac3.c:399:22
#2 0x555557276bc7 in gf_filter_process_task /path/gpac/src/filter_core/filter.c:2971:7
#3 0x55555722b99e in gf_fs_thread_proc /path/gpac/src/filter_core/filter_session.c:2105:3
#4 0x55555722985d in gf_fs_run /path/gpac/src/filter_core/filter_session.c:2405:3
#5 0x555556dd7a39 in gf_dasher_process /path/gpac/src/media_tools/dash_segmenter.c:1236:6
#6 0x55555646143c in do_dash /path/gpac/applications/mp4box/mp4box.c:4831:15
#7 0x555556451064 in mp4box_main /path/gpac/applications/mp4box/mp4box.c:6245:7
#8 0x7ffff6fe11c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
SUMMARY: AddressSanitizer: heap-buffer-overflow (/path/gpac/build/bin/gcc/MP4Box+0xe9db56) (BuildId: 1b19b3f64554102b121e6b611467f4f8dd9b5747) in __asan_memcpy
Shadow bytes around the buggy address:
0x0c067fff84d0: fd fd fd fd fa fa 00 00 01 fa fa fa fd fd fd fd
0x0c067fff84e0: fa fa fd fd fd fa fa fa 00 00 01 fa fa fa 00 00
0x0c067fff84f0: 01 fa fa fa 00 00 00 00 fa fa 00 00 00 00 fa fa
0x0c067fff8500: 00 00 01 fa fa fa fd fd fd fd fa fa fd fd fd fd
0x0c067fff8510: fa fa 00 00 01 fa fa fa 00 00 00 fa fa fa 00 00
=>0x0c067fff8520: 00 fa fa fa 00 00 00[04]fa fa 00 00 00 00 fa fa
0x0c067fff8530: 00 00 02 fa fa fa 00 00 00 fa fa fa 00 00 01 fa
0x0c067fff8540: fa fa 00 00 00 00 fa fa 00 00 01 fa fa fa 00 00
0x0c067fff8550: 01 fa fa fa 00 00 05 fa fa fa 00 00 04 fa fa fa
0x0c067fff8560: 00 00 06 fa fa fa 00 00 00 fa fa fa 00 00 00 00
0x0c067fff8570: fa fa 00 00 02 fa fa fa 00 00 00 01 fa fa fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==1037600==ABORTING
Impact
An OOB read on the heap can potentially cause a crash or information disclosure in some cases. Could be leveraged with other vulnerabilities for a more serious impact.
Occurrences
reframe_ac3.c L489
ASAN code site.
``` | Heap OOB Read | https://api.github.com/repos/gpac/gpac/issues/2627/comments | 3 | 2023-10-09T09:27:52Z | 2023-10-12T12:52:59Z | https://github.com/gpac/gpac/issues/2627 | 1,932,647,728 | 2,627 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000047sig11src000947time29319138execs272958ophavocrep4
[32m[DASH] Updated manifest:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Manifest after update:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Setting up period start 0 duration 0 xlink none ID DID1
[0m[32m[DASH] AS#1 changed quality to bitrate 10 kbps - Width 1280 Height 720 FPS 30/1 (playback speed 1)
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==828815==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f3d0b7997ab bp 0x7ffd3348c3e0 sp 0x7ffd3348c398 T0)
==828815==The signal is caused by a READ memory access.
==828815==Hint: address points to the zero page.
#0 0x7f3d0b7997ab string/../sysdeps/x86_64/multiarch/memchr-avx2.S:81
#1 0x7f3d0b68f9e7 in _IO_str_init_static_internal libio/./libio/strops.c:41:11
#2 0x7f3d0b662401 in _IO_strfile_read stdio-common/../libio/strfile.h:95:3
#3 0x7f3d0b662401 in __isoc99_vsscanf stdio-common/./stdio-common/isoc99_vsscanf.c:33:13
#4 0x5631380a2040 in __isoc99_sscanf (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0xa4040) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#5 0x7f3d0c7a50ec in gf_dash_setup_period /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:6387:11
#6 0x7f3d0c75886f in dash_setup_period_and_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:7686:7
#7 0x7f3d0c75886f in gf_dash_process_internal /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8018:7
#8 0x7f3d0c75886f in gf_dash_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8089:9
#9 0x7f3d0cee2e03 in dashdmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:3192:6
#10 0x7f3d0cdafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#11 0x7f3d0cd7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#12 0x7f3d0cd7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#13 0x7f3d0c62ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#14 0x5631381676dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#15 0x563138158b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#16 0x7f3d0b629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#17 0x7f3d0b629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#18 0x563138080dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV string/../sysdeps/x86_64/multiarch/memchr-avx2.S:81
==828815==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_81
# Credit
```
Gandalf4a
``` | SEGV in gf_dash_setup_period /gpac/src/media_tools/dash_client.c:6387:11 | https://api.github.com/repos/gpac/gpac/issues/2626/comments | 0 | 2023-10-08T16:36:53Z | 2023-10-09T10:05:49Z | https://github.com/gpac/gpac/issues/2626 | 1,931,902,902 | 2,626 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000086sig11src000545time51253264execs479632ophavocrep4
[31m[NHMLDmx] parsing NHML file - StreamType or MediaType not specified
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==833447==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f53efb329a0 bp 0x0000504d5354 sp 0x7ffd7c1363c0 T0)
==833447==The signal is caused by a READ memory access.
==833447==Hint: address points to the zero page.
#0 0x7f53efb329a0 in filter_pid_get_prop_map /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:5820:6
#1 0x7f53efb32908 in gf_filter_pid_get_property /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:5852:24
#2 0x7f53efd2cd52 in nhmldmx_init_parsing /home/user/fuzzing_gpac/gpac/src/filters/dmx_nhml.c:1144:6
#3 0x7f53efd2cd52 in nhmldmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_nhml.c:1710:7
#4 0x7f53efbafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#5 0x7f53efb7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#6 0x7f53efb7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#7 0x7f53ef42ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#8 0x5579e66ac6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#9 0x5579e669db6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#10 0x7f53ee429d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#11 0x7f53ee429e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#12 0x5579e65c5dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:5820:6 in filter_pid_get_prop_map
==833447==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_5820
# Credit
```
Gandalf4a
``` | SEGV in /gpac/src/filter_core/filter_pid.c:5820:6 in filter_pid_get_prop_map | https://api.github.com/repos/gpac/gpac/issues/2625/comments | 0 | 2023-10-08T16:35:33Z | 2023-10-12T14:59:01Z | https://github.com/gpac/gpac/issues/2625 | 1,931,902,480 | 2,625 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000075sig11src000922time30851494execs289679ophavocrep2
[32m[iso file] Unknown box type stbf in parent minf
[0m[33m[iso file] Track with no sample table !
[0m[33m[iso file] Track with no sample description box !
[0m[33m[IsoMedia] Track 1 type 00000000 not natively handled
[0m[31m[IsoMedia] Failed to create pid for track 1, could not extract codec/streamtype info
[0m[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[32m[Dasher] No bitrate property assigned to PID V2, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V3, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V4, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V5, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V64, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V7, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V8, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V9, computing from bitstream
[0m[32m[Dasher] No bitrate property assigned to PID V10, computing from bitstream
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==832201==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000024 (pc 0x7f005de3b704 bp 0x7ffc289969b0 sp 0x7ffc2898fa40 T0)
==832201==The signal is caused by a READ memory access.
==832201==Hint: address points to the zero page.
#0 0x7f005de3b704 in get_base_ds /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:2003:11
#1 0x7f005de3b704 in dasher_setup_sources /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:4183:19
#2 0x7f005de3b704 in dasher_setup_period /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:7023:3
#3 0x7f005de5be25 in dasher_switch_period /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:6478:9
#4 0x7f005de14d45 in dasher_process /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:9683:6
#5 0x7f005ddafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#6 0x7f005dd7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7f005dd7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7f005d62ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x560ee54c46dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x560ee54b5b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7f005c629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7f005c629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x560ee53dddd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/filters/dasher.c:2003:11 in get_base_ds
==832201==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_2003
# Credit
```
Gandalf4a
``` | SEGV in /gpac/src/filters/dasher.c:2003:11 in get_base_ds | https://api.github.com/repos/gpac/gpac/issues/2624/comments | 0 | 2023-10-08T16:34:39Z | 2023-10-09T10:31:16Z | https://github.com/gpac/gpac/issues/2624 | 1,931,902,165 | 2,624 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000045sig11src000947time29283968execs272559ophavocrep8
[33m[MPD] Wrong namespace found for DASH MPD - cannot parse
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==828592==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000060 (pc 0x7fa12475da75 bp 0x55a6e3597aa0 sp 0x7fffb8f09790 T0)
==828592==The signal is caused by a READ memory access.
==828592==Hint: address points to the zero page.
#0 0x7fa12475da75 in gf_dash_check_periods /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8158:6
#1 0x7fa12475b8a7 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8581:6
#2 0x7fa124ee97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#3 0x7fa124d0740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#4 0x7fa124d262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#5 0x7fa124d7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#6 0x7fa124d7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#7 0x7fa12462ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#8 0x55a6e34786dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#9 0x55a6e3469b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#10 0x7fa123629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#11 0x7fa123629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#12 0x55a6e3391dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8158:6 in gf_dash_check_periods
==828592==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_8158
# Credit
```
Gandalf4a
``` | SEGV in /gpac/src/media_tools/dash_client.c:8158:6 in gf_dash_check_periods | https://api.github.com/repos/gpac/gpac/issues/2623/comments | 0 | 2023-10-08T16:33:23Z | 2023-10-09T10:31:15Z | https://github.com/gpac/gpac/issues/2623 | 1,931,901,762 | 2,623 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000044sig11src000947time29086113execs270461ophavocrep4
[32m[DASH] Updated manifest:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Manifest after update:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Setting up period start 0 duration 0 xlink none ID DID1
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==828497==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000060 (pc 0x7f8094f5323b bp 0x7fff72751bb0 sp 0x7fff72751940 T0)
==828497==The signal is caused by a READ memory access.
==828497==Hint: address points to the zero page.
#0 0x7f8094f5323b in gf_dash_group_get_dependency_group /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:5162:16
#1 0x7f8094f5323b in gf_dash_setup_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:5431:7
#2 0x7f8094fa0551 in gf_dash_setup_period /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:6263:2
#3 0x7f8094f5886f in dash_setup_period_and_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:7686:7
#4 0x7f8094f5886f in gf_dash_process_internal /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8018:7
#5 0x7f8094f5886f in gf_dash_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8089:9
#6 0x7f80956e2e03 in dashdmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:3192:6
#7 0x7f80955afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#8 0x7f809557d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#9 0x7f809557b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#10 0x7f8094e2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#11 0x55d2907ae6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#12 0x55d29079fb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#13 0x7f8093e29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#14 0x7f8093e29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#15 0x55d2906c7dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:5162:16 in gf_dash_group_get_dependency_group
==828497==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_5162
# Credit
```
Gandalf4a
``` | SEGV in /gpac/src/media_tools/dash_client.c:5162:16 in gf_dash_group_get_dependency_group | https://api.github.com/repos/gpac/gpac/issues/2622/comments | 0 | 2023-10-08T16:32:12Z | 2023-10-09T10:31:16Z | https://github.com/gpac/gpac/issues/2622 | 1,931,900,558 | 2,622 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000073sig11src000947time30252119execs283200ophavocrep2
[32m[DASH] Updated manifest:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Manifest after update:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Setting up period start 0 duration 0 xlink none ID DID1
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==831999==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55d7af75c8f5 bp 0x7ffc25365a10 sp 0x7ffc253651c0 T0)
==831999==The signal is caused by a READ memory access.
==831999==Hint: address points to the zero page.
#0 0x55d7af75c8f5 in strcmp (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x998f5) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fc7875519a1 in gf_dash_setup_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:5382:11
#2 0x7fc7875a0551 in gf_dash_setup_period /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:6263:2
#3 0x7fc78755886f in dash_setup_period_and_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:7686:7
#4 0x7fc78755886f in gf_dash_process_internal /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8018:7
#5 0x7fc78755886f in gf_dash_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8089:9
#6 0x7fc787ce2e03 in dashdmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:3192:6
#7 0x7fc787bafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#8 0x7fc787b7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#9 0x7fc787b7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#10 0x7fc78742ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#11 0x55d7af82c6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#12 0x55d7af81db6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#13 0x7fc786429d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#14 0x7fc786429e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#15 0x55d7af745dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x998f5) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in strcmp
==831999==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_998f5
# Credit
```
Gandalf4a
``` | SEGV in gf_dash_setup_groups /gpac/src/media_tools/dash_client.c:5382:11 | https://api.github.com/repos/gpac/gpac/issues/2621/comments | 0 | 2023-10-08T16:30:12Z | 2023-10-09T10:31:17Z | https://github.com/gpac/gpac/issues/2621 | 1,931,896,942 | 2,621 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000042sig11src000947time28982876execs269374ophavocrep2
[32m[DASH] Updated manifest:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Manifest after update:
[0m[32m P#1: start 0 - duration 0 - xlink none
[0m[32m[DASH] Setting up period start 0 duration 0 xlink none ID DID1
[0m[32m[DASH] AS#1 changed quality to bitrate 10 kbps - Width 1280 Height 720 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#2 changed quality to bitrate 120 kbps - Width 384 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#3 changed quality to bitrate 120 kbps - Width 448 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#4 changed quality to bitrate 120 kbps - Width 448 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#5 changed quality to bitrate 120 kbps - Width 384 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#6 changed quality to bitrate 120 kbps - Width 448 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#7 changed quality to bitrate 120 kbps - Width 448 Height 256 FPS 30/1 (playback speed 1)
[0m[32m[DASH] AS#8 changed quality to bitrate 120 kbps - Width 384 Height 208 FPS 30/1 (playback speed 1)
[0mAddressSanitizer:DEADLYSIGNAL
=================================================================
==827840==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5592577198f0 bp 0x7fff973c98f0 sp 0x7fff973c90a0 T0)
==827840==The signal is caused by a READ memory access.
==827840==Hint: address points to the zero page.
#0 0x5592577198f0 in strcmp (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x998f0) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fc88d7a4fec in gf_dash_setup_period /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:6384:9
#2 0x7fc88d75886f in dash_setup_period_and_groups /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:7686:7
#3 0x7fc88d75886f in gf_dash_process_internal /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8018:7
#4 0x7fc88d75886f in gf_dash_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8089:9
#5 0x7fc88dee2e03 in dashdmx_process /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:3192:6
#6 0x7fc88ddafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#7 0x7fc88dd7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#8 0x7fc88dd7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#9 0x7fc88d62ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x5592577e96dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#11 0x5592577dab6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#12 0x7fc88c629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7fc88c629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#14 0x559257702dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x998f0) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in strcmp
==827840==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/segv_998f0
# Credit
```
Gandalf4a
``` | SEGV in gf_dash_setup_period /gpac/src/media_tools/dash_client.c:6384:9 | https://api.github.com/repos/gpac/gpac/issues/2620/comments | 1 | 2023-10-08T16:28:48Z | 2023-10-09T10:30:00Z | https://github.com/gpac/gpac/issues/2620 | 1,931,894,507 | 2,620 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000105sig06src005557time57542460execs543848ophavocrep8
[31m[Core] exp-golomb read failed, not enough bits in bitstream !
[0m[31m[HEVC] Error parsing NAL unit type 33
[0m[31m[HEVC] Error parsing Sequence Param Set
[0m[31m[BS] Attempt to overread bitstream
[0m[31m[Core] exp-golomb read failed, not enough bits in bitstream !
[0m[31m[HEVC] Wrong number of output layer sets in VPS 242, max 4 supported
[0m[31m[HEVC] Failed to parse VPS extensions
[0m[31m[Core] exp-golomb read failed, not enough bits in bitstream !
[0m[31m[HEVC] Error parsing NAL unit type 32
[0m[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[31m[HEVC] Wrong param set size 23573
[0m[31m[Core] exp-golomb read failed, not enough bits in bitstream !
[0m[31m[HEVC] Error parsing NAL unit type 33
[0m[31m[HEVC] Error parsing Sequence Param Set
[0m=================================================================
==835250==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000009f4 at pc 0x7fe74e25ad41 bp 0x7ffdbf9be150 sp 0x7ffdbf9be148
READ of size 1 at 0x6140000009f4 thread T0
#0 0x7fe74e25ad40 in naludmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3269:23
#1 0x7fe74ddafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#2 0x7fe74dd7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#3 0x7fe74dd7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#4 0x7fe74d62ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#5 0x5601a8e0b6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#6 0x5601a8dfcb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#7 0x7fe74c629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#8 0x7fe74c629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#9 0x5601a8d24dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x6140000009f4 is located 0 bytes to the right of 436-byte region [0x614000000840,0x6140000009f4)
allocated by thread T0 here:
#0 0x5601a8da8046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fe74e24fbe4 in naludmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3122:21
#2 0x7fe74ddafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3269:23 in naludmx_process
Shadow bytes around the buggy address:
0x0c287fff80e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c287fff80f0: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa
0x0c287fff8100: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c287fff8110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c287fff8120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c287fff8130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04]fa
0x0c287fff8140: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c287fff8150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c287fff8160: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c287fff8170: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa
0x0c287fff8180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==835250==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_3269
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/filters/reframe_nalu.c:3269:23 in naludmx_process | https://api.github.com/repos/gpac/gpac/issues/2619/comments | 0 | 2023-10-08T16:26:13Z | 2023-10-12T14:55:02Z | https://github.com/gpac/gpac/issues/2619 | 1,931,892,233 | 2,619 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000034sig06src004073time23307882execs220140ophavocrep16
=================================================================
==827076==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001e17 at pc 0x7f543e2bd2f9 bp 0x7ffc29e81a50 sp 0x7ffc29e81a48
WRITE of size 8 at 0x602000001e17 thread T0
#0 0x7f543e2bd2f8 in swf_init_decompress /home/user/fuzzing_gpac/gpac/src/scene_manager/swf_parse.c:110:2
#1 0x7f543e2bd2f8 in gf_swf_read_header /home/user/fuzzing_gpac/gpac/src/scene_manager/swf_parse.c:2611:3
#2 0x7f543eac760b in gf_text_swf_setup /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:2488:6
#3 0x7f543eac760b in gf_text_process_swf /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:2535:10
#4 0x7f543eaa0f8f in txtin_process /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:4015:6
#5 0x7f543e7afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#6 0x7f543e77d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7f543e77b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7f543e02ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x5651df0cd6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x5651df0beb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7f543d029d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7f543d029e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x5651defe6dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x602000001e17 is located 6 bytes to the right of 1-byte region [0x602000001e10,0x602000001e11)
allocated by thread T0 here:
#0 0x5651df069c1e in malloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105c1e) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f543e2bcd0a in swf_init_decompress /home/user/fuzzing_gpac/gpac/src/scene_manager/swf_parse.c:109:8
#2 0x7f543e2bcd0a in gf_swf_read_header /home/user/fuzzing_gpac/gpac/src/scene_manager/swf_parse.c:2611:3
#3 0x7f543eac760b in gf_text_swf_setup /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:2488:6
#4 0x7f543eac760b in gf_text_process_swf /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:2535:10
#5 0x7f543eaa0f8f in txtin_process /home/user/fuzzing_gpac/gpac/src/filters/load_text.c:4015:6
#6 0x7f543e7afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/scene_manager/swf_parse.c:110:2 in swf_init_decompress
Shadow bytes around the buggy address:
0x0c047fff8370: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa fd fd
0x0c047fff8380: fa fa fd fd fa fa 06 fa fa fa 00 00 fa fa 00 00
0x0c047fff8390: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff83a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff83b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff83c0: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==827076==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_110
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/scene_manager/swf_parse.c:110:2 in swf_init_decompress | https://api.github.com/repos/gpac/gpac/issues/2618/comments | 0 | 2023-10-08T16:24:24Z | 2023-10-11T10:57:17Z | https://github.com/gpac/gpac/issues/2618 | 1,931,891,670 | 2,618 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000003sig06src000693time10932099execs107049ophavocrep8
=================================================================
==823268==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001ea0 at pc 0x7fd156d00a7c bp 0x7ffd836ab610 sp 0x7ffd836ab608
READ of size 8 at 0x602000001ea0 thread T0
#0 0x7fd156d00a7b in gf_m3u8_parse_sub_playlist /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1239:13
#1 0x7fd156d18174 in gf_m3u8_to_mpd /home/user/fuzzing_gpac/gpac/src/media_tools/mpd.c:2230:6
#2 0x7fd156d5ad99 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8506:8
#3 0x7fd1574e97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#4 0x7fd15730740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#5 0x7fd1573262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#6 0x7fd15737d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#7 0x7fd15737b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#8 0x7fd156c2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#9 0x564c90dad6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#10 0x564c90d9eb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#11 0x7fd155c29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#12 0x7fd155c29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#13 0x564c90cc6dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x602000001ea0 is located 0 bytes to the right of 16-byte region [0x602000001e90,0x602000001ea0)
allocated by thread T0 here:
#0 0x564c90d49e08 in __interceptor_calloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105e08) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7fd156d043c0 in extract_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:329:8
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1239:13 in gf_m3u8_parse_sub_playlist
Shadow bytes around the buggy address:
0x0c047fff8380: fa fa 00 00 fa fa 00 00 fa fa fd fd fa fa fd fd
0x0c047fff8390: fa fa 07 fa fa fa 05 fa fa fa 00 00 fa fa 00 00
0x0c047fff83a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 03
0x0c047fff83b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff83c0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff83d0: fa fa 00 00[fa]fa fd fa fa fa fa fa fa fa fa fa
0x0c047fff83e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8420: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==823268==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_1239
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/media_tools/m3u8.c:1239:13 in gf_m3u8_parse_sub_playlist | https://api.github.com/repos/gpac/gpac/issues/2617/comments | 0 | 2023-10-08T16:22:43Z | 2023-10-09T14:09:43Z | https://github.com/gpac/gpac/issues/2617 | 1,931,891,081 | 2,617 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000001sig06src000693time10921735execs106934ophavocrep8
[33m[M3U8] Unsupported directive #EXT-X-VERSION:
[0m=================================================================
==823056==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001f2f at pc 0x7f5320f00fca bp 0x7fffc6bb8070 sp 0x7fffc6bb8068
WRITE of size 1 at 0x602000001f2f thread T0
#0 0x7f5320f00fc9 in parse_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:538:39
#1 0x7f5320f00fc9 in gf_m3u8_parse_sub_playlist /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1233:18
#2 0x7f5320f18174 in gf_m3u8_to_mpd /home/user/fuzzing_gpac/gpac/src/media_tools/mpd.c:2230:6
#3 0x7f5320f5ad99 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8506:8
#4 0x7f53216e97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#5 0x7f532150740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#6 0x7f53215262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#7 0x7f532157d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#8 0x7f532157b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#9 0x7f5320e2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x562f308dc6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#11 0x562f308cdb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#12 0x7f531fe29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7f531fe29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#14 0x562f307f5dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x602000001f2f is located 1 bytes to the left of 1-byte region [0x602000001f30,0x602000001f31)
allocated by thread T0 here:
#0 0x562f30863623 in strdup (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0xf0623) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f5320efc6a4 in parse_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:537:29
#2 0x7f5320efc6a4 in gf_m3u8_parse_sub_playlist /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1233:18
#3 0x7f5320f18174 in gf_m3u8_to_mpd /home/user/fuzzing_gpac/gpac/src/media_tools/mpd.c:2230:6
#4 0x7f5320f5ad99 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8506:8
#5 0x7f53216e97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#6 0x7f532150740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#7 0x7f53215262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#8 0x7f532157d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:538:39 in parse_attributes
Shadow bytes around the buggy address:
0x0c047fff8390: fa fa 07 fa fa fa 05 fa fa fa 00 00 fa fa 00 00
0x0c047fff83a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 03
0x0c047fff83b0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff83c0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff83d0: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fa
=>0x0c047fff83e0: fa fa 07 fa fa[fa]01 fa fa fa fa fa fa fa fa fa
0x0c047fff83f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8420: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8430: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==823056==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_538
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/media_tools/m3u8.c:538:39 in parse_attributes | https://api.github.com/repos/gpac/gpac/issues/2616/comments | 0 | 2023-10-08T16:20:42Z | 2023-10-09T14:09:43Z | https://github.com/gpac/gpac/issues/2616 | 1,931,890,315 | 2,616 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000000sig06src000693time10872278execs106399ophavocrep16
[33m[M3U8] Unsupported directive #EXT-X-SE>8ER-CONTROL:P@RT-HOL0-BACK=3
[0m[33m[M3U8] Unsupported directive #EXT-X-PA
[0m[33m[M3U8] Unsupported directive #EXT-X-INDEPENDENT�SE�XT-X-INDEPENDENT-SEGMENTS
[0m=================================================================
==822909==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000006f8 at pc 0x7f8553b00fb8 bp 0x7ffdd0c64ed0 sp 0x7ffdd0c64ec8
READ of size 8 at 0x6040000006f8 thread T0
#0 0x7f8553b00fb7 in parse_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:529:10
#1 0x7f8553b00fb7 in gf_m3u8_parse_sub_playlist /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1233:18
#2 0x7f8553b18174 in gf_m3u8_to_mpd /home/user/fuzzing_gpac/gpac/src/media_tools/mpd.c:2230:6
#3 0x7f8553b5ad99 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8506:8
#4 0x7f85542e97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#5 0x7f855410740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#6 0x7f85541262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#7 0x7f855417d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#8 0x7f855417b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#9 0x7f8553a2ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x55daa16d76dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#11 0x55daa16c8b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#12 0x7f8552a29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7f8552a29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#14 0x55daa15f0dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x6040000006f8 is located 0 bytes to the right of 40-byte region [0x6040000006d0,0x6040000006f8)
allocated by thread T0 here:
#0 0x55daa1673e08 in __interceptor_calloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105e08) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f8553b043c0 in extract_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:329:8
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:529:10 in parse_attributes
Shadow bytes around the buggy address:
0x0c087fff8080: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff8090: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80a0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80b0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80c0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
=>0x0c087fff80d0: fa fa 00 00 00 00 00 03 fa fa 00 00 00 00 00[fa]
0x0c087fff80e0: fa fa 00 00 00 00 02 fa fa fa fa fa fa fa fa fa
0x0c087fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==822909==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_529
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/media_tools/m3u8.c:529:10 in parse_attributes | https://api.github.com/repos/gpac/gpac/issues/2615/comments | 0 | 2023-10-08T16:19:04Z | 2023-10-09T14:09:42Z | https://github.com/gpac/gpac/issues/2615 | 1,931,889,722 | 2,615 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000007sig06src000693time11039870execs108242ophavocrep4
[33m[M3U8] Unsupported directive #EXT-X-TARGETDURATIh_track1_init.mp4"
[0m[33m[M3U8] Unsupported directive #EXT-X-T-X-MEDIA-SEQUENCE:1
[0m=================================================================
==823827==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000006b8 at pc 0x7f4d8f3047fc bp 0x7ffff56f9b80 sp 0x7ffff56f9b78
WRITE of size 8 at 0x6040000006b8 thread T0
#0 0x7f4d8f3047fb in extract_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:345:26
#1 0x7f4d8f2fc3e4 in parse_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:525:8
#2 0x7f4d8f2fc3e4 in gf_m3u8_parse_sub_playlist /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:1233:18
#3 0x7f4d8f318174 in gf_m3u8_to_mpd /home/user/fuzzing_gpac/gpac/src/media_tools/mpd.c:2230:6
#4 0x7f4d8f35ad99 in gf_dash_open /home/user/fuzzing_gpac/gpac/src/media_tools/dash_client.c:8506:8
#5 0x7f4d8fae97fe in dashdmx_configure_pid /home/user/fuzzing_gpac/gpac/src/filters/dmx_dash.c:1973:7
#6 0x7f4d8f90740c in gf_filter_pid_configure /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:876:6
#7 0x7f4d8f9262a6 in gf_filter_pid_connect_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pid.c:1230:3
#8 0x7f4d8f97d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#9 0x7f4d8f97b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#10 0x7f4d8f22ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#11 0x56365db0a6dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#12 0x56365dafbb6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#13 0x7f4d8e229d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#14 0x7f4d8e229e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#15 0x56365da23dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x6040000006b8 is located 0 bytes to the right of 40-byte region [0x604000000690,0x6040000006b8)
allocated by thread T0 here:
#0 0x56365daa6e08 in __interceptor_calloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105e08) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f4d8f3043c0 in extract_attributes /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:329:8
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/m3u8.c:345:26 in extract_attributes
Shadow bytes around the buggy address:
0x0c087fff8080: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff8090: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80a0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80b0: fa fa 00 00 00 00 00 fa fa fa 00 00 00 00 00 fa
0x0c087fff80c0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
=>0x0c087fff80d0: fa fa 00 00 00 00 00[fa]fa fa fa fa fa fa fa fa
0x0c087fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==823827==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/hbo_345
# Credit
```
Gandalf4a
``` | heap-buffer-overflow in /gpac/src/media_tools/m3u8.c:345:26 in extract_attributes | https://api.github.com/repos/gpac/gpac/issues/2614/comments | 0 | 2023-10-08T16:17:25Z | 2023-10-09T14:09:42Z | https://github.com/gpac/gpac/issues/2614 | 1,931,889,124 | 2,614 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000085sig06src003627time38285673execs366724ophavocrep8
[31m[HEVC] Error parsing NAL unit type 2
[0m=================================================================
==833362==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffdcf3828d0 at pc 0x7f6e8e6ab0c1 bp 0x7ffdcf382870 sp 0x7ffdcf382868
WRITE of size 1 at 0x7ffdcf3828d0 thread T0
#0 0x7f6e8e6ab0c0 in hevc_parse_vps_extension /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:7735:42
#1 0x7f6e8e66492e in gf_hevc_read_vps_bs_internal /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:8095:9
#2 0x7f6e8e66b0e5 in gf_hevc_parse_nalu_bs /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:8756:30
#3 0x7f6e8f25c2ca in naludmx_check_dur /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:576:10
#4 0x7f6e8f264622 in naludmx_check_pid /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:1826:3
#5 0x7f6e8f252dc5 in naludmx_process /home/user/fuzzing_gpac/gpac/src/filters/reframe_nalu.c:3370:4
#6 0x7f6e8edafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#7 0x7f6e8ed7d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#8 0x7f6e8ed7b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#9 0x7f6e8e62ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#10 0x5572d97a66dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#11 0x5572d9797b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#12 0x7f6e8d629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#13 0x7f6e8d629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#14 0x5572d96bfdd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
Address 0x7ffdcf3828d0 is located in stack of thread T0 at offset 80 in frame
#0 0x7f6e8e6a4abf in hevc_parse_vps_extension /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:7690
This frame has 12 object(s):
[32, 48) 'dimension_id_len' (line 7693)
[64, 80) 'dim_bit_offset' (line 7693) <== Memory access at offset 80 overflows this variable
[96, 100) 'layer_set_idx_for_ols_minus1' (line 7695)
[112, 117) 'nb_output_layers_in_output_layer_set' (line 7696)
[144, 149) 'ols_highest_output_layer_id' (line 7697)
[176, 240) 'num_direct_ref_layers' (line 7700)
[272, 336) 'num_pred_layers' (line 7700)
[368, 372) 'num_layers_in_tree_partition' (line 7700)
[384, 400) 'dependency_flag' (line 7701)
[416, 672) 'id_pred_layers' (line 7701)
[736, 800) 'layer_id_in_list_flag' (line 7706)
[832, 896) 'OutputLayerFlag' (line 7707)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow /home/user/fuzzing_gpac/gpac/src/media_tools/av_parsers.c:7735:42 in hevc_parse_vps_extension
Shadow bytes around the buggy address:
0x100039e684c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e684d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e684e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e684f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e68500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100039e68510: f1 f1 f1 f1 00 00 f2 f2 00 00[f2]f2 04 f2 05 f2
0x100039e68520: f2 f2 05 f2 f2 f2 00 00 00 00 00 00 00 00 f2 f2
0x100039e68530: f2 f2 00 00 00 00 00 00 00 00 f2 f2 f2 f2 04 f2
0x100039e68540: 00 00 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e68550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100039e68560: 00 00 00 00 f2 f2 f2 f2 f2 f2 f2 f2 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==833362==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/sbo_7735
# Credit
```
Gandalf4a
``` | stack-buffer-overflow in /gpac/src/media_tools/av_parsers.c:7735:42 in hevc_parse_vps_extension | https://api.github.com/repos/gpac/gpac/issues/2613/comments | 0 | 2023-10-08T16:15:17Z | 2023-10-12T14:46:27Z | https://github.com/gpac/gpac/issues/2613 | 1,931,886,016 | 2,613 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
/home/user/vul/MP4Box_crash/id000037sig06src002502time27968081execs258947ophavocrep16
[32m[iso file] Unknown box type 00000000 in parent moov
[0m[32m[iso file] Unknown top-level box type 00000100
[0m[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[32m[Dasher] No bitrate property assigned to PID V1, computing from bitstream
[0m[31m[IsoMedia] Failed to fetch initial sample 1 for track 2
[0m[32m[iso file] Unknown box type 00000000 in parent moov
[0m[33m[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 18446744073709551615/12288
[0m[31m[IsoMedia] Failed to fetch initial sample 1 for track 2
[0m[31m[MuxIsom] Packet with no CTS assigned, cannot store to track, ignoring
[0m[31m[IsoMedia] File truncated, aborting read for track 1
[0m[31m[IsoMedia] Failed to fetch initial sample 1 for track 2
[0m[37mDashing P1 AS#1.1(V) done (1 segs)
[0m[31m[Dasher] Couldn't compute bitrate of PID V1 in time for manifest generation, please specify #Bitrate property
[0m[31m[Dasher] Couldn't compute bitrate of PID V1 in time for manifest generation, please specify #Bitrate property
[0m[32m[MPD] Generating MPD at time 2023-10-08T12:38:38.043Z
[0m[32m[Dasher] End of Period
[0m[32m[Dasher] End of MPD (no more active streams)
[0m=================================================================
==827317==ERROR: AddressSanitizer: attempting double-free on 0x619000015980 in thread T0:
#0 0x55e7797a5972 in free (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105972) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f525cd97945 in gf_filterpacket_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:38:17
#2 0x7f525cd6a022 in gf_fq_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter_queue.c:105:33
#3 0x7f525cda14e5 in gf_filter_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:664:3
#4 0x7f525cd6ede9 in gf_fs_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:782:4
#5 0x7f525c6283f6 in gf_dasher_clean_inputs /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:164:3
#6 0x7f525c6283f6 in gf_dasher_del /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:173:2
#7 0x55e779809d2d in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4894:2
#8 0x55e7797fab6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#9 0x7f525b629d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#10 0x7f525b629e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#11 0x55e779722dd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x619000015980 is located 0 bytes inside of 1084-byte region [0x619000015980,0x619000015dbc)
freed by thread T0 here:
#0 0x55e7797a6046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f525c4f7ab6 in Media_GetSample /home/user/fuzzing_gpac/gpac/src/isomedia/media.c:619:30
#2 0x7f525c45d7b3 in gf_isom_get_sample_ex /home/user/fuzzing_gpac/gpac/src/isomedia/isom_read.c:1975:6
#3 0x7f525d05a156 in isor_reader_get_sample /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read_ch.c:398:19
#4 0x7f525d04d2d5 in isoffin_process /home/user/fuzzing_gpac/gpac/src/filters/isoffin_read.c:1486:5
#5 0x7f525cdafa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
previously allocated by thread T0 here:
LLVMSymbolizer: error reading file: No such file or directory
#0 0x55e7797a6046 in __interceptor_realloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x106046) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f525cd00add in gf_filter_pck_expand /home/user/fuzzing_gpac/gpac/src/filter_core/filter_pck.c:1846:15
#2 0x7ffd05c3a8df ([stack]+0x328df)
SUMMARY: AddressSanitizer: double-free (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105972) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9) in free
==827317==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/df_105972
# Credit
```
Gandalf4a
``` | double-free in gf_filterpacket_del /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:38:17 | https://api.github.com/repos/gpac/gpac/issues/2612/comments | 0 | 2023-10-08T16:13:47Z | 2023-10-12T14:17:39Z | https://github.com/gpac/gpac/issues/2612 | 1,931,884,388 | 2,612 |
[
"gpac",
"gpac"
] | # Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev566-g50c2ab06f-master
```
# Platform
```
$ uname -a
Linux user-GE40-2PC-Dragon-Eyes 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
```
# Asan
```
[33m[iso file] extra box maxr found in hinf, deleting
[0m[32m[iso file] Unknown box type traI in parent moov
[0m[33m[iso file] Box "stss" (start 9939) has 32 extra bytes
[0m[33m[iso file] extra box maxr found in hinf, deleting
[0m[33m[iso file] Track with no sample description box !
[0m[33m[IsoMedia] Track 4 type MPEG not natively handled
[0m[32m[Dasher] No template assigned, using $File$_dash$FS$$Number$
[0m[32m[iso file] Unknown box type traI in parent moov
[0m[33m[MP4Mux] muxing unknown codec ID Codec Not Supported, using generic sample entry with 4CC "MPEG"
[0m[31m[IsoMedia] File truncated, aborting read for track 1
[0m[37mDashing P1 AS#1.1(V) done (1 segs)
[0m[31m[MP4Mux] Failed to add sample DTS 0 from O7 - prev DTS 18446744073709551615: Out Of Memory
[0m=================================================================
==836900==ERROR: AddressSanitizer: heap-use-after-free on address 0x60b000001d88 at pc 0x7f57c0120bf1 bp 0x7ffeac405a70 sp 0x7ffeac405a68
READ of size 8 at 0x60b000001d88 thread T0
#0 0x7f57c0120bf0 in flush_ref_samples /home/user/fuzzing_gpac/gpac/src/isomedia/movie_fragments.c:936:37
#1 0x7f57c0128df2 in gf_isom_close_segment /home/user/fuzzing_gpac/gpac/src/isomedia/movie_fragments.c:2331:4
#2 0x7f57c0cfd198 in mp4_mux_process_fragmented /home/user/fuzzing_gpac/gpac/src/filters/mux_isom.c:6734:8
#3 0x7f57c0cf46f3 in mp4_mux_process /home/user/fuzzing_gpac/gpac/src/filters/mux_isom.c:7273:14
#4 0x7f57c09afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
#5 0x7f57c097d47b in gf_fs_thread_proc /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2105:3
#6 0x7f57c097b5cf in gf_fs_run /home/user/fuzzing_gpac/gpac/src/filter_core/filter_session.c:2405:3
#7 0x7f57c022ac6a in gf_dasher_process /home/user/fuzzing_gpac/gpac/src/media_tools/dash_segmenter.c:1236:6
#8 0x55ff536546dc in do_dash /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:4831:15
#9 0x55ff53645b6e in mp4box_main /home/user/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6245:7
#10 0x7f57bf229d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#11 0x7f57bf229e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#12 0x55ff5356ddd4 in _start (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x82dd4) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
0x60b000001d88 is located 104 bytes inside of 112-byte region [0x60b000001d20,0x60b000001d90)
freed by thread T0 here:
#0 0x55ff535f0972 in free (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105972) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f57c001e6f5 in gf_isom_box_del /home/user/fuzzing_gpac/gpac/src/isomedia/box_funcs.c:2005:3
previously allocated by thread T0 here:
#0 0x55ff535f0c1e in malloc (/home/user/fuzzing_gpac/gpac/bin/gcc/MP4Box+0x105c1e) (BuildId: 53333ca7bff59dd9a3d1b2821e7c5f3a9aac76b9)
#1 0x7f57bff95c5a in trun_box_new /home/user/fuzzing_gpac/gpac/src/isomedia/box_code_base.c:7805:2
#2 0x7f57c0026335 in gf_isom_box_new /home/user/fuzzing_gpac/gpac/src/isomedia/box_funcs.c:1896:9
#3 0x7f57c0026335 in gf_isom_box_new_parent /home/user/fuzzing_gpac/gpac/src/isomedia/box_funcs.c:2351:14
#4 0x7f57c0d06f05 in mp4_mux_process_sample /home/user/fuzzing_gpac/gpac/src/filters/mux_isom.c:4915:9
#5 0x7f57c0cf85a4 in mp4_mux_process_fragmented /home/user/fuzzing_gpac/gpac/src/filters/mux_isom.c:6653:8
#6 0x7f57c0cf46f3 in mp4_mux_process /home/user/fuzzing_gpac/gpac/src/filters/mux_isom.c:7273:14
#7 0x7f57c09afa33 in gf_filter_process_task /home/user/fuzzing_gpac/gpac/src/filter_core/filter.c:2971:7
SUMMARY: AddressSanitizer: heap-use-after-free /home/user/fuzzing_gpac/gpac/src/isomedia/movie_fragments.c:936:37 in flush_ref_samples
Shadow bytes around the buggy address:
0x0c167fff8360: fa fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c167fff8370: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c167fff8380: 00 00 00 00 05 fa fa fa fa fa fa fa fa fa 00 00
0x0c167fff8390: 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c167fff83a0: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c167fff83b0: fd[fd]fa fa fa fa fa fa fa fa fd fd fd fd fd fd
0x0c167fff83c0: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa
0x0c167fff83d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa
0x0c167fff83e0: fa fa fa fa fa fa fd fd fd fd fd fd fd fd fd fd
0x0c167fff83f0: fd fd fd fd fa fa fa fa fa fa fa fa fd fd fd fd
0x0c167fff8400: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==836900==ABORTING
```
# Reproduce
```
./MP4Box -dash 10000 poc
```
# POC File
https://github.com/gandalf4a/crash_report/blob/main/gpac/MP4Box/huaf_936
# Credit
```
Gandalf4a
``` | heap-use-after-free in ./gpac/src/isomedia/movie_fragments.c:936:37 in flush_ref_samples | https://api.github.com/repos/gpac/gpac/issues/2611/comments | 0 | 2023-10-08T16:10:40Z | 2023-10-12T14:08:21Z | https://github.com/gpac/gpac/issues/2611 | 1,931,883,357 | 2,611 |
[
"gpac",
"gpac"
] | 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
Hi, there.
There is a segmentation fault caused by invalid memory write in gf_user_credentials_register, downloader.c:1249 with commit 6c7e0564303fa1690a744ad51a6b473564ea6d1a, which could lead to arbitrary memory access and code execution.
Here is my environment, compiler info and gpac version:
~~~~
Distributor ID: Ubuntu
Description: 20.04.6 LTS
Compiler: Clang 14.0.1
MP4Box - GPAC version 2.3-DEV-rev543-g6c7e05643-master
(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 --enable-debug --disable-opt
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_JPEG GPAC_HAS_PNG GPAC_HAS_JP2 GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
~~~~
To reproduce, run
~~~~
./MP4Box -info -out /dev/null poc
~~~~
POC:
[poc.zip](https://github.com/gpac/gpac/files/12818215/mp4box-overwrite-credregist1249.zip)
(unzip first)
Here is the trace reported by asan:
~~~~
==1471351==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61d00001cac8 at pc 0x7f0ca5b0d16d bp 0x7ffe54904230 sp 0x7ffe549039d8
WRITE of size 4087 at 0x61d00001cac8 thread T0
#0 0x7f0ca5b0d16c in __interceptor_strcpy ../../../../src/libsanitizer/asan/asan_interceptors.cc:431
#1 0x7f0c9e628301 in gf_user_credentials_register /benchmark/gpac/src/utils/downloader.c:1249
#2 0x7f0c9e638ab1 in gf_dm_sess_setup_from_url /benchmark/gpac/src/utils/downloader.c:2691
#3 0x7f0c9e63c8e8 in gf_dm_sess_new_internal /benchmark/gpac/src/utils/downloader.c:2911
#4 0x7f0c9e63d201 in gf_dm_sess_new_simple /benchmark/gpac/src/utils/downloader.c:3028
#5 0x7f0c9e63d3c3 in gf_dm_sess_new /benchmark/gpac/src/utils/downloader.c:3047
#6 0x7f0ca0263f2b in httpin_initialize /benchmark/gpac/src/filters/in_http.c:143
#7 0x7f0c9fe3f6ac in gf_filter_new_finalize /benchmark/gpac/src/filter_core/filter.c:543
#8 0x7f0c9fe3dfc3 in gf_filter_new /benchmark/gpac/src/filter_core/filter.c:468
#9 0x7f0c9fe24c56 in gf_fs_load_source_dest_internal /benchmark/gpac/src/filter_core/filter_session.c:3513
#10 0x7f0c9fe7bb8a in gf_filter_connect_source /benchmark/gpac/src/filter_core/filter.c:4007
#11 0x7f0ca01f07a4 in filelist_load_next /benchmark/gpac/src/filters/filelist.c:1360
#12 0x7f0ca01fcadf in filelist_process /benchmark/gpac/src/filters/filelist.c:1949
#13 0x7f0c9fe68e3f in gf_filter_process_task /benchmark/gpac/src/filter_core/filter.c:2971
#14 0x7f0c9fe1046b in gf_fs_thread_proc /benchmark/gpac/src/filter_core/filter_session.c:2070
#15 0x7f0c9fe13b72 in gf_fs_run /benchmark/gpac/src/filter_core/filter_session.c:2370
#16 0x7f0c9f3f7ae4 in gf_media_import /benchmark/gpac/src/media_tools/media_import.c:1239
#17 0x557f81ad2c7f in convert_file_info /benchmark/gpac/applications/mp4box/fileimport.c:130
#18 0x557f81a8969b in mp4box_main /benchmark/gpac/applications/mp4box/mp4box.c:6380
#19 0x557f81a8c3c4 in main /benchmark/gpac/applications/mp4box/mp4box.c:6939
#20 0x7f0c9a515082 in __libc_start_main ../csu/libc-start.c:308
#21 0x557f81a49d4d in _start ( /benchmark/gpac/build-t/bin/gcc/MP4Box+0x107d4d)
0x61d00001cac8 is located 0 bytes to the right of 2120-byte region [0x61d00001c280,0x61d00001cac8)
allocated by thread T0 here:
#0 0x7f0ca5b7e808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f0c9e55334a in gf_malloc /benchmark/gpac/src/utils/alloc.c:150
#2 0x7f0c9e627f8d in gf_user_credentials_register /benchmark/gpac/src/utils/downloader.c:1239
#3 0x7f0c9e638ab1 in gf_dm_sess_setup_from_url /benchmark/gpac/src/utils/downloader.c:2691
#4 0x7f0c9e63c8e8 in gf_dm_sess_new_internal /benchmark/gpac/src/utils/downloader.c:2911
#5 0x7f0c9e63d201 in gf_dm_sess_new_simple /benchmark/gpac/src/utils/downloader.c:3028
#6 0x7f0c9e63d3c3 in gf_dm_sess_new /benchmark/gpac/src/utils/downloader.c:3047
#7 0x7f0ca0263f2b in httpin_initialize /benchmark/gpac/src/filters/in_http.c:143
#8 0x7f0c9fe3f6ac in gf_filter_new_finalize /benchmark/gpac/src/filter_core/filter.c:543
#9 0x7f0c9fe3dfc3 in gf_filter_new /benchmark/gpac/src/filter_core/filter.c:468
#10 0x7f0c9fe24c56 in gf_fs_load_source_dest_internal /benchmark/gpac/src/filter_core/filter_session.c:3513
#11 0x7f0c9fe7bb8a in gf_filter_connect_source /benchmark/gpac/src/filter_core/filter.c:4007
#12 0x7f0ca01f07a4 in filelist_load_next /benchmark/gpac/src/filters/filelist.c:1360
#13 0x7f0ca01fcadf in filelist_process /benchmark/gpac/src/filters/filelist.c:1949
#14 0x7f0c9fe68e3f in gf_filter_process_task /benchmark/gpac/src/filter_core/filter.c:2971
#15 0x7f0c9fe1046b in gf_fs_thread_proc /benchmark/gpac/src/filter_core/filter_session.c:2070
#16 0x7f0c9fe13b72 in gf_fs_run /benchmark/gpac/src/filter_core/filter_session.c:2370
#17 0x7f0c9f3f7ae4 in gf_media_import /benchmark/gpac/src/media_tools/media_import.c:1239
#18 0x557f81ad2c7f in convert_file_info /benchmark/gpac/applications/mp4box/fileimport.c:130
#19 0x557f81a8969b in mp4box_main /benchmark/gpac/applications/mp4box/mp4box.c:6380
#20 0x557f81a8c3c4 in main /benchmark/gpac/applications/mp4box/mp4box.c:6939
#21 0x7f0c9a515082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/asan/asan_interceptors.cc:431 in __interceptor_strcpy
Shadow bytes around the buggy address:
0x0c3a7fffb900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3a7fffb910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3a7fffb920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3a7fffb930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3a7fffb940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c3a7fffb950: 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa
0x0c3a7fffb960: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3a7fffb970: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3a7fffb980: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3a7fffb990: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3a7fffb9a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1471351==ABORTING
~~~~
| Segmentation fault caused by heap buffer overflow in gf_user_credentials_register, downloader.c:1249 | https://api.github.com/repos/gpac/gpac/issues/2610/comments | 0 | 2023-10-05T12:21:31Z | 2023-10-05T13:32:39Z | https://github.com/gpac/gpac/issues/2610 | 1,928,159,860 | 2,610 |
[
"gpac",
"gpac"
] | 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
Hi, there.
There is an invalid memory write in gf_sk_receive_internal, os_net.c:2305 with commit 6c7e0564303fa1690a744ad51a6b473564ea6d1a, which could lead to arbitrary memory access and code execution.
Here is my environment, compiler info and gpac version:
~~~~
Distributor ID: Ubuntu
Description: 20.04.6 LTS
Compiler: Clang 14.0.1
MP4Box - GPAC version 2.3-DEV-rev543-g6c7e05643-master
(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: --disable-shared
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_JPEG GPAC_HAS_PNG GPAC_HAS_JP2 GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
~~~~
To reproduce, run
~~~~
./MP4Box -info -out /dev/null poc
~~~~
POC:
[poc.zip](https://github.com/gpac/gpac/files/12818174/mp4box-overwrite-receive_internal2305.zip)
(unzip first)
Here is the trace reported by asan:
~~~~
==1464125==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62100002e1f0 at pc 0x7f55e33beb6d bp 0x7ffe175e4f00 sp 0x7ffe175e46a8
WRITE of size 4280 at 0x62100002e1f0 thread T0
#0 0x7f55e33beb6c in __interceptor_recv ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:6273
#1 0x7f55dbef56da in gf_sk_receive_internal /benchmark/gpac/src/utils/os_net.c:2305
#2 0x7f55dbef5a5a in gf_sk_receive /benchmark/gpac/src/utils/os_net.c:2350
#3 0x7f55dbf3204c in gf_dm_read_data /benchmark/gpac/src/utils/downloader.c:3122
#4 0x7f55dbf5af43 in wait_for_header_and_parse /benchmark/gpac/src/utils/downloader.c:5880
#5 0x7f55dbf614e5 in http_do_requests /benchmark/gpac/src/utils/downloader.c:6347
#6 0x7f55dbf45921 in gf_dm_sess_fetch_data /benchmark/gpac/src/utils/downloader.c:4520
#7 0x7f55ddb5efb4 in httpin_process /benchmark/gpac/src/filters/in_http.c:466
#8 0x7f55dd75ce3f in gf_filter_process_task /benchmark/gpac/src/filter_core/filter.c:2971
#9 0x7f55dd70446b in gf_fs_thread_proc /benchmark/gpac/src/filter_core/filter_session.c:2070
#10 0x7f55dd707b72 in gf_fs_run /benchmark/gpac/src/filter_core/filter_session.c:2370
#11 0x7f55dccebae4 in gf_media_import /benchmark/gpac/src/media_tools/media_import.c:1239
#12 0x563e084dfc7f in convert_file_info /benchmark/gpac/applications/mp4box/fileimport.c:130
#13 0x563e0849669b in mp4box_main /benchmark/gpac/applications/mp4box/mp4box.c:6380
#14 0x563e084993c4 in main /benchmark/gpac/applications/mp4box/mp4box.c:6939
#15 0x7f55d7e09082 in __libc_start_main ../csu/libc-start.c:308
#16 0x563e08456d4d in _start ( /benchmark/gpac/build-t/bin/gcc/MP4Box+0x107d4d)
0x62100002e1f0 is located 0 bytes to the right of 4336-byte region [0x62100002d100,0x62100002e1f0)
allocated by thread T0 here:
#0 0x7f55e3472c3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7f55dbe4739c in gf_realloc /benchmark/gpac/src/utils/alloc.c:160
#2 0x7f55dbf561a9 in wait_for_header_and_parse /benchmark/gpac/src/utils/downloader.c:5519
#3 0x7f55dbf614e5 in http_do_requests /benchmark/gpac/src/utils/downloader.c:6347
#4 0x7f55dbf45921 in gf_dm_sess_fetch_data /benchmark/gpac/src/utils/downloader.c:4520
#5 0x7f55ddb5efb4 in httpin_process /benchmark/gpac/src/filters/in_http.c:466
#6 0x7f55dd75ce3f in gf_filter_process_task /benchmark/gpac/src/filter_core/filter.c:2971
#7 0x7f55dd70446b in gf_fs_thread_proc /benchmark/gpac/src/filter_core/filter_session.c:2070
#8 0x7f55dd707b72 in gf_fs_run /benchmark/gpac/src/filter_core/filter_session.c:2370
#9 0x7f55dccebae4 in gf_media_import /benchmark/gpac/src/media_tools/media_import.c:1239
#10 0x563e084dfc7f in convert_file_info /benchmark/gpac/applications/mp4box/fileimport.c:130
#11 0x563e0849669b in mp4box_main /benchmark/gpac/applications/mp4box/mp4box.c:6380
#12 0x563e084993c4 in main /benchmark/gpac/applications/mp4box/mp4box.c:6939
#13 0x7f55d7e09082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:6273 in __interceptor_recv
Shadow bytes around the buggy address:
0x0c427fffdbe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffdbf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffdc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffdc10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffdc20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c427fffdc30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00[fa]fa
0x0c427fffdc40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffdc50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffdc60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffdc70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffdc80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1464125==ABORTING
~~~~
| heap buffer overflow in gf_sk_receive_internal, os_net.c:2305 | https://api.github.com/repos/gpac/gpac/issues/2609/comments | 5 | 2023-10-05T12:15:42Z | 2023-10-05T15:27:25Z | https://github.com/gpac/gpac/issues/2609 | 1,928,148,117 | 2,609 |
[
"gpac",
"gpac"
] | 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
Hi, there.
There is a segmentation fault caused by invalid memory write in gf_list_add, list.c:655 in newest commit 6c7e0564303fa1690a744ad51a6b473564ea6d1a.
Here is my environment, compiler info and gpac version:
~~~~
Distributor ID: Ubuntu
Description: 20.04.6 LTS
Compiler: Clang 14.0.1
MP4Box - GPAC version 2.3-DEV-rev543-g6c7e05643-master
(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: --disable-shared
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_JPEG GPAC_HAS_PNG GPAC_HAS_JP2 GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
~~~~
To reproduce, run
~~~~
./MP4Box -dash 10000 poc
~~~~
POC:
[poc.zip](https://github.com/gpac/gpac/files/12782854/mp4box-seg-gf_list_add655.zip)
(unzip first)
Here is the trace reported by gdb:
~~~~
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff71c243b in gf_list_add (ptr=0x6e2fb0, item=item@entry=0x1413d9b8d0) at /benchmark/gpac/src/utils/list.c:655
#0 0x00007ffff71c243b in gf_list_add (ptr=0x6e2fb0, item=item@entry=0x1413d9b8d0) at /benchmark/gpac/src/utils/list.c:655
#1 0x00007ffff743629a in senc_Parse (bs=0x6c64a0, trak=trak@entry=0x6bf940, traf=traf@entry=0x6adcc0, senc=0x6e1d40) at /benchmark/gpac/src/isomedia/box_code_drm.c:1479
#2 0x00007ffff74f82a6 in MergeTrack (trak=trak@entry=0x6bf940, traf=traf@entry=0x6adcc0, moof_box=moof_box@entry=0x6e12c0, moof_offset=2004, compressed_diff=0, cumulated_offset=cumulated_offset@entry=0x7fffffff7178)
at /benchmark/gpac/src/isomedia/track.c:1177
#3 0x00007ffff747073c in MergeFragment (moof=0x6e12c0, mov=mov@entry=0x6c2840) at /benchmark/gpac/src/isomedia/isom_intern.c:92
#4 0x00007ffff7473529 in gf_isom_parse_movie_boxes_internal (mov=0x6c2840, boxType=0x0, bytesMissing=0x6b2b90, progressive_mode=GF_TRUE) at /benchmark/gpac/src/isomedia/isom_intern.c:736
#5 gf_isom_parse_movie_boxes (mov=mov@entry=0x6c2840, boxType=boxType@entry=0x0, bytesMissing=bytesMissing@entry=0x6b2b90, progressive_mode=progressive_mode@entry=GF_TRUE)
at /benchmark/gpac/src/isomedia/isom_intern.c:897
#6 0x00007ffff74779cc in gf_isom_open_progressive_ex (fileName=fileName@entry=0x6a3cf0 "tmp_crash", start_range=<optimized out>, end_range=<optimized out>, enable_frag_bounds=GF_FALSE, the_file=the_file@entry=0x6b2b70,
BytesMissing=BytesMissing@entry=0x6b2b90, outBoxType=0x0) at /benchmark/gpac/src/isomedia/isom_read.c:475
#7 0x00007ffff747832b in gf_isom_open_progressive (fileName=0x7ffbf2a6a000 "", fileName@entry=0x6a3cf0 "tmp_crash", start_range=1170, end_range=4846240, enable_frag_bounds=(unknown: 0x6b123d4c), the_file=0x7ffbf2a6a000,
the_file@entry=0x6b2b70, BytesMissing=0x7ffbf2a6a000, BytesMissing@entry=0x6b2b90) at /benchmark/gpac/src/isomedia/isom_read.c:501
#8 0x00007ffff79b3296 in isoffin_setup (filter=filter@entry=0x6d9250, read=read@entry=0x6b2af0, input_is_eos=input_is_eos@entry=GF_FALSE) at /benchmark/gpac/src/filters/isoffin_read.c:144
#9 0x00007ffff79b1d02 in isoffin_configure_pid (filter=0x6d9250, pid=0x6a81c0, is_remove=GF_FALSE) at /benchmark/gpac/src/filters/isoffin_read.c:477
#10 0x00007ffff7823ba1 in gf_filter_pid_configure (filter=filter@entry=0x6d9250, pid=0x6d70d0, ctype=ctype@entry=GF_PID_CONF_CONNECT) at /benchmark/gpac/src/filter_core/filter_pid.c:876
#11 0x00007ffff7832c0d in gf_filter_pid_connect_task (task=0x6a54c0) at /benchmark/gpac/src/filter_core/filter_pid.c:1230
#12 0x00007ffff7860d47 in gf_fs_thread_proc (sess_thread=sess_thread@entry=0x6a25d0) at /benchmark/gpac/src/filter_core/filter_session.c:2070
#13 0x00007ffff785fb31 in gf_fs_run (fsess=0x6a2540) at /benchmark/gpac/src/filter_core/filter_session.c:2370
#14 0x00007ffff7556514 in gf_dasher_process (dasher=0x6c1330) at /benchmark/gpac/src/media_tools/dash_segmenter.c:1236
#15 0x000000000042d79d in do_dash () at /benchmark/gpac/applications/mp4box/mp4box.c:4831
#16 0x0000000000422693 in mp4box_main (argc=4, argv=0x7fffffffe338) at /benchmark/gpac/applications/mp4box/mp4box.c:6245
#17 0x00007ffff6f2c083 in __libc_start_main (main=0x42a530 <main>, argc=4, argv=0x7fffffffe338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe328) at ../csu/libc-start.c:308
#18 0x0000000000410e5e in _start ()
~~~~
| Segmentation fault caused by invalid memory write using mp4box in gf_list_add, list.c:655 | https://api.github.com/repos/gpac/gpac/issues/2608/comments | 0 | 2023-10-02T13:11:43Z | 2023-10-04T10:06:12Z | https://github.com/gpac/gpac/issues/2608 | 1,921,895,022 | 2,608 |
[
"gpac",
"gpac"
] | - [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
OS: Windows 11
GPAC: gpac-2.3-DEV-rev557-ge5595130-master-x64
Having an mkv video input which has some subtitle (etc 3) and menu (etc 1 chapter) tracks and trying to convert it to mp4 results strange subtitle side effects (missing 1st sub, order of subs changes) and additional strange menu tracks references.
Command used to mux:
```bash
mp4box -add pdcut.mkv -brand mp42 -ab isom -ab dby1 -new pdcut.mp4
```
Input video tracks:
```json
[
{
"@type": "General",
"UniqueID": "23816570286437010580143197605065389094",
"VideoCount": "1",
"AudioCount": "1",
"TextCount": "3",
"MenuCount": "1",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_Version": "4",
"FileSize": "7172610",
"Duration": "14.432",
"OverallBitRate_Mode": "VBR",
"OverallBitRate": "3975948",
"FrameRate": "23.976",
"FrameCount": "288",
"StreamSize": "11035",
"IsStreamable": "Yes",
"Encoded_Application": "mkvmerge v79.0 ('Funeral Pyres') 64-bit",
"Encoded_Library": "libebml v1.4.4 + libmatroska v1.7.1"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"UniqueID": "5251935324141279502",
"Format": "AVC",
"Format_Profile": "Main",
"Format_Level": "4",
"Format_Settings_CABAC": "Yes",
"Format_Settings_RefFrames": "3",
"CodecID": "V_MPEG4/ISO/AVC",
"Duration": "12.012000000",
"BitRate_Mode": "VBR",
"BitRate": "4002109",
"BitRate_Maximum": "6629952",
"Width": "1920",
"Height": "1080",
"Stored_Height": "1088",
"Sampled_Width": "1920",
"Sampled_Height": "1080",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"FrameRate_Mode": "CFR",
"FrameRate": "23.976",
"FrameRate_Num": "24000",
"FrameRate_Den": "1001",
"FrameCount": "288",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"BitDepth": "8",
"ScanType": "Progressive",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "6009168",
"Language": "en",
"Default": "Yes",
"Forced": "No",
"BufferSize": "8840000"
},
{
"@type": "Audio",
"StreamOrder": "1",
"ID": "2",
"UniqueID": "16376687280309330406",
"Format": "E-AC-3",
"Format_Commercial_IfAny": "Dolby Digital Plus with Dolby Atmos",
"Format_Settings_Endianness": "Big",
"Format_AdditionalFeatures": "JOC",
"CodecID": "A_EAC3",
"Duration": "12.000000000",
"BitRate_Mode": "CBR",
"BitRate": "768000",
"Channels": "6",
"ChannelPositions": "Front: L C R, Side: L R, LFE",
"ChannelLayout": "L R C LFE Ls Rs",
"SamplesPerFrame": "1536",
"SamplingRate": "48000",
"SamplingCount": "576000",
"FrameRate": "31.250",
"FrameCount": "375",
"Compression_Mode": "Lossy",
"Delay": "0.012",
"Delay_Source": "Container",
"Video_Delay": "0.012",
"StreamSize": "1152000",
"Language": "en",
"ServiceKind": "CM",
"Default": "Yes",
"Forced": "No",
"extra":
{
"ComplexityIndex": "16",
"NumberOfDynamicObjects": "15",
"BedChannelCount": "1",
"BedChannelConfiguration": "LFE",
"bsid": "16",
"dialnorm": "-27",
"compr": "2.77",
"acmod": "7",
"lfeon": "1",
}
},
{
"@type": "Text",
"@typeorder": "1",
"StreamOrder": "2",
"ID": "3",
"UniqueID": "9017659699732850736",
"Format": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"Duration": "12.096000000",
"BitRate": "80",
"FrameRate": "0.331",
"FrameCount": "4",
"ElementCount": "4",
"StreamSize": "122",
"Language": "en",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "2",
"StreamOrder": "3",
"ID": "4",
"UniqueID": "6079447805506552209",
"Format": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"Duration": "8.884000000",
"BitRate": "163",
"FrameRate": "0.338",
"FrameCount": "3",
"ElementCount": "3",
"StreamSize": "182",
"Language": "ar",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "3",
"StreamOrder": "4",
"ID": "5",
"UniqueID": "12866328957348532480",
"Format": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"Duration": "9.051000000",
"BitRate": "91",
"FrameRate": "0.331",
"FrameCount": "3",
"ElementCount": "3",
"StreamSize": "103",
"Language": "cs",
"Default": "No",
"Forced": "No"
},
{
"@type": "Menu",
"extra":
{
"_00_00_00_000": "en:Chapter 02"
}
}
]
```
Output video tracks:
```json
[
{
"@type": "General",
"VideoCount": "1",
"AudioCount": "1",
"TextCount": "2",
"MenuCount": "3",
"FileExtension": "mp4",
"Format": "MPEG-4",
"Format_Profile": "Base Media / Version 2",
"CodecID": "mp42",
"CodecID_Compatible": "isom/avc1/mp42/dby1",
"FileSize": "7170728",
"Duration": "14.430",
"OverallBitRate_Mode": "VBR",
"OverallBitRate": "3975456",
"FrameRate": "23.976",
"FrameCount": "288",
"StreamSize": "9251",
"HeaderSize": "9020",
"DataSize": "7161635",
"FooterSize": "73",
"IsStreamable": "Yes",
"Encoded_Application": "GPAC-2.3-DEV-rev557-ge5595130-master"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"Format": "AVC",
"Format_Profile": "Main",
"Format_Level": "4",
"Format_Settings_CABAC": "Yes",
"Format_Settings_RefFrames": "3",
"CodecID": "avc1",
"Duration": "12.010",
"BitRate_Mode": "VBR",
"BitRate": "4002106",
"BitRate_Maximum": "6629952",
"Width": "1920",
"Height": "1080",
"Stored_Height": "1088",
"Sampled_Width": "1920",
"Sampled_Height": "1080",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"Rotation": "0.000",
"FrameRate_Mode": "VFR",
"FrameRate": "23.976",
"FrameRate_Num": "23976",
"FrameRate_Den": "1000",
"FrameRate_Minimum": "23.810",
"FrameRate_Maximum": "24.390",
"FrameRate_Original": "23.976",
"FrameCount": "288",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"BitDepth": "8",
"ScanType": "Progressive",
"StreamSize": "6009168",
"Title": "mkv@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "en",
"BufferSize": "8840000",
"extra":
{
"Menus": "65534,5",
"mdhd_Duration": "12052",
"CodecConfigurationBox": "avcC"
}
},
{
"@type": "Audio",
"StreamOrder": "1",
"ID": "2",
"Format": "E-AC-3",
"Format_Commercial_IfAny": "Dolby Digital Plus with Dolby Atmos",
"Format_Settings_Endianness": "Big",
"Format_AdditionalFeatures": "JOC",
"CodecID": "ec-3",
"Duration": "12.012",
"Source_Duration": "12.000",
"BitRate_Mode": "CBR",
"BitRate": "768000",
"BitRate_Maximum": "811008",
"Channels": "6",
"ChannelPositions": "Front: L C R, Side: L R, LFE",
"ChannelLayout": "L R C LFE Ls Rs",
"SamplesPerFrame": "1536",
"SamplingRate": "48000",
"SamplingCount": "576576",
"FrameRate": "31.250",
"FrameCount": "375",
"Source_FrameCount": "375",
"Compression_Mode": "Lossy",
"StreamSize": "1152000",
"Source_StreamSize": "1152000",
"Title": "mkv@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "en",
"ServiceKind": "CM",
"Default": "Yes",
"AlternateGroup": "1",
"extra":
{
"Menus": "5",
"Source_Delay": "12",
"Source_Delay_Source": "Container",
"ComplexityIndex": "16",
"NumberOfDynamicObjects": "15",
"BedChannelCount": "1",
"BedChannelConfiguration": "LFE",
"bsid": "16",
"dialnorm": "-27",
"compr": "2.77",
"acmod": "7",
"lfeon": "1",
}
},
{
"@type": "Text",
"@typeorder": "1",
"StreamOrder": "3",
"ID": "3",
"Format": "Timed Text",
"MuxingMode": "sbtl",
"CodecID": "tx3g",
"Duration": "11.677",
"Source_Duration": "8.884",
"BitRate_Mode": "VBR",
"BitRate": "133",
"FrameRate": "0.514",
"FrameCount": "6",
"Source_FrameCount": "6",
"StreamSize": "194",
"Source_StreamSize": "194",
"Title": "mkv@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "en",
"Default": "Yes",
"Forced": "No",
"AlternateGroup": "2",
"Events_Total": "3",
"extra":
{
"Menus": "65534",
"Source_Delay": "2793",
"Source_Delay_Source": "Container"
}
},
{
"@type": "Text",
"@typeorder": "2",
"StreamOrder": "4",
"ID": "4",
"Format": "Timed Text",
"MuxingMode": "sbtl",
"CodecID": "tx3g",
"Duration": "11.843",
"Source_Duration": "9.051",
"BitRate_Mode": "VBR",
"BitRate": "78",
"FrameRate": "0.507",
"FrameCount": "6",
"Source_FrameCount": "6",
"StreamSize": "115",
"Source_StreamSize": "115",
"Title": "mkv@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "ar",
"Default": "Yes",
"Forced": "No",
"AlternateGroup": "2",
"Events_Total": "3",
"extra":
{
"Menus": "65534",
"Source_Delay": "2793",
"Source_Delay_Source": "Container"
}
},
{
"@type": "Menu",
"@typeorder": "1",
"StreamOrder": "2",
"ID": "65534",
"Format": "Timed Text",
"CodecID": "tx3g",
"Duration": "14.430",
"extra":
{
"Menu_For": "1,3,4,5",
"Source_Duration": "12096",
"Source_FrameCount": "9",
"Source_StreamSize": "150",
"FrameCount": "9",
"StreamSize": "150",
"Source_Delay": "2335",
"Source_Delay_Source": "Container",
"_00_00_02_335": "Chapter 02 / Hmm, what do you do / if I add just a touch of dirt,",
"_00_00_06_798": "bit more ooze, swirl it just so.",
"_00_00_10_010": "Hm. Not too sticky.",
"_00_00_11_845": "Ooh. Satiny. Supple."
}
},
{
"@type": "Menu",
"@typeorder": "2",
"StreamOrder": "5",
"ID": "5",
"Format": "Timed Text",
"CodecID": "tx3g",
"Duration": "0.000",
"Title": "mkv@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "cs",
"AlternateGroup": "2",
"extra":
{
"Menu_For": "1,2"
}
},
{
"@type": "Menu",
"@typeorder": "3",
"extra":
{
"_00_00_00_000": "Chapter 02"
}
}
]
```
Playing the video file the first subtitle is kinda lost, the second is used in the 1st position, third sub goes to 2nd position. Seems one of the additional menu tracks has subtitle 1 content. Pretty wild.
Doing a video import only (or all/some tracks with `#ID` imports) also has side effects:
Command used to mux:
```bash
mp4box -add pdcut.mkv#video -brand mp42 -ab isom -ab dby1 -new pdcut.mp4
```
Output tracks:
```json
[
{
"@type": "General",
"VideoCount": "1",
"MenuCount": "2",
"FileExtension": "mp4",
"Format": "MPEG-4",
"Format_Profile": "Base Media / Version 2",
"CodecID": "mp42",
"CodecID_Compatible": "isom/avc1/mp42/dby1",
"FileSize": "6015713",
"Duration": "12.010",
"OverallBitRate_Mode": "VBR",
"OverallBitRate": "4007136",
"FrameRate": "23.976",
"FrameCount": "288",
"StreamSize": "6545",
"HeaderSize": "6451",
"DataSize": "6009189",
"FooterSize": "73",
"IsStreamable": "Yes",
"Encoded_Application": "GPAC-2.3-DEV-rev557-ge5595130-master"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"Format": "AVC",
"Format_Profile": "Main",
"Format_Level": "4",
"Format_Settings_CABAC": "Yes",
"Format_Settings_RefFrames": "3",
"CodecID": "avc1",
"Duration": "12.010",
"BitRate_Mode": "VBR",
"BitRate": "4002106",
"BitRate_Maximum": "6629952",
"Width": "1920",
"Height": "1080",
"Stored_Height": "1088",
"Sampled_Width": "1920",
"Sampled_Height": "1080",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"Rotation": "0.000",
"FrameRate_Mode": "VFR",
"FrameRate": "23.976",
"FrameRate_Num": "23976",
"FrameRate_Den": "1000",
"FrameRate_Minimum": "23.810",
"FrameRate_Maximum": "24.390",
"FrameRate_Original": "23.976",
"FrameCount": "288",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"BitDepth": "8",
"ScanType": "Progressive",
"StreamSize": "6009168",
"Title": "mkv#video@GPAC2.3-DEV-rev557-ge5595130-master",
"Language": "en",
"BufferSize": "8840000",
"extra":
{
"Menus": "65534",
"mdhd_Duration": "12052",
"CodecConfigurationBox": "avcC"
}
},
{
"@type": "Menu",
"@typeorder": "1",
"StreamOrder": "1",
"ID": "65534",
"Format": "Timed Text",
"CodecID": "tx3g",
"Duration": "1.000",
"extra":
{
"Menu_For": "1",
"_00_00_00_000": "Chapter 02"
}
},
{
"@type": "Menu",
"@typeorder": "2",
"extra":
{
"_00_00_00_000": "Chapter 02"
}
}
]
```
Until a possible fix, is there a way to ignore the menu track when importing mkv files this way?
For now the only workaround I found is to demux the tracks from the mkv file and use those which is a bit of an overhead.
To reproduce this seems any mkv file will do which has some subs and a menu. | mp4box: subtitle and menu tracks goes wrong/mixed when muxing from mkv to mp4 | https://api.github.com/repos/gpac/gpac/issues/2607/comments | 8 | 2023-10-01T17:09:36Z | 2023-10-06T10:55:13Z | https://github.com/gpac/gpac/issues/2607 | 1,920,869,964 | 2,607 |
[
"gpac",
"gpac"
] | ```./MP4Box -dash 1000 ./POC4_min```
[POC File](https://drive.google.com/file/d/1qOR-RLxgksH1MPdDnEDYEBUmhUE5T4eE)
```
Version
I checked against the latest release as of 09/28/23 the current master branch at commit c5603fa8de0e7d4460718e28f90989ffdf925494 .
Description
This AddressSanitizer output is indicating an OOB read of invalid heap memory. This exception occurred in the function chnl_box_size at [line 12758](https://github.com/gpac/gpac/blob/master/src/isomedia/box_code_base.c#L12758) in the file src/isomedia/box_code_base.c. This error is caused because the variable ptr->layout.channels_count can be larger than the actual number of layouts in ptr->layout.layouts[] and larger than the maximum number of layouts, which is 64. The struct that defines the maximum layouts is in the file include/gpac/isomedia.h at [lines 1464-1486](https://github.com/gpac/gpac/blob/master/include/gpac/isomedia.h#L1464-L1486).
src/isomedia/box_code_base.c:[lines 12756-12760](https://github.com/gpac/gpac/blob/master/src/isomedia/box_code_base.c#L12756-L12760)
for (i=0; i<ptr->layout.channels_count; i++) {
s->size+=1;
if (ptr->layout.layouts[i].position==126)
s->size+=3;
}
Specifically this is the line that causes the asan to trigger when i > 64.
src/isomedia/box_code_base.c:[lines 12758](https://github.com/gpac/gpac/blob/master/src/isomedia/box_code_base.c#L12758)
if (ptr->layout.layouts[i].position==126)
ASAN
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Unknown CICP mapping for channel config 12336/0.0
[Dasher] Segment 1 is empty - pid end of stream 1
=================================================================
==4084326==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x612000001980 at pc 0x7ffff63b21d8 bp 0x7fffffff3dc0 sp 0x7fffffff3db8
READ of size 1 at 0x612000001980 thread T0
#0 0x7ffff63b21d7 in chnl_box_size /path/gpac/src/isomedia/box_code_base.c:12758:32
#1 0x7ffff6414b7b in gf_isom_box_size_listing /path/gpac/src/isomedia/box_funcs.c:2113:9
#2 0x7ffff6414b7b in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2125:6
#3 0x7ffff6414b7b in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#4 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#5 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#6 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#7 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#8 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#9 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#10 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#11 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#12 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#13 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#14 0x7ffff6414bcd in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#15 0x7ffff6414bcd in gf_isom_box_array_size /path/gpac/src/isomedia/box_funcs.c:540:8
#16 0x7ffff6415006 in gf_isom_box_size /path/gpac/src/isomedia/box_funcs.c:2131:7
#17 0x7ffff6491ba9 in WriteMoovAndMeta /path/gpac/src/isomedia/isom_store.c:474:7
#18 0x7ffff648bb95 in WriteFlat /path/gpac/src/isomedia/isom_store.c:1388:7
#19 0x7ffff6489044 in WriteToFile /path/gpac/src/isomedia/isom_store.c:2571:9
#20 0x7ffff650cb0d in gf_isom_finalize_for_fragment /path/gpac/src/isomedia/movie_fragments.c:161:7
#21 0x7ffff70eefc5 in mp4_mux_initialize_movie /path/gpac/src/filters/mux_isom.c:6017:6
#22 0x7ffff70eefc5 in mp4_mux_process_fragmented /path/gpac/src/filters/mux_isom.c:6338:7
#23 0x7ffff70e5ad3 in mp4_mux_process /path/gpac/src/filters/mux_isom.c:7273:14
#24 0x7ffff6da12a3 in gf_filter_process_task /path/gpac/src/filter_core/filter.c:2971:7
#25 0x7ffff6d6eceb in gf_fs_thread_proc /path/gpac/src/filter_core/filter_session.c:2076:3
#26 0x7ffff6d6ce3f in gf_fs_run /path/gpac/src/filter_core/filter_session.c:2376:3
#27 0x7ffff661c9da in gf_dasher_process /path/gpac/src/media_tools/dash_segmenter.c:1236:6
#28 0x5555556c26dc in do_dash /path/gpac/applications/mp4box/mp4box.c:4831:15
#29 0x5555556b3b6e in mp4box_main /path/gpac/applications/mp4box/mp4box.c:6245:7
#30 0x7ffff58461c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#31 0x7ffff5846284 in __libc_start_main csu/../csu/libc-start.c:360:3
#32 0x5555555dbdd0 in _start (/path/gpac/build3_asan/bin/gcc/MP4Box+0x87dd0) (BuildId: 0637ef26d76ba7d7d9f848431c3188bb4dc7e23e)
0x612000001980 is located 0 bytes to the right of 320-byte region [0x612000001840,0x612000001980)
allocated by thread T0 here:
#0 0x55555565ec1e in malloc (/path/gpac/build3_asan/bin/gcc/MP4Box+0x10ac1e) (BuildId: 0637ef26d76ba7d7d9f848431c3188bb4dc7e23e)
#1 0x7ffff63b178a in chnl_box_new /path/gpac/src/isomedia/box_code_base.c:12712:2
#2 0x7ffff64183d5 in gf_isom_box_new /path/gpac/src/isomedia/box_funcs.c:1896:9
#3 0x7ffff64183d5 in gf_isom_box_new_parent /path/gpac/src/isomedia/box_funcs.c:2351:14
SUMMARY: AddressSanitizer: heap-buffer-overflow /path/gpac/src/isomedia/box_code_base.c:12758:32 in chnl_box_size
Shadow bytes around the buggy address:
0x0c247fff82e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c247fff82f0: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa
0x0c247fff8300: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c247fff8310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c247fff8320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c247fff8330:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8340: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8350: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8360: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8370: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==4084326==ABORTING
#Additional potential crash sites
I do not have a POC file to exercise these code sites, but they follow a similar logic.
https://github.com/gpac/gpac/blob/master/src/isomedia/box_dump.c#L6882-L6888
https://github.com/gpac/gpac/blob/master/src/isomedia/box_code_base.c#L12687-L12697
Impact
An OOB read on the heap can potentially cause a crash or information disclosure in some cases. Could be leveraged with other vulnerabilities for a more serious impact.
Occurrences
box_code_base.c L12687-L12697
This instance in the code is fairly similar to the crash site. Not verified via a POC.
box_code_base.c L12756-L12760
This is where my crash was that caused ASAN.
box_dump.c L6882-L6888
This instance in the code is very similar to the crash site. Not verified via a POC.
``` | Heap OOB Read | https://api.github.com/repos/gpac/gpac/issues/2606/comments | 0 | 2023-09-30T10:45:02Z | 2023-10-04T09:49:13Z | https://github.com/gpac/gpac/issues/2606 | 1,920,211,289 | 2,606 |
[
"gpac",
"gpac"
] | 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
Hi, there.
There is a segmentation fault caused by double free in av_parsers.c:4038 in newest commit 6c7e0564303fa1690a744ad51a6b473564ea6d1a. It seems to be an incomplete fix of #2387, CVE-2023-1499.
Here is my environment, compiler info and gpac version:
~~~~
Distributor ID: Ubuntu
Description: 20.04.6 LTS
Compiler: Clang 14.0.1
MP4Box - GPAC version 2.3-DEV-rev543-g6c7e05643-master
(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: --disable-shared
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_JPEG GPAC_HAS_PNG GPAC_HAS_JP2 GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
~~~~
To reproduce, run
~~~~
./MP4Box -info poc
~~~~
POC:
[poc.zip](https://github.com/gpac/gpac/files/12725168/mp4box-doublefree-av_parsers4038.zip)
(unzip first)
Here is the trace reported by gdb:
~~~~
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff6f2a859 in __GI_abort () at abort.c:79
#2 0x00007ffff6f9526e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff70bf298 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007ffff6f9d2fc in malloc_printerr (str=str@entry=0x7ffff70c15d0 "free(): double free detected in tcache 2") at malloc.c:5347
#4 0x00007ffff6f9ef6d in _int_free (av=0x7ffff70f4b80 <main_arena>, p=0x6b9900, have_lock=0) at malloc.c:4201
#5 0x00007ffff7566016 in gf_av1_reset_state (state=0x6e0730, is_destroy=is_destroy@entry=GF_TRUE) at /benchmark/gpac/src/media_tools/av_parsers.c:4038
#6 0x00007ffff7a8c662 in av1dmx_finalize (filter=<optimized out>) at /benchmark/gpac/src/filters/reframe_av1.c:1255
#7 0x00007ffff7858421 in gf_fs_del (fsess=fsess@entry=0x6c1220) at /benchmark/gpac/src/filter_core/filter_session.c:773
#8 0x00007ffff75b70dc in gf_media_import (importer=importer@entry=0x7fffffff7230) at /benchmark/gpac/src/media_tools/media_import.c:1304
#9 0x0000000000450cb8 in convert_file_info (inName=0x7fffffffe5fb "tmp_crash2", track_id=0x49e1d0 <info_track_id>) at /benchmark/gpac/applications/mp4box/fileimport.c:130
#10 0x0000000000424e82 in mp4box_main (argc=5, argv=0x7fffffffe338) at /benchmark/gpac/applications/mp4box/mp4box.c:6380
#11 0x00007ffff6f2c083 in __libc_start_main (main=0x42a530 <main>, argc=5, argv=0x7fffffffe338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe328) at ../csu/libc-start.c:308
#12 0x0000000000410e5e in _start ()
~~~~
| Double free in gf_av1_reset_state media_tools/av_parsers.c:4038 | https://api.github.com/repos/gpac/gpac/issues/2604/comments | 1 | 2023-09-26T08:39:02Z | 2023-09-27T11:20:48Z | https://github.com/gpac/gpac/issues/2604 | 1,912,998,606 | 2,604 |
[
"gpac",
"gpac"
] | Hello gpac community,
In my workflow I need the META XML to be at the very beginning or very end of the MP4 container. Is there a way to influence this behaviour?
Thank you,
Joachim | MP4Box META -add-xml towards END of File | https://api.github.com/repos/gpac/gpac/issues/2603/comments | 1 | 2023-09-24T21:08:02Z | 2023-10-12T13:38:14Z | https://github.com/gpac/gpac/issues/2603 | 1,910,379,689 | 2,603 |
[
"gpac",
"gpac"
] | 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: https://github.com/jadarve/gpac_experiments/blob/main/code_experiments/create_session.c
When using the C-api, there is a small inconsistency in the `gf_fs_load_filter` when passing an empty string as filter name.
```c
#include <stdio.h>
#include <gpac/filters.h>
int main(int argc, const char** argv) {
GF_FilterSession *session = gf_fs_new_defaults(0u);
if (session == NULL)
{
fprintf(stderr, "Failed to create GPAC session\n");
return EXIT_FAILURE;
}
GF_Err gf_err = GF_OK;
GF_Filter *filter_ptr = gf_fs_load_filter(session, "", &gf_err);
const char* err_str = gf_error_to_string(gf_err);
printf("Error code %d: %s\n", gf_err, err_str);
if (filter_ptr == NULL) {
printf("Filter ptr NULL\n");
} else {
printf("Filter loaded\n");
}
return EXIT_SUCCESS;
}
```
The code above prints:
```
Error code 0: No Error
Filter ptr NULL
```
With an extra log line `Missing filter name in` produced by gpac logs.
Instead, if I run the code above with `GF_Filter *filter_ptr = gf_fs_load_filter(session, "some_unknown_filter", &gf_err);`, the output is:
```
Error code -11: Filter not found for the desired type
Filter ptr NULL
``` | Inconsistent error code on gf_fs_load_filter() | https://api.github.com/repos/gpac/gpac/issues/2602/comments | 1 | 2023-09-22T20:30:09Z | 2023-09-25T07:05:53Z | https://github.com/gpac/gpac/issues/2602 | 1,909,485,047 | 2,602 |
[
"gpac",
"gpac"
] | Latest code pulled from git and Ubuntu 22.04 fully updated. a make produces the following error:
``` CC quickjs/quickjs-libc.c
/usr/bin/ld: /usr/local/lib/libswscale.a(swscale.o): warning: relocation against `ff_M24B' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libswscale.a(swscale.o): relocation R_X86_64_PC32 against symbol `ff_M24A' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:387: ../bin/gcc/libgpac.so] Error 1
``` | Build make fails | https://api.github.com/repos/gpac/gpac/issues/2601/comments | 1 | 2023-09-21T18:42:18Z | 2023-09-21T18:57:55Z | https://github.com/gpac/gpac/issues/2601 | 1,907,560,106 | 2,601 |
[
"gpac",
"gpac"
] | 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
Hi, there.
There is a segmentation fault caused by invalid memory write in isom_write.c:8904 in newest commit 6c7e0564303fa1690a744ad51a6b473564ea6d1a. It seems to be an incomplete fix of #2166.
Here is my environment, compiler info and gpac version:
~~~~
Distributor ID: Ubuntu
Description: 20.04.6 LTS
Compiler: Clang 14.0.1
MP4Box - GPAC version 2.3-DEV-rev543-g6c7e05643-master
(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: --disable-shared
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_JPEG GPAC_HAS_PNG GPAC_HAS_JP2 GPAC_HAS_VORBIS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
~~~~
To reproduce, run
~~~~
./MP4Box -hint poc
~~~~
POC:
[poc.zip](https://github.com/gpac/gpac/files/12690029/mp4box-seg-gf_isom_add_sample_aux_info_internal8904.zip)
(unzip first)
Here is the trace reported by gdb:
~~~~
#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:306
#1 0x00007ffff74bb356 in gf_isom_add_sample_aux_info_internal (trak=trak@entry=0x6a57b0, _traf=_traf@entry=0x0, sampleNumber=sampleNumber@entry=178956971,
aux_type=1668050531, aux_info=0, data=data@entry=0x6abb60 "\305", <incomplete sequence \321>, size=24)
at /benchmark/gpac/src/isomedia/isom_write.c:8904
#2 0x00007ffff74f90c7 in MergeTrack (trak=<optimized out>, trak@entry=0x6a57b0, traf=<optimized out>, traf@entry=0x6a7dd0, moof_box=moof_box@entry=0x6a7360,
moof_offset=<optimized out>, compressed_diff=<optimized out>, cumulated_offset=<optimized out>, cumulated_offset@entry=0x7fffffffa8d8)
at /benchmark/gpac/src/isomedia/track.c:1248
#3 0x00007ffff747073c in MergeFragment (moof=0x6a7360, mov=mov@entry=0x6c1220) at /benchmark/gpac/src/isomedia/isom_intern.c:92
#4 0x00007ffff7473529 in gf_isom_parse_movie_boxes_internal (mov=0x6c1220, boxType=0x0, bytesMissing=0x7fffffffa9b8, progressive_mode=GF_FALSE)
at /benchmark/gpac/src/isomedia/isom_intern.c:736
#5 gf_isom_parse_movie_boxes (mov=mov@entry=0x6c1220, boxType=boxType@entry=0x0, bytesMissing=bytesMissing@entry=0x7fffffffa9b8,
progressive_mode=progressive_mode@entry=GF_FALSE) at /benchmark/gpac/src/isomedia/isom_intern.c:897
#6 0x00007ffff7474361 in gf_isom_open_file (
fileName=0x7fffffffe5a5 " /testoutput/mp4hint-1/default/crashes/id:000000,sig:11,src:000992,time:15923297,execs:478509,op:havoc,rep:2",
OpenMode=GF_ISOM_OPEN_EDIT, tmp_dir=<optimized out>) at /benchmark/gpac/src/isomedia/isom_intern.c:1023
#7 0x0000000000423593 in mp4box_main (argc=3, argv=0x7fffffffe2f8) at /benchmark/gpac/applications/mp4box/mp4box.c:6297
#8 0x00007ffff6f2c083 in __libc_start_main (main=0x42a530 <main>, argc=3, argv=0x7fffffffe2f8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe2e8) at ../csu/libc-start.c:308
#9 0x0000000000410e5e in _start ()
~~~~
Detailed guidelines: http://gpac.io/bug-reporting/
| Segmentation fault caused by invalid memory write using mp4box in gf_isom_add_sample_aux_info_internal, isom_write.c:8904 | https://api.github.com/repos/gpac/gpac/issues/2600/comments | 0 | 2023-09-21T18:07:54Z | 2023-09-28T09:18:38Z | https://github.com/gpac/gpac/issues/2600 | 1,907,505,799 | 2,600 |
[
"gpac",
"gpac"
] | []The command is as follows:
./gpac -i udp://127.0.0.1:10000 tilesplit reframer:rt=on -o http://localhost:8080/live.mpd --segdur=4 --cdur=1 --profile=live --dmode=dynamic --rdirs=file
[] UDP TS input, TS stream contains audio and HEVC video, and tilesplit is used to convert to dash, but an error is reported like this
[Eval] Undefined constant or missing '(' in 'live'
[NULL] Unable to parse option value "live"
[NULL] Error setting option profile to value live.
[FFEnc] No codecid specified
Failed to connect filter ffdec PID P1V2 to filter ffenc: Bad Parameter
[] How can I solve it, thanks!
| udp stream to tilesplit dash fail | https://api.github.com/repos/gpac/gpac/issues/2598/comments | 1 | 2023-09-20T05:56:55Z | 2023-09-20T08:02:39Z | https://github.com/gpac/gpac/issues/2598 | 1,904,210,803 | 2,598 |
[
"gpac",
"gpac"
] | Question regarding file size reduction and bitrate reduction when muxing video and audio using MP4Box
I have got some jerky motion video only when play with QuickTime Player. They can be fixed by demuxing and re-muxing using MP4Box.
Today, I got one video both file size and bitrate are reduced even though just demuxing and re-muxing using MP4Box. (File size was reduced to about 68% of original video, Bitrate was reduced to about 67% of original video)
After processing, I mean demuxing and re-muxing, the video seems to play without any problem. I feel suspition about file size and bitrate are reduced such a big amount without re-encoding. Could you explain me such a thing is possible or not?
MP4Box Version:
MP4Box - GPAC version 2.3-DEV-rev537-gc9cad7b7d-master
Command to demux:
% MP4Box -raw 1 input.mp4
Exporting MPEG-4 AVC|H264 Video - Size 1920x1080
% MP4Box -raw 2 input.mp4
Exporting MPEG-4 AAC Audio - SampleRate 48000 2 channels 16 bits per sample
Command to re-mux:
% MP4Box -add input_track1.264 -add input_track2.aac -new output.mp4
Track Importing MPEG-4 AVC - Width 1920 Height 1080 FPS 40000000/1334668 SAR 8001/8000
AVC|H264 Import results: 130118 samples (462919 NALUs) - Slices: 2808 I 35050 P 92261 B - 132926 SEI - 2807 IDR - 0 CRA
AVC|H264 Stream uses forward prediction - stream CTS offset: 3 frames
AVC|H264 Max NALU size is 62328 - stream could be optimized by setting nal_length=2
Track Importing AAC - SampleRate 24000 Num Channels 2
File size for input/output:
% ls -l input* output*
-rw-r--r--@ 1 roushi staff 1862113648 9 18 16:50 input.mp4
-rw-r--r-- 1 roushi staff 1822261637 9 18 21:28 input_track1.264
-rw-r--r-- 1 roushi staff 38909579 9 18 21:28 input_track2.aac
-rw-r--r-- 1 roushi staff 1265112993 9 18 21:31 output.mp4
Bitrate for input/output:
% mp4info input.mp4
mp4info version 2.0.0
input.mp4:
Track Type Info
1 video H264 High@4, 4341.608 secs, 3356 kbps, 1920x1080 @ 29.970002 fps
2 audio MPEG-4 AAC LC, 4341.717 secs, 70 kbps, 48000 Hz
3 text
Encoded with: Lavf58.20.100
% mp4info output.mp4
mp4info version 2.0.0
output.mp4:
Track Type Info
1 video H264 High@4, 4341.675 secs, 2257 kbps, 1920x1080 @ 29.969539 fps
2 audio MPEG-4 AAC LC, 4341.717 secs, 70 kbps, 24000 Hz
Encoded with: GPAC-2.3-DEV-rev537-gc9cad7b7d-master | Question regarding file size reduction and bitrate reduction when muxing video and audio using MP4Box | https://api.github.com/repos/gpac/gpac/issues/2597/comments | 4 | 2023-09-18T13:59:42Z | 2023-10-12T15:06:25Z | https://github.com/gpac/gpac/issues/2597 | 1,901,013,273 | 2,597 |
[
"gpac",
"gpac"
] | I'm trying to run the GPAC service on gpac_android with the command _"gpac -i route:{url}:max_segs=8 dashin:forward=file httpout:port=6000 --rdirs=/sdcard/gpac --cors=auto"_, which is causing a crash with the log message _JNI DETECTED ERROR IN APPLICATION: can't call void android.media.AudioTrack.stop() on null object_. If I comment out the uninit() function in the gpac_jni.cpp file and rebuild, the crash doesn't occur. However, the service doesn't stop. Therefore, I'm attempting to stop the previous service and start a new one.
Crash log: https://www.mediafire.com/file/h10vaq1x14dktsw/gpac_crash_log.rtf/file
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/
| App crashes when running GPAC Service | https://api.github.com/repos/gpac/gpac/issues/2596/comments | 0 | 2023-09-17T12:44:01Z | 2024-01-15T12:26:01Z | https://github.com/gpac/gpac/issues/2596 | 1,899,771,870 | 2,596 |
[
"gpac",
"gpac"
] | 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/
For ROUTE testing what I did what:
--- routeout:
gpac -i http://server/manifest.mpd dashin:forward=file -o route://225.1.1.0:6000:llmode: -logs=all@info
[DASH] No ROUTE entity on HTTP request
[DASH] Estimated UTC diff between client and server (2023-09-13T04:28:49Z): 301 ms (UTC fetch 1694579329301 - server UTC 1694579329000 - MPD AST 1694498472000 - MPD PublishTime 1694579329000
[DASH] AST at init 1694498472301
[DASH] At current time 80857000 ms: Initializing Timeline: startNumber=0 segmentNumber=20214 segmentDuration=4.000000 - 0.000 seconds in segment (start range 80856)
[DASH] No ROUTE entity on HTTP request
[DASH] Estimated UTC diff between client and server (2023-09-13T04:28:49Z): 301 ms (UTC fetch 1694579329301 - server UTC 1694579329000 - MPD AST 1694498472000 - MPD PublishTime 1694579329000
[DASH] AST at init 1694498472301
[DASH] At current time 80857000 ms: Initializing Timeline: startNumber=0 segmentNumber=20214 segmentDuration=4.000000 - 0.000 seconds in segment (start range 80856)
--- routein:
gpac -i route://225.1.1.0:6000/:max_segs=4 dashin:forward=file httpout:port=8080 --rdirs=/tmp/gpac -logs=all@info
[HTTPOut] Closing output /tmp/gpac/manifest.mpd
[DASH] Waiting for ROUTE clock ...
[DASH] Waiting for ROUTE clock ...
[DASH] Waiting for ROUTE clock ...
... repeated many times
[DASH] Waiting for ROUTE clock ...
[HTTP] Pushing http://groute/service1/a_1694498479_20475.m4s to cache 65817 bytes (done yes)
[ROUTE] Pushing file a_1694498479_20475.m4s to cache
[ROUTE] Service 1 got file i_1694498479.m4s (TSI 20 TOI 4294967295) size 612 in 0 ms
[HTTP] Pushing http://groute/service1/i_1694498479.m4s to cache 612 bytes (done yes)
[ROUTE] Pushing file i_1694498479.m4s to cache
[ROUTE] Service 1 object TSI 20 TOI 20476 started without total-length assigned !
[HTTP] Pushing http://groute/service1/a_1694498479_20476.m4s to cache 1452 bytes (done no)
[ROUTE] Pushing fragment from file a_1694498479_20476.m4s to cache
[ROUTE] Pushing fragment from file a_1694498479_20476.m4s to cache
[ROUTE] Pushing fragment from file a_1694498479_20476.m4s to cache
[ROUTE] Pushing fragment from file a_1694498479_20476.m4s to cache
[ROUTE] Pushing fragment from file a_1694498479_20476.m4s to cache
[DASH] Estimated UTC diff of ROUTE broadcast 5404 ms (UTC fetch 1694580381404 - server UTC 1694580376000 - MPD AST 1694498472000 - MPD PublishTime 1694580377000 - bootstraping on segment a_1694498479_20475.m4s
What could be the fix for the UTC diff during ROUTE or help by giving me an example for this? Appreciate your help. Thanks | ROUTE out/in UTC difference | https://api.github.com/repos/gpac/gpac/issues/2594/comments | 6 | 2023-09-13T04:59:03Z | 2024-05-23T10:48:25Z | https://github.com/gpac/gpac/issues/2594 | 1,893,742,489 | 2,594 |
[
"gpac",
"gpac"
] | latest build
MP4Box - GPAC version 2.3-DEV-rev531-g61f1cf39e-master
and
MP4Box - GPAC version 2.3-DEV-rev314-gedc6d8aa9-master
all have this issue
my command is
mp4box -dash 30000 -profile onDemand big.mp4 -out dash.mpd --dual
big.mp4 is 18GB
my system memory is :
free -h
total used free shared buff/cache available
Mem: 15G 2.1G 12G 5.3M 506M 13G
Swap: 3.0G 2.6G 400M
[11768127.914421] Out of memory: Kill process 16249 (mp4box) score 694 or sacrifice child
[11768127.914794] Killed process 16249 (mp4box), UID 0, total-vm:13886608kB, anon-rss:13692940kB, file-rss:4kB, shmem-rss:0kB
only 5.5GB data has been converted
-rw-------. 1 root root 18G Sep 11 06:17 big.mp4
-rw-------. 1 root root 5.5G Sep 11 08:17 big_dashinit.mp4
is there a memory leak in this case ?
we can not provide you the big.mp4 since it is customer data
| mp4box out of memory when convert normal mp4 to fmp4 | https://api.github.com/repos/gpac/gpac/issues/2593/comments | 11 | 2023-09-11T08:28:38Z | 2023-10-08T09:24:34Z | https://github.com/gpac/gpac/issues/2593 | 1,889,961,293 | 2,593 |
[
"gpac",
"gpac"
] | 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/
I would like to express my sincere gratitude for providing us with the exceptional open-source software, GPAC. Currently, I am utilizing MP4Box for image encapsulation.
Here are the steps I follow to process the images:
1. First, I use ffmpeg to pad the images to m512 x n512 dimensions. The command is as follows:
`ffmpeg -i input.png -vf "pad=4096:3072:220:240" pad.png`
2.Next, I utilize the kvazaar encoder to encode the resized images into HEVC bitstreams with a tile size of 512x512. Additionally, I encapsulate the bitstreams into HEIF format images. The command I am using is:
`MP4Box -add-image pad.png:@enc:c=libkvazaar::kvazaar-params=tiles=8x6,slices=tiles,mv-constraint=frametilemargin:@tilesplit -new pad.heic`
I have encountered a few issues during this process and would greatly appreciate your assistance. My first question is regarding the usage of MP4Box to execute ffmpeg commands, so that I can accomplish the image padding, transcoding, and HEIF encapsulation steps with a single MP4Box command, like follows:
` MP4Box -add-image input.png:@ffavf:f=pad=w=4096=h=3072:@enc:c=libkvazaar::kvazaar-params=tiles=8x6,slices=tiles,mv-constraint=frametilemargin:@tilesplit -new pad.heic
`
I tried the command mentioned above, but I didn't get any output.


| How to use the filter ffavf of ffmpeg through mp4box? | https://api.github.com/repos/gpac/gpac/issues/2591/comments | 1 | 2023-09-07T10:43:20Z | 2023-09-13T11:06:50Z | https://github.com/gpac/gpac/issues/2591 | 1,885,636,865 | 2,591 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
hello
I'm trying to play the mpd file that tiled 360 video using gpac's sgaze option.
However, it does not run normally. There is no change depending on the mouse.
There are two types of image quality: low-definition and high-definition, and we generated one mpd file by packaging it in mp4box.
Here's the code I used.
In addition, may I know what is the minimum value of mbuffer?
1. gpac -gui dash_file.mpd#vr --mbuffer=500 --skip_lqt --sgaze=true
Any help would be appreciated.
- [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/
| How do I apply the sgaze option to 360 video? | https://api.github.com/repos/gpac/gpac/issues/2590/comments | 2 | 2023-09-06T15:46:30Z | 2024-06-04T14:37:34Z | https://github.com/gpac/gpac/issues/2590 | 1,884,296,816 | 2,590 |
[
"gpac",
"gpac"
] | [POC_crash000362](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_out_of_bound_read/crash000362) is here.
```
Description
Out of Bounds Read in MP4Box.
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 -out /dev/null ./crash000362
[POC_crash000362](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_out_of_bound_read/crash000362) is here.
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000362
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Failed to connect filter btplay PID crash000362 to filter dasher: Feature Not Supported
Blacklisting dasher as output from btplay and retrying connections
BT: X3D (WRL) Scene Parsing | (70/100)
scene_manager/loader_bt.c:478:21: runtime error: index 500 out of bounds for type 'char [500]'
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
loader_bt.c L478
scene_manager/loader_bt.c:478:21: runtime error: index 500 out of bounds for type 'char [500]'
```
| Out of Bounds Read in scene_manager/loader_bt.c:478 | https://api.github.com/repos/gpac/gpac/issues/2589/comments | 0 | 2023-09-05T12:11:04Z | 2023-09-05T14:59:19Z | https://github.com/gpac/gpac/issues/2589 | 1,881,851,147 | 2,589 |
[
"gpac",
"gpac"
] | ``` 13:38:34.273Z] GPAC Session Status: mem 18446744073700581 kb CPU 0 ```
Potential negative value displayed :
Command line:
gpac -i https://akamaibroadcasteruseast.akamaized.net/cmaf/live/657078/akasource/out.mpd dashin:forward=file -o route://225.1.1.0:6000 -r
| Potential negative value displayed in Console | https://api.github.com/repos/gpac/gpac/issues/2588/comments | 1 | 2023-09-04T13:44:20Z | 2023-09-05T14:52:53Z | https://github.com/gpac/gpac/issues/2588 | 1,880,323,988 | 2,588 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [-] I looked for a similar issue and couldn't find any.
- [-] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [-] 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/
---
I referred to [wiki](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux#mp4box-only) and this [issue](https://github.com/gpac/gpac/issues/2045), it looks like currently gpac does not support static compilation with `asan`, so I tried build the gpac latest commit (`16c2fce`) with `./configure --enable-sanitizer && make -j` to build a dynamic binary. However, the compilation failed due to undefined reference to `__asan_init`.
Detailed fail results are sth like the following:
```
<scratch space>:103:1: note: expanded from here
9223372036854775807L
^~~~~~~~~~~~~~~~~~~~
2 warnings generated.
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_ctor: error: undefined reference to '__asan_init'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_ctor: error: undefined reference to '__asan_version_mismatch_check_v8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_ctor: error: undefined reference to '__asan_register_globals'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_dtor: error: undefined reference to '__asan_unregister_globals'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__asan_option_detect_stack_use_after_return'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__asan_stack_malloc_0'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__ubsan_handle_mul_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__ubsan_handle_add_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__ubsan_handle_sub_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__asan_report_load8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock: error: undefined reference to '__asan_report_load8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__asan_option_detect_stack_use_after_return'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__asan_stack_malloc_0'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__ubsan_handle_mul_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__ubsan_handle_add_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__asan_report_load8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_clock_high_res: error: undefined reference to '__asan_report_load8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_option_detect_stack_use_after_return'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_stack_malloc_0'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_report_load4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__ubsan_handle_type_mismatch_v1_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_report_store4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_report_store8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sleep: error: undefined reference to '__asan_report_store8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__asan_option_detect_stack_use_after_return'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__asan_stack_malloc_0'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__asan_report_store4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__asan_report_store4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__ubsan_handle_type_mismatch_v1_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_utc_time_since_1970: error: undefined reference to '__ubsan_handle_type_mismatch_v1_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_user_name: error: undefined reference to '__asan_memcpy'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_user_name: error: undefined reference to '__ubsan_handle_nonnull_arg_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__asan_report_store1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__ubsan_handle_type_mismatch_v1_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__ubsan_handle_pointer_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__ubsan_handle_pointer_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__ubsan_handle_pointer_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__ubsan_handle_nonnull_arg_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__asan_report_load1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_upr: error: undefined reference to '__asan_report_load4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_lwr: error: undefined reference to '__asan_report_store1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_lwr: error: undefined reference to '__ubsan_handle_pointer_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_lwr: error: undefined reference to '__ubsan_handle_nonnull_arg_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_lwr: error: undefined reference to '__asan_report_load1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function my_str_lwr: error: undefined reference to '__asan_report_load4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_set_echo_off: error: undefined reference to '__asan_memcpy'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_has_input: error: undefined reference to '__asan_memcpy'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_has_input: error: undefined reference to '__asan_report_load1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_char: error: undefined reference to '__asan_report_load1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_char: error: undefined reference to '__asan_report_store1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_char: error: undefined reference to '__asan_report_store1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_size: error: undefined reference to '__asan_report_load2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_size: error: undefined reference to '__asan_report_store4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_prompt_get_size: error: undefined reference to '__asan_report_load2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_gmtime: error: undefined reference to '__asan_report_load4'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_log_reset_file: error: undefined reference to '__asan_report_store8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_stack_malloc_5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_f8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_00'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_f8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_f8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_stack_free_5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_00'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__ubsan_handle_nonnull_arg_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__ubsan_handle_add_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_set_shadow_f8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__ubsan_handle_out_of_bounds_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_report_load2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_report_load2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__ubsan_handle_sub_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_set_args: error: undefined reference to '__asan_report_store8'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_enable_remotery: error: undefined reference to '__asan_memset'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_enable_remotery: error: undefined reference to '__asan_report_store2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gpac_rmt_log_callback: error: undefined reference to '__asan_stack_malloc_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gpac_rmt_log_callback: error: undefined reference to '__asan_set_shadow_00'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gpac_rmt_log_callback: error: undefined reference to '__asan_memcpy'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gpac_rmt_log_callback: error: undefined reference to '__asan_stack_free_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gpac_rmt_log_callback: error: undefined reference to '__asan_set_shadow_00'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_blob_register: error: undefined reference to '__asan_stack_malloc_3'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_blob_register: error: undefined reference to '__asan_set_shadow_f5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_lang_file: error: undefined reference to '__asan_stack_malloc_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_lang_file: error: undefined reference to '__asan_memset'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_lang_file: error: undefined reference to '__asan_stack_free_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__asan_stack_malloc_3'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__asan_memset'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__asan_set_shadow_f5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__ubsan_handle_mul_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__ubsan_handle_add_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__ubsan_handle_sub_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_init: error: undefined reference to '__ubsan_handle_mul_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_rti_os: error: undefined reference to '__asan_stack_malloc_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_rti_os: error: undefined reference to '__asan_memset'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_rti_os: error: undefined reference to '__asan_stack_free_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_sys_get_rti_os: error: undefined reference to '__ubsan_handle_sub_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_default_cache_directory_ex: error: undefined reference to '__asan_stack_malloc_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_default_cache_directory_ex: error: undefined reference to '__asan_stack_free_7'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_default_cache_directory_ex: error: undefined reference to '__ubsan_handle_out_of_bounds_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_default_cache_directory_ex: error: undefined reference to '__ubsan_handle_out_of_bounds_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_get_default_cache_directory_ex: error: undefined reference to '__ubsan_handle_out_of_bounds_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_get_ntp_ms: error: undefined reference to '__ubsan_handle_float_cast_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__asan_stack_malloc_3'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__asan_set_shadow_f5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__ubsan_handle_float_cast_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__ubsan_handle_float_cast_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__ubsan_handle_float_cast_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_parse_date: error: undefined reference to '__ubsan_handle_negate_overflow_abort'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_net_get_utc_ts: error: undefined reference to '__asan_stack_malloc_1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_bin128_parse: error: undefined reference to '__asan_stack_malloc_1'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_getch: error: undefined reference to '__asan_stack_malloc_2'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_creds_check_password: error: undefined reference to '__asan_stack_malloc_3'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function gf_creds_check_password: error: undefined reference to '__asan_set_shadow_f5'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_ctor.46: error: undefined reference to '__asan_init'
../bin/gcc/libgpac.so.lto.o:ld-temp.o:function asan.module_ctor.46: error: undefined reference to '__asan_version_mismatch_check_v8'
```
I'd like to know how to build the latest version of gpac with `asan`?
May you help on this? Thank you. | ASAN build error | https://api.github.com/repos/gpac/gpac/issues/2587/comments | 5 | 2023-09-04T12:48:31Z | 2024-01-15T12:24:52Z | https://github.com/gpac/gpac/issues/2587 | 1,880,216,006 | 2,587 |
[
"gpac",
"gpac"
] | (old topic but creating a simplified examples and ffmpeg reference)
**Is it possible to generate dash `trun.version=1 (negative composite offset)` for audio segments?**
Video segments use `trun.version=1` format but never able to do it on audio segments.
Validators may output warnings if version=1 is not used.
Mp4box can write `trun.version=1` for video segments but no audio segments.
```
mp4box -dash 3840 -frag 1920 -dash-scale 1000 -mem-frags -rap -profile dashavc264:live \
-profile-ext urn:hbbtv:dash:profile:isoff-live:2012 -min-buffer 2000 \
-bs-switching no \
-sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no --truns_first=yes \
--cmaf=cmf2 -subsegs-per-sidx -1 \
-segment-name "$RepresentationID$/$Number$$Init=i$" \
-out "manifest.mpd" \
"Agent327_Spring_640x360.mp4#trackID=1:id=v1:period=p0:asID=1:role=main:dur=11.520" \
"Agent327_Spring_128.mp4#trackID=1:id=a1:period=p0:asID=21:role=main:dur=11.520"
```
Ffmpeg can write `trun.version=1` for video and audio segments.
(output folders `./0/, ./1/` must exist)
```
v1=[s1]scale=640x360:out_range=tv:out_color_matrix=bt709:flags=full_chroma_int+accurate_rnd,format=yuv420p,setsar=1/1[v1]
ffmpeg -i "Agent327_Spring_640x360.mp4" -i "Agent327_Spring_128.mp4" -t "11.520" -preset fast \
-r 25 -keyint_min 25 -g 50 \
-filter_complex "[0:v]split=1[s1]; $v1" \
-refs 3 -bf 3 -b_strategy 1 -flags +cgop -sc_threshold 0 \
-c:v libx264 -pix_fmt yuv420p \
-map "[v1]" -crf:v:0 23 -profile:v:0 main -level:v:0 3.0 -maxrate:v:0 600k -bufsize:v:0 1200k -b:v:0 600k \
-metadata:s:v:0 "language=eng" -metadata:s:v:0 "role=main" \
-color_range tv -colorspace bt709 -color_primaries bt709 -color_trc bt709 \
-map 1:a -ar:a:0 48000 -ac:a:0 2 -c:a:0 aac -b:a:0 128k \
-metadata:s:a:0 "language=eng" -metadata:s:a:0 "role=main" \
-format_options "movflags=cmaf:write_btrt=0" \
-seg_duration 4 -use_template 1 -use_timeline 0 -dash_segment_type mp4 -frag_duration 4 \
-adaptation_sets "id=0,frag_type=duration,streams=v id=1,frag_type=duration,streams=a" \
-init_seg_name "$RepresentationID$/i.mp4" \
-media_seg_name "$RepresentationID$/$Number$.m4s" \
-movflags negative_cts_offsets+faststart \
-f dash -y "manifest.mpd"
```
Reference:
https://github.com/gpac/gpac/issues/1260
https://github.com/gpac/gpac/issues/1253
Test input files:
https://refapp.hbbtv.org/videos/dashtest/Agent327_Spring_128.mp4
https://refapp.hbbtv.org/videos/dashtest/Agent327_Spring_640x360.mp4
| Generate dash "trun.version=1" audio segments never happens, video segments are fine | https://api.github.com/repos/gpac/gpac/issues/2586/comments | 2 | 2023-09-04T07:40:35Z | 2023-09-15T20:51:14Z | https://github.com/gpac/gpac/issues/2586 | 1,879,698,855 | 2,586 |
[
"gpac",
"gpac"
] | MP4 file format appears to support a default flag on audio tracks as well as subtitle tracks, although not all MP4 players respect this setting, many simply pick the track with the highest ID.
To ensure maximum compatibility, it would be nice if MP4Box could allow setting this flag. FFMPEG currently allows it with the `-disposition:a:1 default` flag, so that may be a useful reference for how it's being done.
- [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/
| FR: Allow setting default audio track with MP4Box | https://api.github.com/repos/gpac/gpac/issues/2585/comments | 2 | 2023-09-04T01:29:41Z | 2023-09-05T01:39:09Z | https://github.com/gpac/gpac/issues/2585 | 1,879,346,156 | 2,585 |
[
"gpac",
"gpac"
] | [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 | https://api.github.com/repos/gpac/gpac/issues/2584/comments | 0 | 2023-09-02T11:00:34Z | 2023-09-04T07:35:51Z | https://github.com/gpac/gpac/issues/2584 | 1,878,616,410 | 2,584 |
[
"gpac",
"gpac"
] | [POC_crash000024](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_uaf/crash000024) is here.
```
MP4Box -dash 1000 -out /dev/null ./crash000024
```
```
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 -out /dev/null ./crash000024
[POC_crash000024](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_uaf/crash000024) is here.
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000024
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[RFC6381] Cannot find M4V config, using default mp4v.20
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[Dasher] PID crash000024 config changed during active period, forcing period switch
[MPD] Generating MPD at time 2023-09-01T02:57:51.085Z
[Dasher] End of Period
[MP4Mux] PID has no input packet and configuration not known after 10 retries, aborting initial timing sync
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[Dasher] PID crash000024 config changed during active period, forcing period switch
[MPD] Generating MPD at time 2023-09-01T02:57:51.088Z
[Dasher] End of Period
[RFC6381] Cannot find M4V config, using default mp4v.20
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 11000/29667
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[Dasher] PID crash000024 config changed during active period, forcing period switch
[MP4Mux] PID has no input packet and configuration not known after 10 retries, aborting initial timing sync
[MP4Mux] Unable to setup fragmentation for track ID 0: Bad Parameter
[MPD] Generating MPD at time 2023-09-01T02:57:51.090Z
[Dasher] End of Period
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 12000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 13000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 14000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 15000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 16000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 17000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 18000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 19000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 20000/29667
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 21000/29667
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
[Dasher] PID crash000024 config changed during active period, forcing period switch
[MPD] Generating MPD at time 2023-09-01T02:57:51.093Z
[Dasher] End of Period
[RFC6381] Cannot find M4V config, using default mp4v.20
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 22000/29667
[Dasher] No bitrate property assigned to PID crash000024, computing from bitstream
=================================================================
==416525==ERROR: AddressSanitizer: heap-use-after-free on address 0x617000012b40 at pc 0x7f561b9e449d bp 0x7ffd43a3c280 sp 0x7ffd43a3c270
READ of size 8 at 0x617000012b40 thread T0
#0 0x7f561b9e449c in mp4_mux_process_fragmented filters/mux_isom.c:6634
#1 0x7f561b9e449c in mp4_mux_process filters/mux_isom.c:7207
#2 0x7f561b66adbe in gf_filter_process_task filter_core/filter.c:2971
#3 0x7f561b62a0ea in gf_fs_thread_proc filter_core/filter_session.c:1962
#4 0x7f561b637a56 in gf_fs_run filter_core/filter_session.c:2261
#5 0x7f561afcd03d in gf_dasher_process media_tools/dash_segmenter.c:1236
#6 0x55c711eb7c26 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#7 0x55c711eb7c26 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#8 0x7f5618279082 in __libc_start_main ../csu/libc-start.c:308
#9 0x55c711e8ffcd in _start (/home/functionmain/Desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5fcd)
0x617000012b40 is located 320 bytes inside of 672-byte region [0x617000012a00,0x617000012ca0)
freed by thread T0 here:
#0 0x7f561e27a40f in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122
#1 0x7f561b9d9b86 in mp4_mux_configure_pid filters/mux_isom.c:3994
#2 0x7f561b5f941e in gf_filter_pid_configure filter_core/filter_pid.c:876
#3 0x7f561b601505 in gf_filter_pid_disconnect_task filter_core/filter_pid.c:1285
#4 0x7f561b62a0ea in gf_fs_thread_proc filter_core/filter_session.c:1962
#5 0x7f561b637a56 in gf_fs_run filter_core/filter_session.c:2261
#6 0x7f561afcd03d in gf_dasher_process media_tools/dash_segmenter.c:1236
#7 0x55c711eb7c26 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#8 0x55c711eb7c26 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#9 0x7f5618279082 in __libc_start_main ../csu/libc-start.c:308
previously allocated by thread T0 here:
#0 0x7f561e27a808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f561b9bf53d in mp4_mux_setup_pid filters/mux_isom.c:1078
#2 0x7f561b5f941e in gf_filter_pid_configure filter_core/filter_pid.c:876
#3 0x7f561b601dee in gf_filter_pid_connect_task filter_core/filter_pid.c:1230
#4 0x7f561b62a0ea in gf_fs_thread_proc filter_core/filter_session.c:1962
#5 0x7f561b637a56 in gf_fs_run filter_core/filter_session.c:2261
#6 0x7f561afcd03d in gf_dasher_process media_tools/dash_segmenter.c:1236
#7 0x55c711eb7c26 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#8 0x55c711eb7c26 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#9 0x7f5618279082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-use-after-free filters/mux_isom.c:6634 in mp4_mux_process_fragmented
Shadow bytes around the buggy address:
0x0c2e7fffa510: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c2e7fffa520: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa530: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa540: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c2e7fffa550: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c2e7fffa560: fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd fd fd
0x0c2e7fffa570: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c2e7fffa580: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c2e7fffa590: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa5a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==416525==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
mux_isom.c L6634
SUMMARY: AddressSanitizer: heap-use-after-free filters/mux_isom.c:6634 in mp4_mux_process_fragmented
```
| heap-use-after-free in mp4_mux_process_fragmented filters/mux_isom.c:6634 | https://api.github.com/repos/gpac/gpac/issues/2583/comments | 0 | 2023-09-02T10:59:47Z | 2023-09-04T07:35:50Z | https://github.com/gpac/gpac/issues/2583 | 1,878,615,735 | 2,583 |
[
"gpac",
"gpac"
] | [POC_crash000394](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_heap_buffer_overflow/crash000394) is here
```
MP4Box -dash 1000 -out /dev/null ./crash1
```
```
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 -out /dev/null ./crash1
[POC_crash000394](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_heap_buffer_overflow/crash000394) is here
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000394
SWF Import - Scene Size 37.7x-30.65 - 512 frames @ 0 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000394, computing from bitstream
[SWF Parsing] Tag UnknownTag (0x1a4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x12f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x15b) not implemented - skipping (frame 1)
[SWF Parsing] tag DefineShape3 over-read of 20608 bytes (size 23) (frame 1)
[SWF Parsing] Tag UnknownTag (0x1d0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1d5) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x144) not implemented - skipping (frame 1)
=================================================================
==491931==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000002750 at pc 0x7f555206c5d3 bp 0x7fff4f3717c0 sp 0x7fff4f3717b0
WRITE of size 4 at 0x602000002750 thread T0
#0 0x7f555206c5d2 in swf_def_font scene_manager/swf_parse.c:1449
#1 0x7f555206c5d2 in swf_process_tag scene_manager/swf_parse.c:2350
#2 0x7f555206c5d2 in swf_parse_tag scene_manager/swf_parse.c:2422
#3 0x7f555275c089 in gf_text_process_swf filters/load_text.c:2542
#4 0x7f555275c089 in gf_text_process_swf filters/load_text.c:2519
#5 0x7f55527714a2 in txtin_process filters/load_text.c:3992
#6 0x7f5552469dbe in gf_filter_process_task filter_core/filter.c:2971
#7 0x7f55524290ea in gf_fs_thread_proc filter_core/filter_session.c:1962
#8 0x7f5552436a56 in gf_fs_run filter_core/filter_session.c:2261
#9 0x7f5551dcc03d in gf_dasher_process media_tools/dash_segmenter.c:1236
#10 0x560d3aaebc26 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#11 0x560d3aaebc26 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#12 0x7f554f078082 in __libc_start_main ../csu/libc-start.c:308
#13 0x560d3aac3fcd in _start (/home/functionmain/Desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5fcd)
0x602000002751 is located 0 bytes to the right of 1-byte region [0x602000002750,0x602000002751)
allocated by thread T0 here:
#0 0x7f5555079808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f5552068180 in swf_def_font scene_manager/swf_parse.c:1448
#2 0x7f5552068180 in swf_process_tag scene_manager/swf_parse.c:2350
#3 0x7f5552068180 in swf_parse_tag scene_manager/swf_parse.c:2422
#4 0x7f555275c089 in gf_text_process_swf filters/load_text.c:2542
#5 0x7f555275c089 in gf_text_process_swf filters/load_text.c:2519
#6 0x7f55527714a2 in txtin_process filters/load_text.c:3992
#7 0x7f5552469dbe in gf_filter_process_task filter_core/filter.c:2971
#8 0x7f55524290ea in gf_fs_thread_proc filter_core/filter_session.c:1962
#9 0x7f5552436a56 in gf_fs_run filter_core/filter_session.c:2261
#10 0x7f5551dcc03d in gf_dasher_process media_tools/dash_segmenter.c:1236
#11 0x560d3aaebc26 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#12 0x560d3aaebc26 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#13 0x7f554f078082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow scene_manager/swf_parse.c:1449 in swf_def_font
Shadow bytes around the buggy address:
0x0c047fff8490: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fa
0x0c047fff84a0: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fa
0x0c047fff84b0: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fd
0x0c047fff84c0: fa fa fd fd fa fa fd fd fa fa fd fa fa fa fd fa
0x0c047fff84d0: fa fa fd fa fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff84e0: fa fa 00 00 fa fa 00 00 fa fa[01]fa fa fa fa fa
0x0c047fff84f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8510: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8520: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8530: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==491931==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
swf_parse.c L1449
SUMMARY: AddressSanitizer: heap-buffer-overflow scene_manager/swf_parse.c:1449 in swf_def_font
```
| heap-buffer-overflow in function swf_def_font scene_manager/swf_parse.c:1449 | https://api.github.com/repos/gpac/gpac/issues/2582/comments | 0 | 2023-09-02T10:59:17Z | 2023-09-04T07:35:50Z | https://github.com/gpac/gpac/issues/2582 | 1,878,615,299 | 2,582 |
[
"gpac",
"gpac"
] | [poc_crash000369](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_left_shift_of_negative%20/crash000369) is here.
```
MP4Box -dash 1000 ./crash000173
```
```
Description
left shift of negative value in MP4Box
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_crash000369](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_left_shift_of_negative%20/crash000369) is here.
ASAN details
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000369
SWF Import - Scene Size 29.1x-61.05 - 8448 frames @ 0 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000369, computing from bitstream
[SWF Parsing] Tag UnknownTag (0x1a4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x12b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xee) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2ea) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1cc) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x295) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x242) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1cf) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x10c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x84) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2b6) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x153) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x396) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x143) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x43) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x13f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2d1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xdf) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3be) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x24a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1d1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3ef) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2fe) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x31e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xdf) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3d6) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xe9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2f7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3fd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x356) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x19d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xe9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x21a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x333) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x225) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2f4) not implemented - skipping (frame 1)
[SWF Parsing] Tag DefineMorphShape (0x2e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x312) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x150) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x35f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x44) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x228) not implemented - skipping (frame 1)
[SWF Parsing] Tag ExternalFont (0x34) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xde) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x377) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2b1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xaa) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x12c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x9a) not implemented - skipping (frame 1)
[SWF Parsing] Tag DefineBitsLossless (0x14) not implemented - skipping (frame 1)
[SWF Parsing] tag DoAction over-read of 664 bytes (size 8) (frame 1)
[SWF Parsing] Tag UnknownTag (0x19f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x19a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x140) not implemented - skipping (frame 1)
scene_manager/swf_parse.c:213:12: runtime error: left shift of negative value -45
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
swf_parse.c L213
scene_manager/swf_parse.c:213:12: runtime error: left shift of negative value -45
```
| left shift of negative value in scene_manager/swf_parse.c:213 | https://api.github.com/repos/gpac/gpac/issues/2581/comments | 0 | 2023-09-01T09:05:25Z | 2023-09-01T10:16:01Z | https://github.com/gpac/gpac/issues/2581 | 1,877,042,149 | 2,581 |
[
"gpac",
"gpac"
] | [poc_crash000086](https://gitee.com/FUNctionMain/mypoc/raw/master/poc5/crash000086) is here
```
MP4Box -dash 1000 ./crash000086
```
```
Description
Out of Bounds Read in MP4Box.
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 ./crash000086
[poc_crash000086](https://gitee.com/FUNctionMain/mypoc/raw/master/poc5/crash000086) is here
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000086
=================================================================
==3400280==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x629000059200 at pc 0x7f9f454eb2ad bp 0x7ffc60dd7560 sp 0x7ffc60dd7550
READ of size 1 at 0x629000059200 thread T0
#0 0x7f9f454eb2ac in MPEG12_ParseSeqHdr media_tools/mpeg2_ps.c:273
#1 0x7f9f454ee983 in get_info_from_frame media_tools/mpeg2_ps.c:990
#2 0x7f9f454ee983 in get_info_for_all_streams media_tools/mpeg2_ps.c:1203
#3 0x7f9f454ee983 in mpeg2ps_scan_file media_tools/mpeg2_ps.c:1368
#4 0x7f9f454ee983 in mpeg2ps_init media_tools/mpeg2_ps.c:1625
#5 0x7f9f45b2150c in m2psdmx_process filters/dmx_mpegps.c:327
#6 0x7f9f459ae33e in gf_filter_process_task filter_core/filter.c:2971
#7 0x7f9f4596d66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#8 0x7f9f4597afd6 in gf_fs_run filter_core/filter_session.c:2261
#9 0x7f9f45310a9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#10 0x557a668afbb6 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#11 0x557a668afbb6 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#12 0x7f9f425bf082 in __libc_start_main ../csu/libc-start.c:308
#13 0x557a66887f5d in _start (/home/functionmain/Desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5f5d)
0x629000059200 is located 0 bytes to the right of 16384-byte region [0x629000055200,0x629000059200)
allocated by thread T0 here:
#0 0x7f9f485bb808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f9f454e4eda in mpeg2ps_stream_create media_tools/mpeg2_ps.c:392
#2 0x7f9f454e4eda in add_stream media_tools/mpeg2_ps.c:1116
#3 0x7f9f454ec886 in mpeg2ps_scan_file media_tools/mpeg2_ps.c:1293
#4 0x7f9f454ec886 in mpeg2ps_init media_tools/mpeg2_ps.c:1625
#5 0x7f9f45b2150c in m2psdmx_process filters/dmx_mpegps.c:327
#6 0x7f9f459ae33e in gf_filter_process_task filter_core/filter.c:2971
#7 0x7f9f4596d66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#8 0x7f9f4597afd6 in gf_fs_run filter_core/filter_session.c:2261
#9 0x7f9f45310a9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#10 0x557a668afbb6 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#11 0x557a668afbb6 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#12 0x7f9f425bf082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpeg2_ps.c:273 in MPEG12_ParseSeqHdr
Shadow bytes around the buggy address:
0x0c52800031f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c5280003200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c5280003210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c5280003220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c5280003230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c5280003240:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c5280003250: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c5280003260: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c5280003270: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c5280003280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c5280003290: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==3400280==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
mpeg2_ps.c L273
AddressSanitizer: heap-buffer-overflow READ of size 1 in MPEG12_ParseSeqHdr media_tools/mpeg2_ps.c:273
```
| Out of Bounds Read in MPEG12_ParseSeqHdr media_tools/mpeg2_ps.c | https://api.github.com/repos/gpac/gpac/issues/2580/comments | 0 | 2023-09-01T09:04:52Z | 2023-09-01T10:04:59Z | https://github.com/gpac/gpac/issues/2580 | 1,877,041,344 | 2,580 |
[
"gpac",
"gpac"
] | [poc_crash000173](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_signed_integer_overflow/crash000173) is here.
```
MP4Box -dash 1000 ./crash000173
```
```
Description
The signed integer overflow in MP4Box, and the program will eventually crash due to double-free,.
It is uncertain whether the signed integer overflow is directly related to double-free
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_crash000173](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_signed_integer_overflow/crash000173) is here.
ASAN details
information reported by sanitizer
$ ../bin/gcc/MP4Box -dash 1000 ./crash000173
[iso file] default sample description set to 241 but only 1 sample description(s), likely broken ! Fixing to 1
[iso file] default sample description set to 241 but only 1 sample description(s), likely broken ! Fixing to 1
[iso file] TFDT timing 3 higher than cumulated timing 12884901123 (last sample got extended in duration)
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID V1, computing from bitstream
filters/mux_isom.c:5716:20: runtime error: signed integer overflow: 25769802246 * 1406331903 cannot be represented in type 'long int'
when compile without ASAN:
./gpac-master-noasan/bin/gcc/MP4Box -dash 1000 ./crash000173
[iso file] default sample description set to 241 but only 1 sample description(s), likely broken ! Fixing to 1
[iso file] default sample description set to 241 but only 1 sample description(s), likely broken ! Fixing to 1
[iso file] TFDT timing 3 higher than cumulated timing 12884901123 (last sample got extended in duration)
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID V1, computing from bitstream
[IsoMedia] File truncated, aborting read for track 115396044.92s 50 %
[MP4Mux] PID A2 ID 2 Sample 2 with DTS 0 less than previous sample DTS 0, patching DTS
[MP4Mux] PID A2 ID 2 Sample 3 with DTS 0 less than previous sample DTS 1, patching DTS
[MPD] Generating MPD at time 2023-08-31T01:51:21.969Z
[Dasher] End of Period
[Dasher] End of MPD (no more active streams)
free(): double free detected in tcache 2
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
mux_isom.c L5716
filters/mux_isom.c:5716:20: runtime error: signed integer overflow: 25769802246 * 1406331903 cannot be represented in type 'long int'
```
| signed integer overflow in filters/mux_isom.c:5716 | https://api.github.com/repos/gpac/gpac/issues/2579/comments | 0 | 2023-09-01T09:04:13Z | 2023-09-01T09:58:24Z | https://github.com/gpac/gpac/issues/2579 | 1,877,040,379 | 2,579 |
[
"gpac",
"gpac"
] | 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/
I created the attached Apple-compatible file, `Apple_Subtitle_Test.mp4`, with [Subler](https://subler.org/), an open-source application.
https://github.com/gpac/gpac/assets/41291950/462fc54a-90d6-4d80-9e72-32d113e8ddf9
`mp4box -infox .\Apple_Subtitle_Test.mp4` outputs:
```
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Broken text box detected, skiping parsing.
# Movie Info - 5 tracks - TimeScale 1000
Duration 00:01:00.102
Fragmented: no
Progressive (moov before mdat)
Major Brand mp42 - version 512 - compatible brands: isom iso2 avc1 mp41
Created: UNKNOWN DATEModified: GMT Wed Aug 30 18:24:00 2023
Chapter Track:
[iso file] Unknown box type encd
#1 - 00:00:00.000 - "Prologue"
[iso file] Unknown box type encd
#2 - 00:00:19.987 - "Opening"
[iso file] Unknown box type encd
#3 - 00:00:40.160 - "Episode Blablabla"
Meta-Data Tags:
title: Subtitle Test
sdesc: A file to test subtitles
tool: Lavf57.71.100
cover: JPEG File
# Track 1 Info - ID 1 - TimeScale 16000
Media Duration 00:01:00.101 (recomputed 00:01:00.184)
Track has 1 edits: track duration is 00:01:00.102
Track flags: Enabled In Movie
Media Language: English (eng)
Media Samples: 1441
Handler name: VideoHandler
Track References: chap to 4 5
1 UDTA types:
tagc: public.main-program-content
Visual Track layout: x=0 y=0 width=1280 height=720
Sample Description #1 - vide:avc1
Visual Sample Entry Info: width=1280 height=720 (depth=24 bits)
AVC/H264 Video - Visual Size 1280 x 720
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 1280 x 720
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 2D7DC86DC1EF571AF659A66239442ED51C150E12
PPS#1 hash: DC73BC45117A5611E4C7638CE58777ED2E22E887
Decoding Buffer size 0 - Bitrate: avg 0 - max 0 kbps
No stream dependencies for decoding
StreamPriority 0
RFC6381 Codec Parameters: avc1.640029
Average GOP length: 24 samples
Max sample duration: 679 / 16000
Computed info from media:
Total size 94315 bytes - Total samples duration 60143 ms (00:01:00.143)
Average rate 12.55 kbps - Max Rate 23.70 kbps
Chunk durations: min 41 ms - max 125 ms - average 83 ms
Chunk sizes (bytes): min 37 - max 1512 - average 774
# Track 2 Info - ID 2 - TimeScale 44100
Media Duration 00:01:00.045
Track has 1 edits: track duration is 00:01:00.046
Track flags: Enabled In Movie
Media Language: English (en)
Media Samples: 2586
Handler name: SoundHandler
Track References: folw to 3
1 UDTA types:
tagc: public.main-program-content
Alternate Group ID 1
Sample Description #1 - soun:mp4a
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 44100
Decoding Buffer size 1175 - Bitrate: avg 195 - max 204 kbps
No stream dependencies for decoding
StreamPriority 0
RFC6381 Codec Parameters: mp4a.40.2
All samples are sync
Max sample duration: 1058 / 44100
Computed info from media:
Total size 1468943 bytes - Total samples duration 60022 ms (00:01:00.022)
Average rate 195.79 kbps - Max Rate 200.18 kbps
Chunk durations: min 22 ms - max 47 ms - average 41 ms
Chunk sizes (bytes): min 373 - max 1713 - average 1020
# Track 3 Info - ID 3 - TimeScale 1000
Media Duration 00:00:18.500
Track flags: Enabled In Movie
Media Language: English (en)
Media Samples: 8
Handler name:
1 UDTA types:
tagc: public.easy-to-read
Alternate Group ID 2
Sample Description #1 - sbtl:tx3g
QT/3GPP subtitle
Size 1280 x 720 - Translation X=0 Y=0 - Layer -1
RFC6381 Codec Parameters: tx3g
All samples are sync
Max sample duration: 4000 / 1000
Computed info from media:
Total size 391 bytes - Total samples duration 15500 ms (00:00:15.500)
Average rate 201.81 bps - Max Rate 608.00 bps
Chunk durations: min 2600 ms - max 2600 ms - average 2600 ms
Chunk sizes (bytes): min 2 - max 2 - average 2
# Track 4 Info - ID 4 - TimeScale 1000
Media Duration 00:01:00.101
Track flags: Disabled In Movie
Media Language: English (en)
Media Samples: 3
Handler name:
Sample Description #1 - text:text
Unknown Text Stream
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: text
All samples are sync
Max sample duration: 20173 / 1000
Computed info from media:
Total size 74 bytes - Total samples duration 40160 ms (00:00:40.160)
Average rate 14.74 bps - Max Rate 17.21 bps
Chunk durations: min 19987 ms - max 19987 ms - average 19987 ms
Chunk sizes (bytes): min 22 - max 22 - average 22
# Track 5 Info - ID 5 - TimeScale 1000
Media Duration 00:01:00.101
Track has 1 edits: track duration is 00:01:00.101
Track flags: Disabled In Movie
Media Language: English (en)
Media Samples: 3
Handler name:
Visual Track layout: x=0 y=0 width=640 height=360
Sample Description #1 - vide:jpeg
Visual Sample Entry Info: width=640 height=360 (depth=24 bits)
JPEG Image - Resolution 640 x 360
RFC6381 Codec Parameters: mp4v.6C
All samples are sync
Max sample duration: 20173 / 1000
Computed info from media:
Total size 44415 bytes - Total samples duration 40160 ms (00:00:40.160)
Average rate 8.85 kbps - Max Rate 11.85 kbps
Chunk durations: min 19987 ms - max 19987 ms - average 19987 ms
Chunk sizes (bytes): min 14805 - max 14805 - average 14805
```
Track 3 contains subtitles, of which some samples are forced, as described [here](https://bitbucket.org/galad87/subler/wiki/Subtitles%20Guide). The subtitles were created from this [SRT file](https://bitbucket.org/galad87/subler/wiki/Srt%20File%20Format). Track 4 contains chapters. Track 5 contains chapter images created by Subler as described [here](https://bitbucket.org/galad87/subler/wiki/FAQ).
`mp4box -ttxt 3 .\Apple_Subtitle_Test.mp4` outputs:
```
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Broken text box detected, skiping parsing.
[iso file] Unknown box type frcd | (00/100)
[iso file] Unknown box type frcd | (50/100)
Conversion done
```
The resulting file, `Apple_Subtitle_Test_3_text.ttxt`, does not have the information regarding which samples are forced.
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.1">
<TextStreamHeader width="1280" height="720" layer="65535" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Arial" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="720" right="1280"/>
<Style styles="Normal" fontID="1" fontSize="36" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" sampleDescriptionIndex="1" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:02.600" sampleDescriptionIndex="1" xml:space="preserve">Yellow Forced Text
More text and Italic text at top.<TextBox top="0" left="0" bottom="86" right="1280"/>
<Style fromChar="0" toChar="18" styles="Normal" fontID="1" fontSize="36" color="ff ff 0 ff"/>
<Style fromChar="33" toChar="44" styles="Italic " fontID="1" fontSize="36" color="ff ff ff ff"/>
</TextSample>
<TextSample sampleTime="00:00:06.600" sampleDescriptionIndex="1" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:06.800" sampleDescriptionIndex="1" xml:space="preserve">More Yellow
and two line of text at bottom.<TextBox top="633" left="0" bottom="720" right="1280"/>
<Style fromChar="0" toChar="11" styles="Normal" fontID="1" fontSize="36" color="ff ff 0 ff"/>
</TextSample>
<TextSample sampleTime="00:00:10.000" sampleDescriptionIndex="1" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:11.000" sampleDescriptionIndex="1" xml:space="preserve">Bold and forced at bottom.<TextBox top="633" left="0" bottom="720" right="1280"/>
<Style fromChar="0" toChar="4" styles="Bold " fontID="1" fontSize="36" color="ff ff ff ff"/>
</TextSample>
<TextSample sampleTime="00:00:14.000" sampleDescriptionIndex="1" xml:space="preserve"></TextSample>
<TextSample sampleTime="00:00:15.500" sampleDescriptionIndex="1" xml:space="preserve">Color, italic!
- I am red!<TextBox top="0" left="0" bottom="86" right="1280"/>
<Style fromChar="0" toChar="7" styles="Normal" fontID="1" fontSize="36" color="33 33 cc ff"/>
<Style fromChar="7" toChar="13" styles="Italic " fontID="1" fontSize="36" color="33 33 cc ff"/>
<Style fromChar="13" toChar="14" styles="Normal" fontID="1" fontSize="36" color="33 33 cc ff"/>
<Style fromChar="14" toChar="22" styles="Normal" fontID="1" fontSize="36" color="ff ff ff ff"/>
<Style fromChar="22" toChar="25" styles="Underlined " fontID="1" fontSize="36" color="ff 0 0 ff"/>
</TextSample>
<TextSample sampleTime="00:00:18.500" text="" />
</TextStream>
```
`mp4box -dump-chap .\Apple_Subtitle_Test.mp4` outputs:
```
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Broken text box detected, skiping parsing.
Dumping chapter track 4
[iso file] Unknown box type encd
[iso file] Unknown box type encd | (00/100)
[iso file] Unknown box type encd | (33/100)
```
The resulting file, `Apple_Subtitle_Test_4_text.ttxt`, is:
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.1">
<TextStreamHeader width="0" height="0" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" backColor="0 0 0" scroll="None">
<TextBox top="0" left="0" bottom="0" right="0"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" sampleDescriptionIndex="1" xml:space="preserve">Prologue</TextSample>
<TextSample sampleTime="00:00:19.987" sampleDescriptionIndex="1" xml:space="preserve">Opening</TextSample>
<TextSample sampleTime="00:00:40.160" sampleDescriptionIndex="1" xml:space="preserve">Episode Blablabla</TextSample>
</TextStream>
```
`mp4box -raws 5 .\Apple_Subtitle_Test.mp4` outputs:
```
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Broken text box detected, skiping parsing.
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
[iso file] Unknown box type encd
```
The resulting files, `Apple_Subtitle_Test_track5_001.jpg`, `Apple_Subtitle_Test_track5_002.jpg` & `Apple_Subtitle_Test_track5_003.jpg`, are attached:



Versions:
1. GPAC: `2.3-DEV-rev487-gf029427d-master` (Windows 64-Bit)
2. Subler: `1.7.5` | Error in exporting forced subtitles, chapters & chapter images from Apple-compatible MP4 | https://api.github.com/repos/gpac/gpac/issues/2578/comments | 2 | 2023-08-31T17:36:49Z | 2023-10-28T11:27:06Z | https://github.com/gpac/gpac/issues/2578 | 1,875,972,684 | 2,578 |
[
"gpac",
"gpac"
] | [POC](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_double_free/crash000119).
```
./bin/gcc/MP4Box -dash 1000 -out /dev/null ./crash000119
```
```
Description
Use After Free in MP4Box.
I'm not sure if this is a bug or an exploitable vulnerability. Since it was a double-free crash, I classified it as a UAF vulnerability type.
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 -out /dev/null ./crash000119
[crash000119](https://gitee.com/FUNctionMain/mypoc/raw/master/poc_double_free/crash000119) is here.
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000119
[ODF] Not enough bytes (23) to read descriptor (size=362733)
[iso file] Read Box "esds" (start 1050) failed (Invalid MPEG-4 Descriptor) - skipping
[ODF] Not enough bytes (23) to read descriptor (size=362733)
[iso file] Unknown top-level box type y028B,
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[isom] not enough bytes in box mp4a: 0 left, reading 16 (file isomedia/sample_descs.c, line 215) - try specifying -no-check (might crash)
[iso file] Read Box "mp4a" (start 0) failed (Invalid IsoMedia File) - skipping
[MPD] Generating MPD at time 2023-08-30T08:25:45.061Z2s 88 %
[Dasher] End of Period
[Dasher] End of MPD (no more active streams)
=================================================================
==865336==ERROR: AddressSanitizer: attempting double-free on 0x610000000c40 in thread T0:
#0 0x7f4df0e1c40f in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122
#1 0x7f4dee1f1ad3 in gf_filterpacket_del filter_core/filter.c:38
#2 0x7f4dee1c7cd7 in gf_fq_del filter_core/filter_queue.c:105
#3 0x7f4dee22132a in gf_filter_del filter_core/filter.c:664
#4 0x7f4dee1e037e in gf_fs_del filter_core/filter_session.c:782
#5 0x7f4dedb6f5f6 in gf_dasher_clean_inputs media_tools/dash_segmenter.c:164
#6 0x7f4dedb6f6b4 in gf_dasher_del media_tools/dash_segmenter.c:173
#7 0x561209424ede in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4888
#8 0x561209424ede in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#9 0x7f4deae20082 in __libc_start_main ../csu/libc-start.c:308
#10 0x5612093fcf5d in _start (/home/functionmain/Desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5f5d)
0x610000000c40 is located 0 bytes inside of 186-byte region [0x610000000c40,0x610000000cfa)
freed by thread T0 here:
#0 0x7f4df0e1cc3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7f4deda17976 in Media_GetSample isomedia/media.c:619
#2 0x7f4ded96bccd in gf_isom_get_sample_ex isomedia/isom_read.c:1950
#3 0x7f4dee4ab15e in isor_reader_get_sample filters/isoffin_read_ch.c:489
#4 0x7f4dee4acc5e in isor_reader_get_sample filters/isoffin_read_ch.c:499
#5 0x7f4dee4a1ec1 in isoffin_process filters/isoffin_read.c:1486
#6 0x7f4dee20f33e in gf_filter_process_task filter_core/filter.c:2971
#7 0x7f4dee1ce66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#8 0x7f4dee1dbfd6 in gf_fs_run filter_core/filter_session.c:2261
#9 0x7f4dedb71a9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#10 0x561209424bb6 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#11 0x561209424bb6 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#12 0x7f4deae20082 in __libc_start_main ../csu/libc-start.c:308
previously allocated by thread T0 here:
#0 0x7f4df0e1c808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f4dee13ff77 in gf_filter_pck_new_alloc_internal filter_core/filter_pck.c:159
#2 0x7f4dee4a74ae in isor_sample_alloc filters/isoffin_read_ch.c:322
#3 0x7f4deda17552 in Media_GetSample isomedia/media.c:626
#4 0x7f4ded96bccd in gf_isom_get_sample_ex isomedia/isom_read.c:1950
#5 0x7f4dee4ab15e in isor_reader_get_sample filters/isoffin_read_ch.c:489
#6 0x7f4dee4a1ec1 in isoffin_process filters/isoffin_read.c:1486
#7 0x7f4dee20f33e in gf_filter_process_task filter_core/filter.c:2971
#8 0x7f4dee1ce66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#9 0x7f4dee1dbfd6 in gf_fs_run filter_core/filter_session.c:2261
#10 0x7f4dedb71a9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#11 0x561209424bb6 in do_dash /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#12 0x561209424bb6 in mp4box_main /home/functionmain/Desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#13 0x7f4deae20082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: double-free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122 in __interceptor_free
==865336==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
filter.c L38
attempting double-free in gf_filterpacket_del filter_core/filter.c:38
References
crash000119
``` | Use After Free in gf_filterpacket_del filter_core/filter.c:38 | https://api.github.com/repos/gpac/gpac/issues/2577/comments | 0 | 2023-08-31T08:12:23Z | 2023-08-31T15:19:41Z | https://github.com/gpac/gpac/issues/2577 | 1,875,012,949 | 2,577 |
[
"gpac",
"gpac"
] | Proof of Concept
```
./bin/gcc/MP4Box -info ./crash000002
```
```
./bin/gcc/MP4Box -dash 1000 ./crash000006
```
```
./bin/gcc/MP4Box -dash 1000 ./crash000032
```
```
./bin/gcc/MP4Box -dash 1000 ./crash000054
```
```
./bin/gcc/MP4Box -dash 1000 ./crash000292
```
```
./bin/gcc/MP4Box -dash 1000 ./crash000241
```
[crash000002](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000002) is here
[crash000006](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000006) is here
[crash000032](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000032) is here
[crash000054](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000054) is here
[crash000292](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000292) is here
[crash000241](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000241) is here
```
Description
division by zero in MP4Box.
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
Crash000002 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -info ./crash000002
SWF Import - Scene Size 29.1x-31 - 2048 frames @ 0 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[SWF Parsing] Tag UnknownTag (0x1c9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1f0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x375) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x336) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x30a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1e0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x79) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x17b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x217) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xaa) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x311) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x9e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3d7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x233) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x300) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x11d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x10c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x21d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x349) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1c3) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1cf) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1f0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xcd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2e2) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x245) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x329) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x10a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x305) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x7f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2f7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x174) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1ca) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xf8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x4a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x267) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x79) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x109) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x348) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xb1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x382) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x160) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x29f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x13c) not implemented - skipping (frame 1)
scene_manager/swf_svg.c:460:92: runtime error: division by zero
Crash000006 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000006
[AVIDmx] Video format >JPG not natively supported, signaling as is
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000006, computing from bitstream
[RFC6381] Codec parameters not known, cannot set codec string
[MP4Mux] No timescale specified, guessing from media: 1000
[MP4Mux] muxing unknown codec ID Codec Not Supported, using generic sample entry with 4CC ">JPG"
filters/dasher.c:7616:34: runtime error: division by zero
Crash000032 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000032
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Unsupported cicp audio layout value 41
[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 0/40000
Unsupported cicp audio layout value 41
Unsupported cicp audio layout value 41
Unknown CICP mapping for channel config 31/0.0
[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
[Dasher] PID audio config changed during active period, forcing period switch
filters/dasher.c:7217:49: runtime error: division by zero
Crash000054 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000054
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Unsupported cicp audio layout value 60
[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
[MP4Mux] No timescale specified, guessing from media: 0
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 0/0
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 768/0
Unknown CICP mapping for channel config 22/0.0
[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
filters/mux_isom.c:7144:62: runtime error: division by zero
Crash000292 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000292
SWF Import - Scene Size 29.1x-30.65 - 512 frames @ 0 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000292, computing from bitstream
[SWF Parsing] Tag UnknownTag (0x1a4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3b8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xd8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x267) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1d1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x173) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x19) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x165) not implemented - skipping (frame 1)
[SWF Parsing] Tag NameCharacter (0x28) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x199) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x17c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xac) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x284) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3d3) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x80) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3a3) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xc0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1c8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2f4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2cc) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x135) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x50) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1ba) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x53) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3d1) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x326) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xb9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2f4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x395) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1fc) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x7b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x150) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3dc) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x200) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2ef) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3be) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2de) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x75) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x19) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b2) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x223) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x6b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x7f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x13d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x97) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1f9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3f5) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x208) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x330) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x38b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x17c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x328) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x251) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x254) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3fe) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1b7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1f8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x21d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x386) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x12a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x397) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x11b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2ec) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x62) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x230) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2bf) not implemented - skipping (frame 1)
[SWF Parsing] Tag ImportAssets (0x39) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x152) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x206) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3e7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x17d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x79) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x72) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3a9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x257) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x22d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x27c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3ae) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x156) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x351) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2e9) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x38e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x342) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x201) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x27d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x49) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x234) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x332) not implemented - skipping (frame 1)
[SWF Parsing] Tag MX4 (0x3f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x8c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x22b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x306) not implemented - skipping (frame 1)
[SWF Parsing] Tag Generator3 (0x33) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x4b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xe8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2da) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x307) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2c4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xd8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x36d) not implemented - skipping (frame 1)
[SWF Parsing] Tag MX1 (0x3c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1ab) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xa3) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x26d) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1fe) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x5e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xcd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x162) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3d7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xf7) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x101) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x237) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3de) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x38b) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x271) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x142) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xe6) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x10e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1a8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x14e) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x39a) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x255) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2ef) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x165) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x139) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x153) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x137) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xac) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x92) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2ef) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x332) not implemented - skipping (frame 1)
[SWF Parsing] tag PlaceObject2 over-read of 27 bytes (size 9) (frame 1)
[SWF Parsing] Tag UnknownTag (0x3e6) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xba) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3a8) not implemented - skipping (frame 1)
[SWF Parsing] bitstream IO err (tag size 42) (frame 1)
[SWF Parsing] Tag UnknownTag (0x207) not implemented - skipping (frame 1)
scene_manager/swf_parse.c:2018:38: runtime error: division by zero
Crash000241 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000241
SWF Import - Scene Size 37.7x-30.65 - 512 frames @ 0 FPS
[TXTIn] swf -> svg not fully migrated, using SWF flags 0 and no flatten angle. Patch welcome
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000241, computing from bitstream
[SWF Parsing] Tag UnknownTag (0x1a4) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1bd) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x12f) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x15b) not implemented - skipping (frame 1)
[SWF Parsing] fill_style b8 not supported (frame 1)
[SWF Parsing] fill_style 2c not supported (frame 1)
[SWF Parsing] fill_style 64 not supported (frame 1)
[SWF Parsing] tag DefineShape3 over-read of 242309 bytes (size 23) (frame 1)
[SWF Parsing] Tag UnknownTag (0x218) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0xf5) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x147) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1f5) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3fd) not implemented - skipping (frame 1)
[SWF Parsing] tag DefineFont2 over-read of 87881 bytes (size 19) (frame 1)
[SWF Parsing] Tag UnknownTag (0x72) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x140) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3c0) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x23c) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3e8) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x2a3) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1fe) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x204) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x99) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x141) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x91) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3af) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3b2) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x3db) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x1e6) not implemented - skipping (frame 1)
[SWF Parsing] Tag UnknownTag (0x50) not implemented - skipping (frame 1)
scene_manager/swf_parse.c:1844:23: runtime error: division by zero
Impact
This is capable of causing crashes.
References
[crash000002](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000002) is here
[crash000006](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000006) is here
[crash000032](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000032) is here
[crash000054](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000054) is here
[crash000292](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000292) is here
[crash000241](https://gitee.com/FUNctionMain/mypoc/raw/master/poc2/crash000241) is here
Impact
This is capable of causing crashes.
Occurrences
dasher.c L7217
filters/dasher.c:7217:49: runtime error: division by zero
mux_isom.c L7144
filters/mux_isom.c:7144:62: runtime error: division by zero
swf_parse.c L1844
scene_manager/swf_parse.c:1844:23: runtime error: division by zero
swf_parse.c L2018
scene_manager/swf_parse.c:2018:38: runtime error: division by zero
dasher.c L7616
filters/dasher.c:7616:34: runtime error: division by zero
swf_svg.c L460
scene_manager/swf_svg.c:460:92: runtime error: division by zero
References
crash000032
crash000054
crash000292
crash000006
crash000241
crash000002
``` | division by zero in scene_manager/swf_svg.c, filters/dasher.c and filters/mux_isom.c | https://api.github.com/repos/gpac/gpac/issues/2576/comments | 1 | 2023-08-30T12:42:28Z | 2023-08-31T15:11:18Z | https://github.com/gpac/gpac/issues/2576 | 1,873,602,801 | 2,576 |
[
"gpac",
"gpac"
] | ```
Description
NULL Pointer Dereference in MP4Box.
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 ./crashes/crash000004
./bin/gcc/MP4Box -dash 1000 ./crashes/crash000007
./bin/gcc/MP4Box -dash 1000 ./crashes/crash000014
./bin/gcc/MP4Box -dash 1000 ./crashes/crash000069
[crash000004](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000004) is here
[crash000007](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000007) is here
[crash000014](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000014) is here
[crash000069](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000069) is here
Crash000069 Info
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 ./crash000069
AddressSanitizer:DEADLYSIGNAL
=================================================================
==540488==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f07d6f78e85 bp 0x7ffc9161b230 sp 0x7ffc9161a970 T0)
==540488==The signal is caused by a READ memory access.
==540488==Hint: address points to the zero page.
#0 0x7f07d6f78e84 in __GI__IO_fread /build/glibc-SzIz7B/glibc-2.31/libio/iofread.c:35
#1 0x7f07dce74435 in __interceptor_fread ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:988
#2 0x7f07d9e40e80 in file_read_bytes media_tools/mpeg2_ps.c:163
#3 0x7f07d9e40e80 in read_to_next_pes_header media_tools/mpeg2_ps.c:544
#4 0x7f07d9e41ca8 in search_for_next_pes_header media_tools/mpeg2_ps.c:681
#5 0x7f07d9e421d5 in mpeg2ps_stream_read_next_pes_buffer media_tools/mpeg2_ps.c:732
#6 0x7f07d9e42d48 in mpeg2ps_stream_find_mpeg_video_frame media_tools/mpeg2_ps.c:823
#7 0x7f07d9e48e17 in mpeg2ps_stream_read_frame media_tools/mpeg2_ps.c:953
#8 0x7f07d9e48e17 in get_info_for_all_streams media_tools/mpeg2_ps.c:1211
#9 0x7f07d9e48e17 in mpeg2ps_scan_file media_tools/mpeg2_ps.c:1368
#10 0x7f07d9e48e17 in mpeg2ps_init media_tools/mpeg2_ps.c:1625
#11 0x7f07da47c50c in m2psdmx_process filters/dmx_mpegps.c:327
#12 0x7f07da30933e in gf_filter_process_task filter_core/filter.c:2971
#13 0x7f07da2c866a in gf_fs_thread_proc filter_core/filter_session.c:1962
#14 0x7f07da2d5fd6 in gf_fs_run filter_core/filter_session.c:2261
#15 0x7f07d9c6ba9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#16 0x562cd9a11bb6 in do_dash /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#17 0x562cd9a11bb6 in mp4box_main /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#18 0x7f07d6f1a082 in __libc_start_main ../csu/libc-start.c:308
#19 0x562cd99e9f5d in _start (/home/functionmain/desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5f5d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /build/glibc-SzIz7B/glibc-2.31/libio/iofread.c:35 in __GI__IO_fread
==540488==ABORTING
Crash000004 Info
information reported by sanitizer
./bin/gcc/MP4Box -dash 1000 ./crash000004
media_tools/avilib.c:559:2: runtime error: null pointer passed as argument 1, which is declared to never be null
Crash000007 Info
information reported by sanitizer
./bin/gcc/MP4Box -dash 1000 ./crash000007
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash000007, computing from bitstream
[Dasher] No bitrate property assigned to PID crash000007, computing from bitstream
[RFC6381] Cannot find M4V config, using default mp4v.20
[Dasher] No bitrate property assigned to PID crash000007, computing from bitstream
[Dasher] PID crash000007 config changed during active period, forcing period switch
filters/dasher.c:8390:27: runtime error: member access within null pointer of type 'struct GF_DashStream'
Crash000014 Info
information reported by sanitizer
./bin/gcc/MP4Box -dash 1000 ./crash000014
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Unknown CICP mapping for channel config 4/0.0
[RFC6381] Cannot find MPEG-H Audio Config or audio PL, defaulting to profile 0x01
[MP4Mux] No timescale specified, guessing from media: 0
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 0/0
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 1024/0
[Dasher] Representation not initialized, dropping non-SAP1/2 packet CTS 2048/0
Unsupported cicp audio layout value 58
[Dasher] PID audio config changed during active period, forcing period switch
filters/dasher.c:8417:9: runtime error: member access within null pointer of type 'struct GF_DashStream'
Impact
This is capable of causing crashes.
References
[crash000004](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000004) is here
[crash000007](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000007) is here
[crash000014](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000014) is here
[crash000069](https://gitee.com/FUNctionMain/mypoc/raw/master/poc3/crash000069) is here
Impact
This is capable of causing crashes.
Occurrences
dasher.c L8390
filters/dasher.c:8390:27: runtime error: member access within null pointer of type 'struct GF_DashStream'
mpeg2_ps.c L163
Address points to the zero page in file_read_bytes media_tools/mpeg2_ps.c:163
dasher.c L8417
filters/dasher.c:8417:9: runtime error: member access within null pointer of type 'struct GF_DashStream'
avilib.c L559
media_tools/avilib.c:559:2: runtime error: null pointer passed as argument 1, which is declared to never be null
References
crash000004
crash000069
crash000014
crash000007
``` | NULL Pointer Dereference in media_tools/mpeg2_ps.c, media_tools/avilib.c and filters/dasher.c | https://api.github.com/repos/gpac/gpac/issues/2575/comments | 0 | 2023-08-30T12:42:09Z | 2023-08-31T14:44:11Z | https://github.com/gpac/gpac/issues/2575 | 1,873,602,295 | 2,575 |
[
"gpac",
"gpac"
] | [poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc1/crash1)
```
Description
Heap-buffer-overflow in MP4Box.
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 -out /dev/null ./crash1
[poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc1/crash1) is here
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 -out /dev/null ./crash1
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No bitrate property assigned to PID crash1, computing from bitstream
[RFC6381] Cannot find M4V config, using default mp4v.20
[Dasher] No bitrate property assigned to PID crash1, computing from bitstream
[FileOut] cannot open output file /dev/crash1_dashinit.mp4
[FileOut] output file handle is not opened, discarding 1333 bytes
=================================================================
==1235145==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62500001b324 at pc 0x7f2384ca859d bp 0x7ffddcfcb4b0 sp 0x7ffddcfcac58
WRITE of size 28416 at 0x62500001b324 thread T0
#0 0x7f2384ca859c in __interceptor_fread ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:989
#1 0x7f2381c712fe in avi_read media_tools/avilib.c:67
#2 0x7f2381c712fe in AVI_read_frame media_tools/avilib.c:2934
#3 0x7f23822628dd in avidmx_process filters/dmx_avi.c:524
#4 0x7f238213d33e in gf_filter_process_task filter_core/filter.c:2971
#5 0x7f23820fc66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#6 0x7f2382109fd6 in gf_fs_run filter_core/filter_session.c:2261
#7 0x7f2381a9fa9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#8 0x55ddba368bb6 in do_dash /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#9 0x55ddba368bb6 in mp4box_main /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#10 0x7f237ed4e082 in __libc_start_main ../csu/libc-start.c:308
#11 0x55ddba340f5d in _start (/home/functionmain/desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5f5d)
0x62500001b324 is located 0 bytes to the right of 8740-byte region [0x625000019100,0x62500001b324)
allocated by thread T0 here:
#0 0x7f2384d4a808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f238206df77 in gf_filter_pck_new_alloc_internal filter_core/filter_pck.c:159
#2 0x7f2382262865 in avidmx_process filters/dmx_avi.c:522
#3 0x7f238213d33e in gf_filter_process_task filter_core/filter.c:2971
#4 0x7f23820fc66a in gf_fs_thread_proc filter_core/filter_session.c:1962
#5 0x7f2382109fd6 in gf_fs_run filter_core/filter_session.c:2261
#6 0x7f2381a9fa9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#7 0x55ddba368bb6 in do_dash /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#8 0x55ddba368bb6 in mp4box_main /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#9 0x7f237ed4e082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:989 in __interceptor_fread
Shadow bytes around the buggy address:
0x0c4a7fffb610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c4a7fffb650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c4a7fffb660: 00 00 00 00[04]fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb670: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb690: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb6a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c4a7fffb6b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1235145==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
avilib.c L67
WRITE of size 28416
References
``` | heap-buffer-overflow in function avi_read media_tools/avilib.c:67 | https://api.github.com/repos/gpac/gpac/issues/2574/comments | 0 | 2023-08-30T12:39:38Z | 2023-08-31T14:14:27Z | https://github.com/gpac/gpac/issues/2574 | 1,873,598,303 | 2,574 |
[
"gpac",
"gpac"
] | [poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc4/crash4)
```
Description
Heap-buffer-overflow in MP4Box.
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 -out /dev/null ./crash4
[poc](https://gitee.com/FUNctionMain/mypoc/raw/master/poc4/crash4) is here
ASAN
information reported by sanitizer
$ ./bin/gcc/MP4Box -dash 1000 -out /dev/null ./crash4
=================================================================
==1177213==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x621000015330 at pc 0x7f22f9f75490 bp 0x7fffd30752c0 sp 0x7fffd3074a68
READ of size 1769512 at 0x621000015330 thread T0
#0 0x7f22f9f7548f in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790
#1 0x7f22f6f007c6 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#2 0x7f22f6f007c6 in avi_parse_input_file media_tools/avilib.c:2083
#3 0x7f22f6f0d03d in AVI_open_input_file media_tools/avilib.c:1840
#4 0x7f22f74fcdd0 in avidmx_process filters/dmx_avi.c:490
#5 0x7f22f73da33e in gf_filter_process_task filter_core/filter.c:2971
#6 0x7f22f739966a in gf_fs_thread_proc filter_core/filter_session.c:1962
#7 0x7f22f73a6fd6 in gf_fs_run filter_core/filter_session.c:2261
#8 0x7f22f6d3ca9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#9 0x55b8698dcbb6 in do_dash /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#10 0x55b8698dcbb6 in mp4box_main /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#11 0x7f22f3feb082 in __libc_start_main ../csu/libc-start.c:308
#12 0x55b8698b4f5d in _start (/home/functionmain/desktop/gpac-master-asan/bin/gcc/MP4Box+0xa5f5d)
0x621000015330 is located 0 bytes to the right of 4656-byte region [0x621000014100,0x621000015330)
allocated by thread T0 here:
#0 0x7f22f9fe7808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f22f6eff2be in avi_parse_input_file media_tools/avilib.c:1944
#2 0x7f22f6f0d03d in AVI_open_input_file media_tools/avilib.c:1840
#3 0x7f22f74fcdd0 in avidmx_process filters/dmx_avi.c:490
#4 0x7f22f73da33e in gf_filter_process_task filter_core/filter.c:2971
#5 0x7f22f739966a in gf_fs_thread_proc filter_core/filter_session.c:1962
#6 0x7f22f73a6fd6 in gf_fs_run filter_core/filter_session.c:2261
#7 0x7f22f6d3ca9d in gf_dasher_process media_tools/dash_segmenter.c:1236
#8 0x55b8698dcbb6 in do_dash /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:4825
#9 0x55b8698dcbb6 in mp4box_main /home/functionmain/desktop/gpac-master-asan/applications/mp4box/mp4box.c:6239
#10 0x7f22f3feb082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c427fffaa10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffaa20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffaa30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffaa40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c427fffaa50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c427fffaa60: 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa fa fa
0x0c427fffaa70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffaa80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffaa90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffaaa0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c427fffaab0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==1177213==ABORTING
Impact
This is capable of causing crashes.
Impact
This is capable of causing crashes.
Occurrences
avilib.c L2083
READ of size 1769512
``` | heap-buffer-overflow in function avi_parse_input_file media_tools/avilib.c:2083 | https://api.github.com/repos/gpac/gpac/issues/2573/comments | 0 | 2023-08-30T12:38:47Z | 2023-08-31T09:38:10Z | https://github.com/gpac/gpac/issues/2573 | 1,873,597,051 | 2,573 |
[
"gpac",
"gpac"
] | 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/
I'm working integrating `libgpac` into another framework. For now, I'm trying to build simple applications to understand the basics of gpac. The simplest I came out with is one that creates a file using the `fout` filter and dumps some bytes to disk. The bytes comes from outside the gpac filter session.
```c
#include <stdio.h>
#include <stdlib.h>
#include <gpac/filters.h>
/// @brief Print the input and output PIDs of a filter
/// @param filter
static void print_filter(GF_Filter *filter) {
// iterate over filter input PIDs
u32 input_pid_count = gf_filter_get_ipid_count(filter);
printf("is source : %s\n", gf_filter_is_source(filter) ? "true" : "false");
printf("is sink : %s\n", gf_filter_is_sink(filter) ? "true" : "false");
printf("input PIDs: %u\n", input_pid_count);
for (u32 i = 0; i < input_pid_count; ++i)
{
GF_FilterPid *input_pid = gf_filter_get_ipid(filter, i);
const char *pid_name = gf_filter_pid_get_name(input_pid);
printf(" %u: %s\n", i, pid_name);
}
// iterate over filter output PIDs
u32 output_pid_count = gf_filter_get_opid_count(filter);
printf("output PIDs: %u\n", output_pid_count);
for (u32 i = 0; i < output_pid_count; ++i)
{
GF_FilterPid *output_pid = gf_filter_get_ipid(filter, i);
const char *pid_name = gf_filter_pid_get_name(output_pid);
printf(" %u: %s\n", i, pid_name);
}
}
int main(int argc, char *argv[])
{
GF_FilterSession *session = gf_fs_new_defaults(0u);
if (session == NULL) {
fprintf(stderr, "Failed to create GPAC session\n");
return EXIT_FAILURE;
}
GF_Err gf_err = GF_OK;
GF_Filter *filter = gf_fs_load_filter(session, "fout:dst=from_gpac.ts", &gf_err);
if (gf_err != GF_OK)
{
fprintf(stderr, "Failed to load filter: %s", gf_error_to_string(gf_err));
}
// this prints the correct destination file
GF_PropertyValue prop_value;
gf_filter_get_arg(filter, "dst", &prop_value);
printf("filter dst: %s\n", prop_value.value.string);
// 0 input PIDs
// 0 output PIDs (expected)
print_filter(filter);
u8 buffer_data[188];
for (u32 i = 0; i < 10; ++i) {
// fill the data with some content
for (u32 j = 0; j < 188; ++j) {
buffer_data[j] = (u8)i;
}
// TODO: create a packet to send to the filter
// TODO: push the packet to the filter
// TODO: run the session (blocking mode?)
// gf_fs_run(session);
}
gf_fs_del(session);
session = NULL;
return EXIT_SUCCESS;
}
```
Running the code prints:
```
filter dst: from_gpac.ts
is source : false
is sink : true
input PIDs: 0
output PIDs: 0
```
I have problems figuring out how to get input PID from the `fout` filter to feed the buffer to store in the file.
The closest issue to mine is https://github.com/gpac/gpac/issues/2190 which suggests the creation of custom filters for handling communication in and out of the gpac filter graph.
Is there another example I could look at?
| How to push data to a filter session from application code | https://api.github.com/repos/gpac/gpac/issues/2572/comments | 1 | 2023-08-29T23:02:34Z | 2023-08-31T17:38:27Z | https://github.com/gpac/gpac/issues/2572 | 1,872,617,168 | 2,572 |
[
"gpac",
"gpac"
] | Memory leak in function [gf_fileio_from_mem](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/os_file.c#L1447)
The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).
Dynamic memory is allocated [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/os_file.c#L1450) if `gf_fileio_new` fails, function will return from [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/os_file.c#L1455) and allocated memory will remain not freed. | Memory leak in function gf_fileio_from_mem | https://api.github.com/repos/gpac/gpac/issues/2571/comments | 0 | 2023-08-29T11:13:38Z | 2023-08-29T13:47:19Z | https://github.com/gpac/gpac/issues/2571 | 1,871,446,973 | 2,571 |
[
"gpac",
"gpac"
] | Memory leak in function [gf_dash_resolve_url](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/media_tools/dash_client.c#L3360)
The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).
Specifically, dynamic memory is allocated [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/media_tools/dash_client.c#L3405) and remains not freed. | Memory leak in function gf_dash_resolve_url | https://api.github.com/repos/gpac/gpac/issues/2570/comments | 1 | 2023-08-29T11:07:02Z | 2023-08-29T12:40:33Z | https://github.com/gpac/gpac/issues/2570 | 1,871,437,136 | 2,570 |
[
"gpac",
"gpac"
] | Memory leak in function [on_dom_text_content](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/xml_parser.c#L1757).
The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).
Specifically, dynamic memories are allocated [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/xml_parser.c#L1766) and [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/xml_parser.c#L1773) if gf_list_add fails to add node [here](https://github.com/gpac/gpac/blob/941a0891b989f5ad86b739cfb12c84b7e62e8ee4/src/utils/xml_parser.c#L1774C29-L1774C33), allocated memories remain not freed. There are similar cases in other functions which use gf_list_add.
gf_isom_iff_create_image_item_from_track_internal
gf_text_import_sub_bifs
subs_box_read
iloc_box_read
gf_cfg_set_key_internal
dasher_period_count
httpout_process_event
gf_isom_add_subsample_info
jsf_pid_new_packet
svg_udom_set_float_trait
dasher_setup_rep
on_dom_node_start | Memory leak in function on_dom_text_content | https://api.github.com/repos/gpac/gpac/issues/2569/comments | 1 | 2023-08-29T10:52:18Z | 2023-08-31T14:01:01Z | https://github.com/gpac/gpac/issues/2569 | 1,871,409,652 | 2,569 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [Y] I looked for a similar issue and couldn't find any.
- [Y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [Y] I give enough information for contributors to reproduce my issue
**Description**
There is a integer overflow issue in bifs/unquantize.c:298
**System info**
Ubuntu 22.04.2 LTS
GPAC-2.2.1
**Build command**
./configure --enable-sanitizer && make
**crash command**
/usr/local/bin/MP4Box -xmt poc
**poc_file:**
[poc.zip](https://github.com/gpac/gpac/files/12461532/poc.zip)
**Crash output:**
[iso file] Unknown box type vref in parent dinf
[iso file] Missing dref box in dinf
[iso file] Incomplete box - start 2637
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type vref in parent dinf
[iso file] Missing dref box in dinf
[iso file] Incomplete box - start 2637
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
bifs/unquantize.c:298:43: runtime error: shift exponent 4294967295 is too large for 32-bit type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior bifs/unquantize.c:298:43 in | Integer overflow issue in bifs/unquantize.c:298 | https://api.github.com/repos/gpac/gpac/issues/2567/comments | 1 | 2023-08-29T07:37:50Z | 2023-10-11T01:35:00Z | https://github.com/gpac/gpac/issues/2567 | 1,871,078,948 | 2,567 |
[
"gpac",
"gpac"
] | 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/
- [ ] 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/
I have a need to download one MP4 file and generate fragment MP4 file on the fly. I followed the example https://github.com/gpac/gpac/wiki/HAS-advanced#quick-record-examples, but got this failure. Can someone please help?
```
% gpac -i http://localhost:8000/gear4.mp4 -o grab/record.mp4:frag
Unknown argument ":frag" set but not used by any filter - possible matches
- range in filters httpin fin
- store (inter|flat|fstart|tight|frag|sfrag) in filters mp4mx
```
| Quick record example fail: Unknown argument ":frag" set but not used by any filter | https://api.github.com/repos/gpac/gpac/issues/2566/comments | 5 | 2023-08-28T17:41:31Z | 2023-08-31T22:33:44Z | https://github.com/gpac/gpac/issues/2566 | 1,870,178,965 | 2,566 |
[
"gpac",
"gpac"
] | 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/
When integrating `libgpac` into other code systems, it can be useful to have some form of identity/passthrough filter that lets any data pass through the input PID to the output without modification.
Is there any existing filter that implements such behavior? Otherwise, I'm keen to contribute such a filter. | Identity/Passthrough filter | https://api.github.com/repos/gpac/gpac/issues/2565/comments | 9 | 2023-08-28T14:24:24Z | 2023-10-05T21:41:54Z | https://github.com/gpac/gpac/issues/2565 | 1,869,872,221 | 2,565 |
[
"gpac",
"gpac"
] | I was waiting for the resolution of https://github.com/gpac/gpac/issues/2526 but since there has been no progress for some time, I would also like to ask about preparation of FairPlay DRM content in mpeg-ts container with GPAC. Trying it with the latest 2.3-DEV-rev479-g941a0891-master downloaded today.
Using simple command `gpac -i source.mp4 cecrypt:cfile=drm.xml -o playlist.m3u8:segdur=3:profile=live:template=seg:muxtype=ts` where HLS SAES-based drm.xml consists of
```
<?xml version="1.0" encoding="UTF-8"?>
<GPACDRM type="HLS SAES">
<DRMInfo type="pssh" version="1" >
<BS ID128="94CE86FB07FF4F43ADB893D2FA968CA2" />
<BS value="1" bits="32"/>
<BS ID128="ecae683de67a9c182f54ea704b4b5961" />
</DRMInfo>
<CrypTrack isEncrypted="1" constant_IV_size="16" constant_IV="0x712ecac8f88a44114cdd0f65f3812c60" saiSavedBox="senc">
<key KID="0xecae683de67a9c182f54ea704b4b5961" value="0x{128-bit key}" hlsInfo='URI="skd://ecae683d-e67a-9c18-2f54-ea704b4b5961",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"'/>
</CrypTrack>
</GPACDRM>
```
does not generate proper sample-AES encrypted content usable with FairPlay DRM. Safari and Apple native players consider the HLS content corrupted and unplayable, it's not even recognized after loading the first TS segment, the error occurs immediately and no license is even requested.
I cannot claim that the following is everything causing the issue, there might be more but it might be a good start. What I see is:
- The TS segments are missing private_data_indicator according to https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption/TransportStreamSignaling/TransportStreamSignaling.html
- The m3u8 playlists must be `EXT-X-VERSION: 5` as minimum when using `METHOD=SAMPLE-AES`, `KEYFORMAT` and `KEYFORMATVERSIONS` attributes required for FairPlay, see https://developer.apple.com/documentation/http-live-streaming/about-the-ext-x-version-tag
- When preparing FairPlay content, the `IV` atribute should not be usually part of the `EXT-X-KEY` tag. IV is negotiated within the FairPlay license itself at least from my own experience. Some toggle might be needed for this, whether to add it to the playlist or not.
When I was playing with the fmp4 counterpart by using the same drm.xml but just replacing type `"HLS SAES"` with `"cbcs"` and not using `muxtype=ts` in the commandline, it was faring a bit better. EXT-X-VERSION in m3u8 playlists was automatically set to 6, it was recognizable as a whole as "usable" content, however, only audio track was decryptable, video track remained scrambled. I assume the reason being the warning message from GPAC while packaging: `Using cbcs pattern mode on-video track is disabled in GPAC, using whole-block full encryption`. Not sure why the exception in GPAC for video tracks. Correctly working audio in this example seems to prove that the pattern mode is the way to go.
All in all, can you please comment whether my configuration should yield the expected results or are there errors on my side somewhere? Searching for https://github.com/gpac/gpac/issues?q=fairplay , reading wiki and examples in the repo did not provide complete answers.
Otherwise could you please try to get GPAC suite closer to expectations of Apple? | FairPlay content in mpeg-ts based HLS | https://api.github.com/repos/gpac/gpac/issues/2564/comments | 1 | 2023-08-25T15:23:02Z | 2024-05-31T14:43:01Z | https://github.com/gpac/gpac/issues/2564 | 1,867,244,982 | 2,564 |
[
"gpac",
"gpac"
] | [poc1](https://github.com/7resp4ss/POCs/raw/main/gpac/poc_null_ptr0x1)
[poc2](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x2.bt)
[poc3](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x3)
[poc4](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x4)
[poc5](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x5)
[poc6](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x6.mp4)
```
NULL Pointer Dereference in function utils/xml_parser.c:1038
Description
NULL Pointer Dereference in function utils/xml_parser.c:1038
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
sudo CC=gcc CXX=g++ CFLAGS="-fsanitize=address -static-libasan" CXXFLAGS="-fsanitize=address -static-libasan" LDFLAGS="-fsanitize=address -static-libasan" ./configure && sudo make
Proof of Concept
MP4Box -bin ./poc_null_ptr0x1
Poc is [here](https://github.com/7resp4ss/POCs/raw/main/gpac/poc_null_ptr0x1)!
ASAN
==2465170==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fe7119f76f5 bp 0x7ffcfd8279d0 sp 0x7ffcfd827148 T0)
==2465170==The signal is caused by a READ memory access.
==2465170==Hint: address points to the zero page.
#0 0x7fe7119f76f4 (/lib/x86_64-linux-gnu/libc.so.6+0x1886f4)
#1 0x55ee5c88337b in __interceptor_strlen.part.0 (/home/hack/github_work/Fuzzing_gpac/asan_bin/bin/MP4Box+0xb137b)
#2 0x7fe711e7e08e in gf_xml_sax_parse_intern (/home/hack/github_work/Fuzzing_gpac/asan_bin/lib/libgpac.so.12+0x25b08e)
#3 0x7fe711e7e5a4 in gf_xml_sax_parse (/home/hack/github_work/Fuzzing_gpac/asan_bin/lib/libgpac.so.12+0x25b5a4)
#4 0x7fe711e7e642 in xml_sax_read_file.part.0 (/home/hack/github_work/Fuzzing_gpac/asan_bin/lib/libgpac.so.12+0x25b642)
#5 0x7fe711e7e936 in gf_xml_sax_parse_file (/home/hack/github_work/Fuzzing_gpac/asan_bin/lib/libgpac.so.12+0x25b936)
#6 0x7fe711e7f972 in gf_xml_dom_parse (/home/hack/github_work/Fuzzing_gpac/asan_bin/lib/libgpac.so.12+0x25c972)
#7 0x55ee5c96bd54 in xml_bs_to_bin (/home/hack/github_work/Fuzzing_gpac/asan_bin/bin/MP4Box+0x199d54)
#8 0x55ee5c97c04c in mp4box_main (/home/hack/github_work/Fuzzing_gpac/asan_bin/bin/MP4Box+0x1aa04c)
#9 0x7fe711893082 in __libc_start_main ../csu/libc-start.c:308
#10 0x55ee5c83e5bd in _start (/home/hack/github_work/Fuzzing_gpac/asan_bin/bin/MP4Box+0x6c5bd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x1886f4)
==2465170==ABORTING
NULL Pointer Dereference in function filters/dasher.c:8146
Description
NULL Pointer Dereference in function filters/dasher.c:8146
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
./configure --enable-sanitizer && make lib -j 20 && make apps -j 20 && sudo make install -j 20
Proof of Concept
MP4Box -dash-live 1000 ./poc_null_ptr0x2.bt
Poc is [here](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x2.bt)!
Sanitizer
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[Core] default modules directory not found
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
Live DASH-ing - press 'q' to quit, 's' to save context and quit
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] No template assigned, using $File$_dash$FS$$Number$
Failed to connect filter btplay PID poc_null_ptr0x2.bt to filter dasher: Feature Not Supported
Blacklisting dasher as output from btplay and retrying connections
BT: MPEG-4 Scene Parsing
[Dasher] No bitrate property assigned to PID vout, computing from bitstream
[Dasher] MPD Availability start time initialized to 1692432805329 ms
Slept for 0 ms before generation, dash cumulated time 38
[Dasher] Loop requested in subdur mode, but source cannot seek, defaulting to multi period for all streams
filters/dasher.c:8146:50: runtime error: member access within null pointer of type 'struct GF_MPD_Period'
NULL Pointer Dereference in function utils/alloc.c:170
Description
NULL Pointer Dereference in function utils/alloc.c:170
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
./configure --enable-sanitizer && make lib -j 20 && make apps -j 20 && sudo make install -j 20
Proof of Concept
MP4Box -dash-live 1000 ./poc_null_ptr0x3
Poc is [here](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x3)!
Sanitizer
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[Core] default modules directory not found
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
Live DASH-ing - press 'q' to quit, 's' to save context and quit
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] MPD Availability start time initialized to 1692432844285 ms
utils/alloc.c:170:2: runtime error: null pointer passed as argument 1, which is declared to never be null
NULL Pointer Dereference in function filters/dasher.c:6332
Description
NULL Pointer Dereference in function filters/dasher.c:6332
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
./configure --enable-sanitizer && make lib -j 20 && make apps -j 20 && sudo make install -j 20
Proof of Concept
MP4Box -dash-live 1000 ./poc_null_ptr0x4
Poc is [here](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x4)!
Sanitizer
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[Core] default modules directory not found
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
Live DASH-ing - press 'q' to quit, 's' to save context and quit
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] Input /home/hack/github_work/POCs/gpac/poc_null_ptr0x4: max audio duration 1007616/33598532 in the period is less than duration 2052000/90000, clamping will happen
[Dasher] MPD Availability start time initialized to 1692433068742 ms
[MPD] Generating MPD at time 2023-08-19T08:17:48.746Z
[Dasher] updated period DID1 duration 1 MPD time 1
[Dasher] updated period DID1 duration 29 MPD time 29
[Dasher] updated period DID1 duration 29 MPD time 29
[Dasher] updated period DID1 duration 29 MPD time 29
[MPD] Generating MPD at time 2023-08-19T08:17:48.776Z
[Dasher] Broken muxer, received segment size info event but no pending segments
Slept for 0 ms before generation, dash cumulated time 74
[Dasher] Input /home/hack/github_work/POCs/gpac/poc_null_ptr0x4: max audio duration 1007616/33598532 in the period is less than duration 2052000/90000, clamping will happen
[Dasher] updated period DID1 duration 29 MPD time 29
[MPD] Generating MPD at time 2023-08-19T08:17:48.783Z
[Dasher] End of Period DID1
filters/dasher.c:6332:6: runtime error: null pointer passed as argument 1, which is declared to never be null
NULL Pointer Dereference in function filters/dasher.c:7389
Description
NULL Pointer Dereference in function filters/dasher.c:7389
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
./configure --enable-sanitizer && make lib -j 20 && make apps -j 20 && sudo make install -j 20
Proof of Concept
MP4Box -dash-live 1000 ./poc_null_ptr0x5
Poc is [here](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x5)!
Sanitizer
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[Core] default modules directory not found
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
Live DASH-ing - press 'q' to quit, 's' to save context and quit
[iso file] extra box maxr found in hinf, deleting
[iso file] Read Box type 00000000 (0x00000000) at position 5214 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 20) has 6273 extra bytes
[iso file] Unknown top-level box type 000001
[iso file] Unknown top-level box type 00011D00
[iso file] Unknown top-level box type 0904F08
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[IsoMedia] Track #1 fail to fetch sample 1 / 342: Bad Parameter
[Dasher] MPD Availability start time initialized to 1692433170122 ms
Slept for 0 ms before generation, dash cumulated time 42
filters/dasher.c:7389:43: runtime error: member access within null pointer of type 'struct GF_MPD_Period'
NULL Pointer Dereference in function filter_core/filter_pck.c:434
Description
NULL Pointer Dereference in function filter_core/filter_pck.c:434
Environment
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Version
MP4Box - GPAC version 2.3-DEV-rev478-g892852666-master
(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
Build
./configure --enable-sanitizer && make lib -j 20 && make apps -j 20 && sudo make install -j 20
Proof of Concept
MP4Box -dash 1000 ./poc_null_ptr0x6.mp4
Poc is [here](https://github.com/7resp4ss/POCs/blob/main/gpac/poc_null_ptr0x6.mp4)!
Sanitizer
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[Core] default modules directory not found
Couldn't find any modules in lib path /home/hack/github_work/Fuzzing_gpac/sanitizer_bin/lib/gpac
Couldn't find any modules in HOME path (app path /home/hack/.gpac/modules)
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[Dasher] No template assigned, using $File$_dash$FS$$Number$
[MP4Mux] muxing unknown codec ID Codec Not Supported, using generic sample entry with 4CC "000000FF"
filter_core/filter_pck.c:434:6: runtime error: member access within null pointer of type 'struct GF_FilterPid'
Impact
This vuln is capable of DoS.
Occurrences
alloc.c L170
NULL Pointer [0x3] in here!
dasher.c L8146
NULL Pointer [0x2] in here!
dasher.c L6332
NULL Pointer [0x4] in here!
filter_pck.c L434
NULL Pointer [0x6] in here!
xml_parser.c L1038
NULL Pointer [0x1] in here!
dasher.c L7389
NULL Pointer [0x5] in here!
``` | NULL Pointer Dereference vulnerabilities in MP4Box | https://api.github.com/repos/gpac/gpac/issues/2563/comments | 1 | 2023-08-21T04:46:24Z | 2023-08-31T13:45:02Z | https://github.com/gpac/gpac/issues/2563 | 1,858,576,148 | 2,563 |
[
"gpac",
"gpac"
] | **Tested with**: `GPAC version 2.2.1-rev0-gb34e3851-release-2.2`, `GPAC version 2.3-DEV-rev478-g89285266-master`
**Sample**: https://anonymfile.com/560bg/video1440.7z
**x264 command to encode sample**: `x264-r3107-a8b68eb.exe --preset fast --output-csp i422 --sar 1:1 --bframes 2 --crf 17 --keyint 30 --no-interlaced --videoformat component --output VIDEO1440.h264 mame-1440.avs`
**ffprobe info**: `ffprobe -i VIDEO1440.h264 -hide_banner -probesize 10M`
**Output**:
```
Input #0, h264, from 'VIDEO1440.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High 4:2:2), yuv422p(tv, smpte170m/bt709/bt709, progressive), 1920x1440 [SAR 1:1 DAR 4:3], 59 fps, 59.19 tbr, 1200k tbn
```
**MP4Box mux command**: `mp4box -add "VIDEO1440.h264" -new "file.mp4"`
**Output**:
```
Track Importing MPEG-4 AVC - Width 1920 Height 1440 FPS 25000/1000 SAR 1/1
AVC|H264 Import results: 3552 samples (3791 NALUs) - Slices: 119 I 1226 P 2207 B - 1 SEI - 119 IDR - 0 CRA
AVC|H264 Stream uses forward prediction - stream CTS offset: 2 frames
``` | MP4Box change input framerate to 25 fps | https://api.github.com/repos/gpac/gpac/issues/2562/comments | 4 | 2023-08-20T00:19:18Z | 2023-09-02T10:44:09Z | https://github.com/gpac/gpac/issues/2562 | 1,857,907,125 | 2,562 |
[
"gpac",
"gpac"
] | Altough ffdmx handle most of j2k files well using j2kdec filter, same decoding with rfimg -- instead of ffdmx -- causes a crash on line 564 of dec_j2k.c (opj_image_destroy(image);).
You will find enclosed an example of a j2k file format where the given command line :
./gpac -i Bretagne1.j2k -o test.png
provokes a Segmentation fault (core dumped)
The filters connected are:
rfimg (src=Bretagne1.j2k) (idx=1)
-(PID video1) j2kdec (dyn_idx=3)
--(PID video1) pngenc "encpng:1.6.39" (dyn_idx=4)
---(PID video1) writegen (dyn_idx=5)
----(PID video1) fout (dst=test.png) (idx=2)
[Bretagne1.zip](https://github.com/gpac/gpac/files/12360566/Bretagne1.zip)
| rfimg filter fails at decoding most of j2k files format | https://api.github.com/repos/gpac/gpac/issues/2561/comments | 2 | 2023-08-16T14:43:51Z | 2023-08-17T15:25:33Z | https://github.com/gpac/gpac/issues/2561 | 1,853,393,069 | 2,561 |
[
"gpac",
"gpac"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC build from source
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
### Platform
Mint 21.2 based on Ubuntu 22.04 jammy. Box is a BXNUC10i7FNH2 from 2022. 32G ram, no swap, <33% used.
### Background (skippable):
I was late updating Mint 20.3 to 21.x... Afterwards, one of my scripts failed. The upgrade had replaced MP4Box 0.5 with Ubuntu 22.04's default 2.0 build. Building from a fresh clone (less than an hour ago) - same. After some trial and error I found it crashes on the `name` tag (_after_ successfully applying any other tags in the same command), and after a lot more trial and error I found it crashes only when the 'alias' is used, but not when the unaliased tag name is used.
### Sample bash log
```
bob@bob:~/Work/gpac/demo$ MP4Box MVI_3398.mp4 -itags name="Kuhfluchtwasserfall"
Saving MVI_3398.mp4: In-place rewrite
double free or corruption (fasttop)
Aborted (core dumped)
bob@bob:~/Work/gpac/demo$ MP4Box MVI_3398.mp4 -itags title="Kuhfluchtwasserfall"
Saving MVI_3398.mp4: In-place rewrite
bob@bob:~/Work/gpac/demo$
```
### Sample file
(my own, hereby licensed public domain - but repoducible using any other I've found):
https://www.mediafire.com/file/19bjtrey0xbi4s6/MVI_3398.mp4/file
### Tests I tried
Tried with a swap partition, too, as the messages could fit a malloc problem - no change.
Different files and/or command lines give different messages - sorry can't repro an example right now.
`MP4Box - GPAC version 0.5.2-DEV-revVersion: 0.5.2-426-gc5ad4e4+dfsg5-5` extracted from timeshift - runs fine on the same platform (after making its libraries loadable through LD_LIBRARY_PATH).
`MP4Box - GPAC version 2.3-DEV-rev476-gebfad0b53-master` freshly built as '--static-bin' using *only* unaltered Ubuntu repo sources and tools (I reverted a younger cmake for this) - same crash.
Other string tag aliases I tried do not crash (encodingTool, sortName, albumArtist).
The `artwork` alias does not crash but does not produce the same file as `cover` either (not recognized by MediaInfo as Cover:Yes but as binary blob - `cover` seems off in other ways, such as not being cumulative). | Using 'name' alias crashes a MP4Box -itags command | https://api.github.com/repos/gpac/gpac/issues/2560/comments | 5 | 2023-08-15T09:22:44Z | 2023-08-15T17:25:55Z | https://github.com/gpac/gpac/issues/2560 | 1,851,143,379 | 2,560 |
[
"gpac",
"gpac"
] | 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/
Is posible to add the `NAME` property to the `#EXT-X-MEDIA` tag when using HLS multivariant playlist?
I'm using the command
```
gpac \
-i udp://225.225.225.225:5000/:gpac:listen=true:tsprobe=true:#Representation=default \
-i udp://225.225.225.225:5001/:gpac:listen=true:tsprobe=true:#Representation=player-stats \
-i udp://225.225.225.225:5003/:gpac:listen=true:tsprobe=true:#Representation=nex-gen-stats \
-i udp://225.225.225.225:5005/:gpac:listen=true:tsprobe=true:#Representation=audio \
-o /tmp/workdir/content/playlist.m3u8:gpac:llhls=sf:hlsc=true:cmaf=cmf2:dmode=dynamic:pssh=mv:hmode=push:template=segment_hls_$$(openssl rand -hex 5) -broken-cert
```
But the playlist generated is:
```
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=1650000,CODECS="avc1.42C028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=30,AUDIO="audio2"
playlist_1.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=308000,CODECS="avc1.42C028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=30,AUDIO="audio2"
playlist_2.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=330000,CODECS="avc1.42C028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=30,AUDIO="audio2"
playlist_3.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio2",NAME="audio",AUTOSELECT=YES,URI="playlist_4.m3u8",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio2",NAME="audio",AUTOSELECT=YES,URI="playlist_5.m3u8",CHANNELS="2"
```
Is possible to get the NAME property in the #EXT-X-STREAM-INF tags that contains the variant playlist?
There are examples for multivariant commands?
I'm looking for a playlist similar to this
```
#EXTM3U
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="66", DEFAULT=YES,URI="bunny/playlist_1.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="67",DEFAULT=NO,URI="cow/playlist_1.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=140800,RESOLUTION=1920x1080,CODECS="avc1.64002a,mp4a.40.2",VIDEO= "low"
bunny/playlist_1.m3u8
```
It is posible to manipulate the `#EXT-X-MEDIA` tag to use the video instead of the audio?
Thanks in advance | How to add name to video tracks in HLS? | https://api.github.com/repos/gpac/gpac/issues/2559/comments | 4 | 2023-08-14T21:31:36Z | 2023-09-04T09:49:19Z | https://github.com/gpac/gpac/issues/2559 | 1,850,573,121 | 2,559 |
[
"gpac",
"gpac"
] | Assuming a segment has 16 tiles, the logs indicate that the tiles are being downloaded one by one in parallel.
[HTTP] Connecting to 163.17.21.214:8081
[HTTP] Connected to 163.17.21.214:8081
[CACHE] Cache setup to 000002778202A5F0 C:\Users\a2323\AppData\Local\Temp\gpac_cache\gpac_cache_65CB34502DC95A89828168021A3BCE6DBEA7496F.mpd
[HTTP] Sending request at UTC 1691718431378 GET /NT4x4/4x4.mpd HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: AAMAAABkAAIAAAAA
If-None-Match: "6476592f-7dcb"
If-Modified-Since: Tue, 30 May 2023 20:14:39 GMT
[HTTP] HTTP/1.1 304 Not Modified
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:11 GMT
Last-Modified: Tue, 30 May 2023 20:14:39 GMT
Connection: keep-alive
ETag: "6476592f-7dcb"
[HTTP] Connecting to 163.17.21.214:8081
[HTTP] Connected to 163.17.21.214:8081
[CACHE] Cache setup to 000002778202AC40 gmem://0000027782F217F8
[HTTP] Sending request at UTC 1691718431395 GET /NT4x4/seg_live__track1_init.mp4 HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: AAMAAABkAAIAAAAA
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:11 GMT
Content-Type: text/plain
Content-Length: 10423
Last-Modified: Tue, 30 May 2023 19:52:28 GMT
Connection: keep-alive
ETag: "647653fc-28b7"
Accept-Ranges: bytes
[HTTP] seg_live__track1_init.mp4 (10423 bytes) downloaded in 209 us (34300 kbps) (2432 us since request - got response in 2415 us)
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track1_init.mp4
[HTTPIn] Switch from seg_live__track1_init.mp4 to seg_live__track1_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783229928
[HTTP] Sending request at UTC 1691718431458 GET /NT4x4/seg_live__track1_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:11 GMT
Content-Type: text/plain
Content-Length: 5236
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1474"
Accept-Ranges: bytes
[HTTP] seg_live__track1_1.m4s (5236 bytes) downloaded in 914 us (36519 kbps) (1148 us since request - got response in 1001 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track1_1.m4s
[HTTPIn] Switch from seg_live__track1_1.m4s to seg_live__track2__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://000002778322A428
[HTTP] Sending request at UTC 1691718431461 GET /NT4x4/seg_live__track2__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:11 GMT
Content-Type: text/plain
Content-Length: 7100
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1bbc"
Accept-Ranges: bytes
[HTTP] seg_live__track2__r4_1.m4s (7100 bytes) downloaded in 722 us (62008 kbps) (917 us since request - got response in 703 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track2__r4_1.m4s
[HTTPIn] Switch from seg_live__track2__r4_1.m4s to seg_live__track3__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228D28
[HTTP] Sending request at UTC 1691718431464 GET /NT4x4/seg_live__track3__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:11 GMT
Content-Type: text/plain
Content-Length: 7926
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1ef6"
Accept-Ranges: bytes
[HTTP] seg_live__track3__r4_1.m4s (7926 bytes) downloaded in 470 us (97400 kbps) (654 us since request - got response in 605 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track3__r4_1.m4s
[HTTPIn] Switch from seg_live__track3__r4_1.m4s to seg_live__track4__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://000002778322A628
[HTTP] Sending request at UTC 1691718434348 GET /NT4x4/seg_live__track4__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 7934
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1efe"
Accept-Ranges: bytes
[HTTP] seg_live__track4__r4_1.m4s (7934 bytes) downloaded in 35718 us (696 kbps) (91088 us since request - got response in 91056 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track4__r4_1.m4s
[HTTPIn] Switch from seg_live__track4__r4_1.m4s to seg_live__track5__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783227728
[HTTP] Sending request at UTC 1691718434574 GET /NT4x4/seg_live__track5__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 7650
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1de2"
Accept-Ranges: bytes
[HTTP] seg_live__track5__r4_1.m4s (7650 bytes) downloaded in 888 us (54691 kbps) (1120 us since request - got response in 919 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track5__r4_1.m4s
[HTTPIn] Switch from seg_live__track5__r4_1.m4s to seg_live__track6__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783229A28
[HTTP] Sending request at UTC 1691718434577 GET /NT4x4/seg_live__track6__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 6872
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1ad8"
Accept-Ranges: bytes
[HTTP] seg_live__track6__r4_1.m4s (6872 bytes) downloaded in 354 us (74594 kbps) (738 us since request - got response in 572 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track6__r4_1.m4s
[HTTPIn] Switch from seg_live__track6__r4_1.m4s to seg_live__track7__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228D28
[HTTP] Sending request at UTC 1691718434580 GET /NT4x4/seg_live__track7__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 23958
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-5d96"
Accept-Ranges: bytes
[HTTP] seg_live__track7__r4_1.m4s (23958 bytes) downloaded in 673 us (223645 kbps) (859 us since request - got response in 560 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track7__r4_1.m4s
[HTTPIn] Switch from seg_live__track7__r4_1.m4s to seg_live__track8__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783227C28
[HTTP] Sending request at UTC 1691718434583 GET /NT4x4/seg_live__track8__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 8638
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-21be"
Accept-Ranges: bytes
[HTTP] seg_live__track8__r4_1.m4s (8638 bytes) downloaded in 428 us (105987 kbps) (653 us since request - got response in 505 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track8__r4_1.m4s
[HTTPIn] Switch from seg_live__track8__r4_1.m4s to seg_live__track9__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228628
[HTTP] Sending request at UTC 1691718434586 GET /NT4x4/seg_live__track9__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:14 GMT
Content-Type: text/plain
Content-Length: 10129
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-2791"
Accept-Ranges: bytes
[HTTP] seg_live__track9__r4_1.m4s (10129 bytes) downloaded in 8145 us (1144 kbps) (70818 us since request - got response in 70789 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track9__r4_1.m4s
[HTTPIn] Switch from seg_live__track9__r4_1.m4s to seg_live__track10__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://000002778322AD28
[HTTP] Sending request at UTC 1691718434660 GET /NT4x4/seg_live__track10__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 8246
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-2036"
Accept-Ranges: bytes
[HTTP] seg_live__track10__r4_1.m4s (8246 bytes) downloaded in 881 us (54250 kbps) (1217 us since request - got response in 1042 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track10__r4_1.m4s
[HTTPIn] Switch from seg_live__track10__r4_1.m4s to seg_live__track11__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783227728
[HTTP] Sending request at UTC 1691718434669 GET /NT4x4/seg_live__track11__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 84123
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-1489b"
Accept-Ranges: bytes
[HTTP] seg_live__track11__r4_1.m4s (84123 bytes) downloaded in 1391 us (377444 kbps) (1792 us since request - got response in 868 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track11__r4_1.m4s
[HTTPIn] Switch from seg_live__track11__r4_1.m4s to seg_live__track12__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228628
[HTTP] Sending request at UTC 1691718434673 GET /NT4x4/seg_live__track12__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 59004
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-e67c"
Accept-Ranges: bytes
[HTTP] seg_live__track12__r4_1.m4s (59004 bytes) downloaded in 699 us (439917 kbps) (1076 us since request - got response in 613 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track12__r4_1.m4s
[HTTPIn] Switch from seg_live__track12__r4_1.m4s to seg_live__track13__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783229028
[HTTP] Sending request at UTC 1691718434677 GET /NT4x4/seg_live__track13__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 14969
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-3a79"
Accept-Ranges: bytes
[HTTP] seg_live__track13__r4_1.m4s (14969 bytes) downloaded in 493 us (132469 kbps) (905 us since request - got response in 736 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track13__r4_1.m4s
[HTTPIn] Switch from seg_live__track13__r4_1.m4s to seg_live__track14__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228228
[HTTP] Sending request at UTC 1691718434680 GET /NT4x4/seg_live__track14__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 13774
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-35ce"
Accept-Ranges: bytes
[HTTP] seg_live__track14__r4_1.m4s (13774 bytes) downloaded in 521 us (130869 kbps) (843 us since request - got response in 705 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track14__r4_1.m4s
[HTTPIn] Switch from seg_live__track14__r4_1.m4s to seg_live__track15__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783229928
[HTTP] Sending request at UTC 1691718434683 GET /NT4x4/seg_live__track15__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 15696
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-3d50"
Accept-Ranges: bytes
[HTTP] seg_live__track15__r4_1.m4s (15696 bytes) downloaded in 436 us (155598 kbps) (815 us since request - got response in 663 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track15__r4_1.m4s
[HTTPIn] Switch from seg_live__track15__r4_1.m4s to seg_live__track16__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://0000027783228D28
[HTTP] Sending request at UTC 1691718434686 GET /NT4x4/seg_live__track16__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 9700
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-25e4"
Accept-Ranges: bytes
[HTTP] seg_live__track16__r4_1.m4s (9700 bytes) downloaded in 495 us (82465 kbps) (943 us since request - got response in 765 us)
[iso file] Warning: TFDT timing 60000 less than cumulated timing 60001 - using tfdt
[CACHE] Requesting deletion for http://163.17.21.214:8081/NT4x4/seg_live__track16__r4_1.m4s
[HTTPIn] Switch from seg_live__track16__r4_1.m4s to seg_live__track17__r4_1.m4s
[CACHE] Cache setup to 000002778202AC40 gmem://000002778322A628
[HTTP] Sending request at UTC 1691718434690 GET /NT4x4/seg_live__track17__r4_1.m4s HTTP/1.1
Host: 163.17.21.214
User-Agent: GPAC/2.0-rev0-g418db414-master
Accept: */*
Connection: Keep-Alive
Icy-Metadata: 1
[HTTP] HTTP/1.1 200 OK
Server: nginx/1.21.7
Date: Fri, 11 Aug 2023 01:47:15 GMT
Content-Type: text/plain
Content-Length: 9146
Last-Modified: Tue, 30 May 2023 19:52:32 GMT
Connection: keep-alive
ETag: "64765400-23ba"
Accept-Ranges: bytes
[HTTP] seg_live__track17__r4_1.m4s (9146 bytes) downloaded in 578 us (90891 kbps) (806 us since request - got response in 647 us)
_Originally posted by @a23232390 in https://github.com/gpac/gpac/issues/2502#issuecomment-1674125329_
| Assuming a segment has 16 tiles, the logs indicate that the tiles are being downloaded one by one in parallel. | https://api.github.com/repos/gpac/gpac/issues/2558/comments | 1 | 2023-08-14T15:35:39Z | 2023-08-31T17:44:10Z | https://github.com/gpac/gpac/issues/2558 | 1,850,033,401 | 2,558 |
[
"gpac",
"gpac"
] | A similar issue to #1913 has been reintroduced in commit 796bb9e5e. When packaging a VVC bitstream, that contains IDRs with leading pictures, the CompositionOffset and thus the resulting CTS is calculated wrongly. CRAs with leading pictures seem to be fine.
I uploaded a raw bitstream (foreman.266) and resulting mp4 file (foreman.mp4) to the Mediafire share.
This is the command line for creating the MP4 file: `~/src/gpac/_build/bin/gcc/MP4Box -new foreman.mp4 -add foreman.266:fps=30`
and an excerpt from the `-diso` dump:
```
<CompositionOffsetBox Size="2416" Type="ctts" Version="0" Flags="0" Specification="p12" Container="stbl" EntryCount="300">
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="36" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="19" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="10" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="0" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="6" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="11" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="6" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="7" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="52" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="43" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="38" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="35" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="33" SampleCount="1"/>
...
```
but the correct entries should be:
```
<CompositionOffsetBox Size="2416" Type="ctts" Version="0" Flags="0" Specification="p12" Container="stbl" EntryCount="300">
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="36" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="19" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="10" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="0" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="6" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="11" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="6" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="1" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="7" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="3" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="4" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="36" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="19" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="10" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="5" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="2" SampleCount="1"/>
<CompositionOffsetEntry CompositionOffset="0" SampleCount="1"/>
...
``` | Regression: Wrong CompositionOffset for VVC IDR with leading pictures | https://api.github.com/repos/gpac/gpac/issues/2557/comments | 1 | 2023-08-14T12:37:55Z | 2023-09-04T10:52:37Z | https://github.com/gpac/gpac/issues/2557 | 1,849,695,112 | 2,557 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ ] I looked for a similar issue and couldn't find any.
- [ ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ ] 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/
Hi, I want to convert a png/jpeg image to a heif image with a grid size of 512x512.
I was wondering if there was a cleaner way to convert png/jpeg images to heif images. Or can we use the gpac tool instead of ffmpeg to split png/jpeg images into 512x512 subgraphs and transcode them into hevc bitstreams.
Thanks!
| How to convert a png/jpeg image to a heif image with grid size 512x512 | https://api.github.com/repos/gpac/gpac/issues/2556/comments | 3 | 2023-08-14T07:37:09Z | 2023-08-16T05:06:47Z | https://github.com/gpac/gpac/issues/2556 | 1,849,189,267 | 2,556 |
[
"gpac",
"gpac"
] | For a university project I would like to use the HAS technique (obtaining different resolutions of the same video) and the tile-based streaming technique (dividing the video into different tiles, specifically using a 3x3 division).
I have generated the videos in different resolutions with the ffmpeg tool and later I have used this tutorial to perform the tiled streaming (https://github.com/gpac/gpac/wiki/Tiled-Streaming)
However, I have had problems with the reproduction of the content
I don't know if the problem is that both techniques cannot be used or if I should carry out another process.
I don't know if someone could help me solve this
| Problems using the HAS technique and the tiled streaming technique | https://api.github.com/repos/gpac/gpac/issues/2554/comments | 1 | 2023-08-10T09:23:04Z | 2023-08-31T11:01:57Z | https://github.com/gpac/gpac/issues/2554 | 1,844,771,192 | 2,554 |
[
"gpac",
"gpac"
] | As I may have stated in previous issues, I have "constructed" a `gpac` command that takes an RTMP stream as input and generates multiple LL-HLS qualities from it.
Here is the command for one quality specifically:
```
gpac ffdmx:src=rtmp://server/live/key:gpac:analyzeduration=10M:probesize=10M:fflags=genpts reframer:rt=on ffsws:osize=1280x720:keepar=nosrc c=libx264:b=2000k:profile=baseline:level=3.2:preset=fast:maxrate=2400k:bufsize=3600k:fintra=1001/1000:FID=VENC720 c=aac:b=96k:FID=AENC720 -o 720p/index.m3u8:segdur=2:cdur=0.5:asto=0.25:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC720,AENC720
```
Here is for multiple qualities at once:
```
gpac ffdmx:src=rtmp://server/live/key:gpac:analyzeduration=10M:probesize=10M:fflags=genpts \
@@ ffsws:osize=1920x1080:keepar=nosrc \
@ c=libx264:b=5500k:profile=main:level=3.0:preset=fast:maxrate=6600k:bufsize=9900k:fintra=0.5:FID=VENC1080 \
@@ c=aac:b=96k:fintra=0.5:FID=AENC1080 \
-o 1080p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC1080,AENC1080 \
@@ ffsws:osize=1280x720:keepar=nosrc \
@ c=libx264:b=2000k:profile=baseline:level=3.0:preset=fast:maxrate=2400k:bufsize=3600k:fintra=0.5:FID=VENC720 \
@@ c=aac:b=96k:fintra=0.5:FID=AENC720 \
-o 720p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC720,AENC720 \
@@ ffsws:osize=854x480:keepar=nosrc \
@ c=libx264:b=985k:profile=baseline:level=3.0:preset=fast:maxrate=1182k:bufsize=1773k:fintra=0.5:FID=VENC480 \
@@ c=aac:b=96k:fintra=0.5:FID=AENC480 \
-o 480p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC480,AENC480 \
@@ ffsws:osize=640x360:keepar=nosrc \
@ c=libx264:b=486k:profile=baseline:level=3.0:preset=fast:maxrate=583k:bufsize=874k:fintra=0.5:FID=VENC360 \
@@ c=aac:b=40k:fintra=0.5:FID=AENC360 \
-o 360p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC360,AENC360 \
@@ ffsws:osize=426x240:keepar=nosrc \
@ c=libx264:b=216k:profile=baseline:level=3.0:preset=fast:maxrate=259k:bufsize=388k:fintra=0.5:FID=VENC240 \
@@ c=aac:b=40k:fintra=0.5:FID=AENC240 \
-o 240p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:muxtype=ts:hlsc=true:template='index_$Number%07d$':SID=VENC240,AENC240 \
@@ ffsws:osize=256x144:keepar=nosrc \
@ c=libx264:b=126k:profile=main:level=3.0:preset=fast:maxrate=151k:bufsize=226k:fintra=0.5:FID=VENC144 \
@@ c=aac:b=40k:fintra=0.5:FID=AENC144 \
-o 144p/index.m3u8:segdur=2:cdur=0.5:profile=live:dmode=dynamic:llhls=sf:hlsc=true:template='index_$Number%07d$':muxtype=ts:SID=VENC144,AENC144
```
Both commands seem to work fine, but I am facing some issues when I process the stream in a kubernetes pod.
I have to launch one pod for each quality otherwise the output playback won't be smooth, but even when I split each quality in a specific pod, I'm still facing lag issues qualities >= 720p.
Is there room for optimization in this command, if so: How can I optimize it? - Preferably one and multiple qualities | GPAC command - Optimization | https://api.github.com/repos/gpac/gpac/issues/2553/comments | 3 | 2023-08-09T10:38:51Z | 2023-09-04T07:54:21Z | https://github.com/gpac/gpac/issues/2553 | 1,842,956,655 | 2,553 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ ] I looked for a similar issue and couldn't find any.
- [ ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ ] 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/
| Where is the video rendering code played on the client, which class, and after finding the stream output, the rendering block cannot be found | https://api.github.com/repos/gpac/gpac/issues/2551/comments | 1 | 2023-08-08T07:16:26Z | 2023-08-31T10:54:57Z | https://github.com/gpac/gpac/issues/2551 | 1,840,711,570 | 2,551 |
[
"gpac",
"gpac"
] | - [Y ] I looked for a similar issue and couldn't find any.
- [Y] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [Y] I give enough information for contributors to reproduce my issue
**Description**
There is a Null Pointer Dereference detected by AddressSanitizer
**System info**
Ubuntu 22.04.2 LTS
GPAC-2.2.1
**Build command**
CC=afl-clang-fast CXX=afl-clang-fast++ CFLAGS="-ggdb -O0 -fsanitize=address,undefined -fno-omit-frame-pointer" CXXFLAGS="-ggdb -O0 -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-ggdb -O0 -fsanitize=address,undefined" ./configure && make
**crash command**
MP4Box -bt poc_file
poc_file:
[poc_file.zip](https://github.com/gpac/gpac/files/12288185/poc_file.zip)
**Crash output**
AddressSanitizer:DEADLYSIGNAL
=================================================================
==841115==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fae75bd843e bp 0x7ffc7386e7a0 sp 0x7ffc7386e770 T0)
==841115==The signal is caused by a READ memory access.
==841115==Hint: address points to the zero page.
#0 0x7fae75bd843e in BS_ReadByte /root/fuzz/gpac/src/utils/bitstream.c:458:9
#1 0x7fae75bd8257 in gf_bs_read_bit /root/fuzz/gpac/src/utils/bitstream.c:538:17
#2 0x7fae75bd8fae in gf_bs_read_int /root/fuzz/gpac/src/utils/bitstream.c:571:10
#3 0x7fae75fc7481 in BM_ParseCommand /root/fuzz/gpac/src/bifs/memory_decoder.c:907:10
#4 0x7fae75fc797a in gf_bifs_flush_command_list /root/fuzz/gpac/src/bifs/memory_decoder.c:965:9
#5 0x7fae75fc81f5 in gf_bifs_decode_command_list /root/fuzz/gpac/src/bifs/memory_decoder.c:1045:3
#6 0x7fae7645d0e4 in gf_sm_load_run_isom /root/fuzz/gpac/src/scene_manager/loader_isom.c:303:10
#7 0x7fae7641bf38 in gf_sm_load_run /root/fuzz/gpac/src/scene_manager/scene_manager.c:719:28
#8 0x555d766c901c in dump_isom_scene /root/fuzz/gpac/applications/mp4box/filedump.c:209:14
#9 0x555d766b9725 in mp4box_main /root/fuzz/gpac/applications/mp4box/mp4box.c:6461:7
#10 0x7fae75814d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
#11 0x7fae75814e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
#12 0x555d765e8d84 in _start (/usr/local/bin/MP4Box+0x33d84) (BuildId: b4d8f1db695ed5d11720498d0e1dbdb36eaf06af)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /root/fuzz/gpac/src/utils/bitstream.c:458:9 in BS_ReadByte
==841115==ABORTING | Null Pointer Dereference in function BS_ReadByte | https://api.github.com/repos/gpac/gpac/issues/2550/comments | 4 | 2023-08-08T07:09:38Z | 2023-09-11T12:40:06Z | https://github.com/gpac/gpac/issues/2550 | 1,840,701,677 | 2,550 |
[
"gpac",
"gpac"
] | Hello.
I've been playing with Dolby Vision in AV1 and currently MP4Box doesn't support parsing the metadata OBUs to set the config properly.
Currently when trying to mux with `MP4Box` we get this error:
```console
❯ MP4Box -add av1-dovi-reencode-small-rpu.ivf:dvp=f10.hdr10:hdr=none:stype=av01 -new av1-dovi-reencode-small-rpu.mp4
Track Importing AOM AV1 Video - Width 3840 Height 2014 FPS 24000/1001
DV profile can only be set on AVC or HEVC tracks
Failure while setting DV profile: Bad Parameter
Error importing av1-dovi-reencode-small-rpu.ivf:dvp=f10.hdr10:hdr=none:stype=av01: Bad Parameter
```
So far I've had to patch out the restriction and force the muxer to create the box.
The files work afterwards on the two devices I tested:
- LG OLED C2 with the internal player
- Amazon FireTV Stick 4K Max with ExoPlayer.
I'll leave an example file here, but I think it would essentially just require detecting the ITU-T T.35 metadata OBUs and check the first couple of bytes for Dolby Vision.
`rav1e` encoded IVF with small (< 256 bytes) RPU: https://www.mediafire.com/file/4ip5wknqecn43j8/av1-dovi-reencode-small-rpu.ivf/file
The files from https://github.com/gpac/gpac/issues/1925 also work after patching: [video_dovi_3840x2160_30fps_av01_10.mp4](https://github.com/gpac/gpac/assets/39477805/c23fe31c-bfcd-40f9-be38-58afb99bd148)
Some notes:
- The metadata OBU has `itu_t_t35_country_code` set to `0xB5`.
- The metadata OBU has `itu_t_t35_payload_bytes` starting with the following bytes:
- `0x00, 0x3B, 0x00, 0x00, 0x08, 0x00, 0x37, 0xCD, 0x08`
- The profile must be set to 10, otherwise demuxers assume HEVC.
- I'm not sure what the `dv_version` should be set, but `1.0` works fine. The old Dolby samples used `2.1` but the specification constrains `dv_version_major` to 1, and `dv_version_minor` to 0.
It might also be good to follow the [Dolby specification](https://dolby.my.salesforce.com/sfc/p/#700000009YuG/a/4u000000l6FB/076wHYEmyEfz09m0V1bo85_25hlUJjaiWTbzorNmYY4), but from my testing the `compatible_brands` are not necessary. | Add support for Dolby Vision dvvC box with AV1 video | https://api.github.com/repos/gpac/gpac/issues/2549/comments | 4 | 2023-08-07T13:16:17Z | 2023-09-28T16:32:22Z | https://github.com/gpac/gpac/issues/2549 | 1,839,439,145 | 2,549 |
[
"gpac",
"gpac"
] | - [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/
Hi! I took the an example from https://github.com/gpac/gpac/wiki/dash_transcoding and changed it slightly:
```
gpac -i a.mp4 \
@ c=vp9:b=1m \
@@ c=vp9:b=200k \
@ @1 -o hls/master.m3u8:segdur=6
```
Everything works as expected, gpac creates two variants.
But if I try the same with an audio file:
```
gpac -i test.flac \
@ c=aac:b=64k \
@@ c=aac:b=96k \
@ @1 -o hls/master.m3u8:segdur=6
```
Then gpac will create three variants instead of the two that I expect.
With `-r -graph` it outputs:
```
[11:12:12.110Z] GPAC Session Status: mem 22028 kb CPU 0
test.flac (fin): test.flac: 25664844 / 25664844 (100.00)
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1028.07 FPS - EOS
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1093.01 FPS - EOS
manifest_m3u8 (fout): master_3.m3u8: done - wrote 2311 bytes
audio (rfflac): Audio (Flac Audio) 3623 pck 74302.71 FPS - EOS
ffdec:flac (ffdec): Audio (Raw media) 3623 pck 6922.22 FPS - EOS
dasher: P1 AS#1.1(A) done (57 segs) AS#1.2(A) done (57 segs) AS#1.3(A) done (57 segs)
audio (resample): Audio (Raw media) 3623 pck 6505.84 FPS - EOS
audio (resample): Audio (Raw media) 3623 pck 6218.37 FPS - EOS
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1095.25 FPS - EOS
audio (fout): test_dash57_rep1.m4s: done - wrote 244 bytes
audio (fout): test_dash57_rep2.m4s: done - wrote 244 bytes
audio (fout): test_dash57_rep3.m4s: done - wrote 244 bytes
audio (mp4mx): mux segments 56 (frags 1) next 58.000 TK1(A): 20 99 %
audio (mp4mx): mux segments 56 (frags 1) next 58.000 TK1(A): 20 99 %
audio (mp4mx): mux segments 56 (frags 1) next 58.000 TK1(A): 20 99 %
Active filters: 16
Logs:
[11:11:25.775Z] [repeated 2] [Dasher] Changing HLS target duration from 6 to 7, either increase the segment duration or re-encode the content
Filters connected:
fin (src=test.flac) (idx=1)
-(PID test.flac) rfflac (dyn_idx=5)
--(PID audio) ffdec "ffdec:flac" (dyn_idx=6)
---(PID audio) resample (dyn_idx=8)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=64k) (idx=2)
-----(PID audio) dasher (dyn_idx=7)
------(PID manifest_m3u8) fout (dst=hls/master.m3u8:segdur=6) (idx=4)
------(PID audio) mp4mx (dyn_idx=14)
-------(PID audio) fout (dst=hls/test_dash_rep1.mp4:gfopt:segdur=6:frag:xps_inband=no:psshs=moov:mime=audio/mp4) (idx=11)
------(PID audio) mp4mx (dyn_idx=15)
-------(PID audio) fout (dst=hls/test_dash_rep2.mp4:gfopt:segdur=6:noinit:frag:xps_inband=no:psshs=moov:mime=audio/mp4) (idx=12)
------(PID audio) mp4mx (dyn_idx=16)
-------(PID audio) fout (dst=hls/test_dash_rep3.mp4:gfopt:segdur=6:noinit:frag:xps_inband=no:psshs=moov:mime=audio/mp4) (idx=13)
---(PID audio) resample (dyn_idx=9)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=64k:c=aac:b=96k) (idx=10)
-----(PID audio) dasher (dyn_idx=7)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=96k) (idx=3)
-----(PID audio) dasher (dyn_idx=7)
```
Note the weird line: `(PID audio) ffenc "ffenc:aac" (c=aac:b=64k:c=aac:b=96k) (idx=10)`
When I try:
```
gpac -i test.flac \
@ c=aac:b=64k:#Representation=64k \
@@ c=aac:b=96k:#Representation=96k \
@ @1 -o hls/master.m3u8:segdur=6
```
Only two variants will be generated, but the log still looks like something weird is happening:
```
[11:13:39.415Z] GPAC Session Status: mem 26705 kb CPU 0
test.flac (fin): test.flac: 25664844 / 25664844 (100.00)
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1019.76 FPS - EOS
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1090.19 FPS - EOS
manifest_m3u8 (fout): master_2.m3u8: done - wrote 2311 bytes
audio (rfflac): Audio (Flac Audio) 3623 pck 70017.78 FPS - EOS
ffdec:flac (ffdec): Audio (Raw media) 3623 pck 7057.63 FPS - EOS
dasher: P1 AS#1.1(A) done (57 segs) AS#1.2(A) done (57 segs)
audio (resample): Audio (Raw media) 3623 pck 5754.57 FPS - EOS
audio (resample): Audio (Raw media) 3623 pck 5622.73 FPS - EOS
ffenc:aac (ffenc): Audio (MPEG-4 AAC Audio) 14491 pck 1086.80 FPS - EOS
audio (fout): test_dash57_rep1.m4s: done - wrote 428 bytes
audio (fout): test_dash57_rep2.m4s: done - wrote 244 bytes
audio (mp4mx): mux segments 56 (frags 1) next 58.000 TK1(A): 20 99 % TK2(A): 20 99 %
audio (mp4mx): mux segments 56 (frags 1) next 58.000 TK1(A): 20 99 %
Active filters: 14
Logs:
[11:13:54.247Z] [repeated 1] [Dasher] Changing HLS target duration from 6 to 7, either increase the segment duration or re-encode the content
Filters connected:
fin (src=test.flac) (idx=1)
-(PID test.flac) rfflac (dyn_idx=5)
--(PID audio) ffdec "ffdec:flac" (dyn_idx=6)
---(PID audio) resample (dyn_idx=8)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=64k:#Representation=64k) (idx=2)
-----(PID audio) dasher (dyn_idx=7)
------(PID manifest_m3u8) fout (dst=hls/master.m3u8:segdur=6) (idx=4)
------(PID audio) \
------(PID audio) -> mp4mx (dyn_idx=13)
-------(PID audio) fout (dst=hls/test_dash_rep1.mp4:gfopt:segdur=6:frag:xps_inband=no:psshs=moov:mime=audio/mp4) (idx=11)
------(PID audio) mp4mx (dyn_idx=14)
-------(PID audio) fout (dst=hls/test_dash_rep2.mp4:gfopt:segdur=6:noinit:frag:xps_inband=no:psshs=moov:mime=audio/mp4) (idx=12)
---(PID audio) resample (dyn_idx=9)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=64k:#Representation=64k:c=aac:b=96k) (idx=10)
-----(PID audio) dasher (dyn_idx=7)
----(PID audio) ffenc "ffenc:aac" (c=aac:b=96k:#Representation=96k) (idx=3)
-----(PID audio) dasher (dyn_idx=7)
```
What am I doing wrong?
I compiled gpac and ffmpeg myself inside a docker container with alpine linux. I tried both master with FFMPEG 6.0 and v2.2.1 with FFMPEG 5.1.3
I uploaded the cut-down test file test.flac | Unexpected behavior with audio-only HLS | https://api.github.com/repos/gpac/gpac/issues/2548/comments | 1 | 2023-08-07T12:23:28Z | 2023-09-02T11:37:23Z | https://github.com/gpac/gpac/issues/2548 | 1,839,343,749 | 2,548 |
[
"gpac",
"gpac"
] | I've been using GPAC v2.0 for some time now. I'm trying to upgrade to the latest release, that of v2.2.1, but I'm facing some issues.
# Use Case
From and RTMP Stream, create multiple qualities of Low Latency HLS with specific configurations using linked filters.
> The exact command works perfectly in v2.0, but in v2.2.1 it fails on the first filter. It seems like some issue with fetching from source.
```
...
```
Has there been any such change that deprecates this command? If so, how can I achieve the same/similar (or maybe better) result with the new release?
| Upgrading to v2.2.1 from v2.0 | https://api.github.com/repos/gpac/gpac/issues/2547/comments | 2 | 2023-08-07T10:22:30Z | 2023-08-08T08:26:48Z | https://github.com/gpac/gpac/issues/2547 | 1,839,149,437 | 2,547 |
[
"gpac",
"gpac"
] | Hi there,
I'm working on a video streaming application where I want to stream tile-encoded bitstream from a server. The problem is at the receiver to render, I need to wait for all the moof packets to come. The size of moof varies depending on the frame type and scene, right?
Is there any way to fix the size of moof payloads so that fragments of the same size can be generated? By size, I mean the number of bytes in the fragment. I tried with `:cdur`, but it only fixes the time, not the size.
If this isn't possible, can I know the number of bytes dumped in each fragment when using `:frag`?
| Can I create fixed byte size moof? | https://api.github.com/repos/gpac/gpac/issues/2546/comments | 2 | 2023-08-04T05:34:12Z | 2023-09-01T04:20:48Z | https://github.com/gpac/gpac/issues/2546 | 1,836,094,523 | 2,546 |
[
"gpac",
"gpac"
] | 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/
- [] 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
For many USA companies it is mandatory now to provide a Software Bill of Materials (SBOM) document along with their software releases. To generate this document the software products must be scanned for third-party open source and other third-party code for any potential licensing and/or security issues.
Our company using for such scans the 'Code Insight' tool owned by Revenera. The scan of one of our products, which uses the Gpac 2.2.1 package, reported the following vulnerability issues in the 3rd party libraries used by Gpac.
1. Files: 'Gpac\avcodec-59.dll' and 'Gpac\avformat-59.dll' use the library 'madler-zlib 1.2.11' having the issues [CVE-2022-37434](https://nvd.nist.gov/vuln/detail/CVE-2022-37434), [CVE-2018-25032](https://nvd.nist.gov/vuln/detail/CVE-2018-25032) and [SA107600](https://secuniaresearch.flexerasoftware.com/advisories/107600/)
2. File 'Gpac\libgpac.dll' uses the following libraries:
a. 'madler-zlib 1.2.3' having the issues [CVE-2016-9843](https://nvd.nist.gov/vuln/detail/CVE-2016-9843), [CVE-2016-9841](https://nvd.nist.gov/vuln/detail/CVE-2016-9841), [CVE-2022-37434](https://nvd.nist.gov/vuln/detail/CVE-2022-37434), [CVE-2016-9840](https://nvd.nist.gov/vuln/detail/CVE-2016-9840), [CVE-2018-25032](https://nvd.nist.gov/vuln/detail/CVE-2018-25032) and [SA107600](https://secuniaresearch.flexerasoftware.com/advisories/107600/)
b. 'libpng 1.2.33' having the issues [CVE-2010-1205](https://nvd.nist.gov/vuln/detail/CVE-2010-1205), [CVE-2017-12652](https://nvd.nist.gov/vuln/detail/CVE-2017-12652), [CVE-2015-8540](https://nvd.nist.gov/vuln/detail/CVE-2015-8540), [CVE-2011-2690](https://nvd.nist.gov/vuln/detail/CVE-2011-2690), [CVE-2011-2692](https://nvd.nist.gov/vuln/detail/CVE-2011-2692), [CVE-2016-3751](https://nvd.nist.gov/vuln/detail/CVE-2016-3751), [CVE-2016-10087](https://nvd.nist.gov/vuln/detail/CVE-2016-10087), [CVE-2015-8472](https://nvd.nist.gov/vuln/detail/CVE-2015-8472), [CVE-2010-2249](https://nvd.nist.gov/vuln/detail/CVE-2010-2249), [CVE-2011-2501](https://nvd.nist.gov/vuln/detail/CVE-2011-2501), [CVE-2011-2691](https://nvd.nist.gov/vuln/detail/CVE-2011-2691) and [SA83997](https://secuniaresearch.flexerasoftware.com/advisories/83997/)
c. 'libjpeg 6b' having the issue [CVE-2020-14152](https://nvd.nist.gov/vuln/detail/CVE-2020-14152)
So, considering the current security concerns across the world and especially taking into account that numerous USA companies are now obligated to provide SBOM document with each release, the outdated 3rd party libraries listed above should be upgraded to their latest versions to avoid the know vulnerability issues. | Vulnerability issues in 3rd party components used by Gpac | https://api.github.com/repos/gpac/gpac/issues/2545/comments | 1 | 2023-08-03T19:51:58Z | 2023-09-05T08:56:47Z | https://github.com/gpac/gpac/issues/2545 | 1,835,648,219 | 2,545 |
[
"gpac",
"gpac"
] | Hi,
I would like to know if we can add a characteristics in the HLS manifest, an equivalent of the dash role, used for the accessibility.
https://datatracker.ietf.org/doc/html/rfc8216#section-8.9
I tried with "udta_tagc" filter but there are no characteristics in the master hls.
`gpac -i audio_fr.mp4:#HLSGroup=Francais
-i video.mp4
-i audio_fr_dv.mp4:#udta_tagc="public.accessibility.describes-video":#HLSGroup=Francais_DV
-o output/vod.m3u8:profile=onDemand
`
Thank you! | How to add HLS Characteristics? | https://api.github.com/repos/gpac/gpac/issues/2544/comments | 1 | 2023-07-29T12:42:19Z | 2023-08-29T13:40:50Z | https://github.com/gpac/gpac/issues/2544 | 1,827,466,783 | 2,544 |
[
"gpac",
"gpac"
] | Operating system: Windows 10 (64-bit)
MP4Box version: MP4Box - GPAC version 2.3-DEV-rev472-g2a2327c3b-ab-suite
I built static MP4Box with [Media AutoBuild Suite](https://github.com/m-ab-s/media-autobuild_suite) but when I use the bin for copy audio and videos streams from MKV container, I get this error.
`
[core] Creating default credential key in D:\Remux\MP4Box/creds.key, use -cred=PATH/TO_FILE to overwrite
Filter fin failed to setup: Filter not found for the desired type
[Importer] Error probing D:\Remux\input\001.mkv
Failure while importing import: Filter not found for the desired type
Error importing D:\Remux\input\input.mkv#1: Filter not found for the desired type
`
Shouldn't the static MP4Box work standalone without depending on other files unlike the GPAC installer package version? | mkv to mp4 remux not working in MP4Box build with Media AutoBuild Suite | https://api.github.com/repos/gpac/gpac/issues/2543/comments | 2 | 2023-07-28T01:13:14Z | 2023-08-06T20:46:57Z | https://github.com/gpac/gpac/issues/2543 | 1,825,515,647 | 2,543 |
[
"gpac",
"gpac"
] | 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
I have a project which is reading from RTSP streams and saves short 5-second segments to `mp4` files using FFmpeg and GStreamer.
I would like to be able to convert these `mp4` files to fragmented `fmp4` files in order to use them for HLS streaming.
My current pipeline looks like this:
- FFmpeg or GStreamer outputs short `mp4` files to a `/tmp` directory
- I run MP4Box on the file using this command:
```
MP4Box -dash 10000 -rap -frag-rap -segment-name output_ -out master.m3u8 /tmp/1690461275.mp4
```
- I then copy the resulting `.m4s` file to a new location which stores it for a longer period of time, and store the data from the `master_1.m3u8` file in a database so i can access the duration when generating a `.m3u8` file
I then have a webserver that serves the `.m4s` files
The users are suppose to be able to choose a timeframe of their liking, and i need to generate an `.m3u8` file on the fly which corresponds to the timeframe.
The problem that i am having is that no matter how i construct the `.m3u8` file, only the first segment in my playlist plays.
I think it might have something to do with my `MP4Box` command but i am not experienced enough in this field to tell for sure.
I would like to avoid running the MP4Box command when the user requests the stream to reduce delay, thats why i want convert the `mp4` files one by one.
Is it possible to make my usecase work using `MP4Box`?
TLDR: I want to convert `mp4` files to `m4s` files continuously and then create `m3u8` playlists on the fly.
| Convert MP4 to Fragmented MP4 continuously and create HLS playlist on the fly | https://api.github.com/repos/gpac/gpac/issues/2542/comments | 2 | 2023-07-27T14:59:27Z | 2023-08-29T13:33:19Z | https://github.com/gpac/gpac/issues/2542 | 1,824,565,044 | 2,542 |
[
"gpac",
"gpac"
] | 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 ...).
Generation of uncompressed YUV 422 or 420 image with mixed interleave and tiling appears to work OK:
```sh
$ ./bin/gcc/gpac uncvg:vsize=20x12:c=Y8,U8,V8:tiles=2x2:interleave=mix:sampling=422:fps=0 -o ./uncompressed_yuv422_mix_tiled.heif
$ ./bin/gcc/gpac uncvg:vsize=20x12:c=Y8,U8,V8:tiles=2x2:interleave=mix:sampling=420:fps=0 -o ./uncompressed_yuv420_mix_tiled.heif
```
However viewing those with `gpac -gui` produces corrupted images, for tiles after the first tile.
Example (422):

I haven't done the work to determine whether the problem is on the encode or decode side, but a quick inspection of the generated file didn't identify any issue, so perhaps on the decode side.
| uncompressed encode / decode with mix interleave and tiling has corrupted image | https://api.github.com/repos/gpac/gpac/issues/2541/comments | 2 | 2023-07-27T09:49:31Z | 2023-08-31T09:09:03Z | https://github.com/gpac/gpac/issues/2541 | 1,824,016,892 | 2,541 |
[
"gpac",
"gpac"
] | I am using MP4Box to convert h264 files to MP4 in Python on a Pi Zero 2W board. MP4Box works great, for a while, then throws an error 256. is there a master list of error codes? Or perhaps, help with this one would get me further along.
Thank you | MP4Box err 256 | https://api.github.com/repos/gpac/gpac/issues/2538/comments | 2 | 2023-07-24T15:56:41Z | 2023-09-04T07:45:03Z | https://github.com/gpac/gpac/issues/2538 | 1,818,704,779 | 2,538 |
[
"gpac",
"gpac"
] | # Description
While fuzzing yasm, a "heap-use-after-free" crash occurs,which was positioned in /gpac/src/utils/bitstream.c:1225:19 in gf_bs_align.
This bug may allow attackers to cause remote malicious code execution and denial of service via crafted files.
# Software version info
```
/AFLplusplus/my_test/fuzz_gpac # ./install/bin/MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev449-g5948e4f70-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
# System version info
```
/AFLplusplus/my_test/fuzz_gpac # uname -a
Linux 1344a5115a85 5.15.0-76-generic #83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
# Command to reproduce
`./MP4Box -xmt poc`
# Result
```
[iso file] Unknown box type 0000bt in parent moov
[iso file] Read Box type 00000000 (0x00000000) at position 1484 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 0) has 16719 extra bytes
[iso file] Box "cmvd" (start 0) has 3 extra bytes
=================================================================
==102==ERROR: AddressSanitizer: heap-use-after-free on address 0x6110000001a4 at pc 0x7fc2471e90b9 bp 0x7ffd7e96f7b0 sp 0x7ffd7e96f7a8
READ of size 4 at 0x6110000001a4 thread T0
#0 0x7fc2471e90b8 in gf_bs_align /AFLplusplus/my_test/gpac/src/utils/bitstream.c:1225:19
#1 0x7fc2471f9825 in gf_bs_skip_bytes /AFLplusplus/my_test/gpac/src/utils/bitstream.c:1371:2
#2 0x7fc247e0c122 in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:381:3
#3 0x7fc247e1202e in gf_isom_box_array_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1891:7
#4 0x7fc247cbcc00 in moov_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_code_base.c:3920:9
#5 0x7fc247e0e2bc in gf_isom_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1998:9
#6 0x7fc247e0b57d in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:309:14
#7 0x7fc247e0870f in gf_isom_parse_root_box /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:38:8
#8 0x7fc247e4dd88 in gf_isom_parse_movie_boxes_internal /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:385:7
#9 0x7fc247e4d3f7 in gf_isom_parse_movie_boxes /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:897:6
#10 0x7fc247e5c426 in gf_isom_open_file /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:1023:19
#11 0x7fc247e6cf8e in gf_isom_open /AFLplusplus/my_test/gpac/src/isomedia/isom_read.c:531:11
#12 0x55fdd8167c04 in mp4box_main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6291:12
#13 0x55fdd818ca05 in main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6933:1
#14 0x7fc2466f6d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
#15 0x7fc2466f6e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
#16 0x55fdd8079be4 in _start (/AFLplusplus/my_test/fuzz_gpac/install/bin/MP4Box+0xebbe4) (BuildId: fc72159612509ffb)
0x6110000001a4 is located 36 bytes inside of 200-byte region [0x611000000180,0x611000000248)
freed by thread T0 here:
#0 0x55fdd80fc782 in free (/AFLplusplus/my_test/fuzz_gpac/install/bin/MP4Box+0x16e782) (BuildId: fc72159612509ffb)
#1 0x7fc2472250a8 in gf_free /AFLplusplus/my_test/gpac/src/utils/alloc.c:165:2
#2 0x7fc2471e46c6 in gf_bs_del /AFLplusplus/my_test/gpac/src/utils/bitstream.c:381:2
#3 0x7fc247e0b6ec in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:319:3
#4 0x7fc247e1202e in gf_isom_box_array_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1891:7
#5 0x7fc247cbcc00 in moov_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_code_base.c:3920:9
#6 0x7fc247e0e2bc in gf_isom_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1998:9
#7 0x7fc247e0b57d in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:309:14
#8 0x7fc247e0870f in gf_isom_parse_root_box /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:38:8
#9 0x7fc247e4dd88 in gf_isom_parse_movie_boxes_internal /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:385:7
#10 0x7fc247e4d3f7 in gf_isom_parse_movie_boxes /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:897:6
#11 0x7fc247e5c426 in gf_isom_open_file /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:1023:19
#12 0x7fc247e6cf8e in gf_isom_open /AFLplusplus/my_test/gpac/src/isomedia/isom_read.c:531:11
#13 0x55fdd8167c04 in mp4box_main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6291:12
#14 0x55fdd818ca05 in main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6933:1
#15 0x7fc2466f6d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
previously allocated by thread T0 here:
#0 0x55fdd80fca2e in malloc (/AFLplusplus/my_test/fuzz_gpac/install/bin/MP4Box+0x16ea2e) (BuildId: fc72159612509ffb)
#1 0x7fc247224fc8 in gf_malloc /AFLplusplus/my_test/gpac/src/utils/alloc.c:150:9
#2 0x7fc2471e0c1c in gf_bs_new /AFLplusplus/my_test/gpac/src/utils/bitstream.c:135:38
#3 0x7fc247e09f1c in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:207:17
#4 0x7fc247e1202e in gf_isom_box_array_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1891:7
#5 0x7fc247cbcc00 in moov_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_code_base.c:3920:9
#6 0x7fc247e0e2bc in gf_isom_box_read /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:1998:9
#7 0x7fc247e0b57d in gf_isom_box_parse_ex /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:309:14
#8 0x7fc247e0870f in gf_isom_parse_root_box /AFLplusplus/my_test/gpac/src/isomedia/box_funcs.c:38:8
#9 0x7fc247e4dd88 in gf_isom_parse_movie_boxes_internal /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:385:7
#10 0x7fc247e4d3f7 in gf_isom_parse_movie_boxes /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:897:6
#11 0x7fc247e5c426 in gf_isom_open_file /AFLplusplus/my_test/gpac/src/isomedia/isom_intern.c:1023:19
#12 0x7fc247e6cf8e in gf_isom_open /AFLplusplus/my_test/gpac/src/isomedia/isom_read.c:531:11
#13 0x55fdd8167c04 in mp4box_main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6291:12
#14 0x55fdd818ca05 in main /AFLplusplus/my_test/gpac/applications/mp4box/mp4box.c:6933:1
#15 0x7fc2466f6d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d)
SUMMARY: AddressSanitizer: heap-use-after-free /AFLplusplus/my_test/gpac/src/utils/bitstream.c:1225:19 in gf_bs_align
Shadow bytes around the buggy address:
0x0c227fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c227fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c227fff8000: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c227fff8010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c227fff8020: 00 fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c227fff8030: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8040: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa
0x0c227fff8050: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c227fff8060: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8070: fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==102==ABORTING
```
# Poc
Use the PoC in the attachment or in the following link.
[poc.zip](https://github.com/gpac/gpac/files/12146269/poc.zip)
https://github.com/ChanStormstout/Pocs/blob/master/gpac_POC/id%3A000000%2Csig%3A06%2Csrc%3A003771%2Ctime%3A328254%2Cexecs%3A120473%2Cop%3Ahavoc%2Crep%3A8 | A `heap-use-after-free` crash in bitstream.c:1225:19 in gf_bs_align | https://api.github.com/repos/gpac/gpac/issues/2537/comments | 0 | 2023-07-24T13:14:16Z | 2023-07-24T14:34:56Z | https://github.com/gpac/gpac/issues/2537 | 1,818,405,399 | 2,537 |
[
"gpac",
"gpac"
] | 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 ...).
It looks like `gpac -gui` (or perhaps the underlying GLSL library) can't handle the mixed interleave format.
Works well:
```
bradh@audax:~/coding/gpac$ ./bin/gcc/gpac uncvg:c=Y8,U8,V8:interleave=comp:sampling=422:fps=0 -o ./uncompressed_yuv_comp_422.heif
bradh@audax:~/coding/gpac$ ./bin/gcc/gpac -gui ./uncompressed_yuv_comp_422.heif
[Thread gf_aout] Couldn't set priority(2) for thread ID 0xc67b7640
```
Fails:
```
bradh@audax:~/coding/gpac$ ./bin/gcc/gpac uncvg:c=Y8,U8,V8:interleave=mix:sampling=422:fps=0 -o ./uncompressed_yuv_mix_422.heif
bradh@audax:~/coding/gpac$ ./bin/gcc/gpac -gui ./uncompressed_yuv_mix_422.heif
[Thread gf_aout] Couldn't set priority(2) for thread ID 0x06045640
[V3D:GLSL] Unknown pixel format YUV4
```
This is on ubuntu. libglx-dev is 1.4.0-1. | gpac gui incompatible with uncompressed mixed subsampling | https://api.github.com/repos/gpac/gpac/issues/2536/comments | 0 | 2023-07-24T11:06:37Z | 2023-07-24T14:39:39Z | https://github.com/gpac/gpac/issues/2536 | 1,818,190,121 | 2,536 |
[
"gpac",
"gpac"
] | 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 ...).
Using a current gpac (git 7c6cf9e9cafb4b34efcc30a578b62f453937abe9), with the uncvg plugin,
```
./bin/gcc/gpac uncvg:vsize=20x10:c=Y8,U8,V8:tiles=5x2:interleave=comp:sampling=420:fps=0 -o error.heif
```
produces repeated (10000+) errors of the form:
```
[uncvg] Error processing
Internal error in tile padding: remainder 31 is greater than tile size 30 tile start 0
```
I believe it is because the tile height needs to be a power of 2 for 420 to make sense, and in this case it isn't, so its an operator error. It might be possible to detect this invalid input / configuration rather than generate the errors though. | uncvg error handling for invalid tile size | https://api.github.com/repos/gpac/gpac/issues/2535/comments | 1 | 2023-07-24T10:47:36Z | 2023-07-24T10:56:29Z | https://github.com/gpac/gpac/issues/2535 | 1,818,160,050 | 2,535 |
[
"gpac",
"gpac"
] | Hello, I am doing a project at the Polytechnic University of Valencia (UPV) and for its realization, I need to access the GPAC player file and be able to access the properties that are shown in the player (such as the clock time shown in the attached image)
How could I do it?

| Access player properties | https://api.github.com/repos/gpac/gpac/issues/2534/comments | 1 | 2023-07-24T07:28:14Z | 2023-07-24T09:04:16Z | https://github.com/gpac/gpac/issues/2534 | 1,817,814,054 | 2,534 |
[
"gpac",
"gpac"
] | Using this command (note I am using a slightly modified version of out_route.c to support updated and/or new ATSC 3.0 related features, built on the latest pull from github. Also note, I had the same issue with the non-modified out_route.c):
`gpac -i videos/world.mp4 reframer:rt=on dasher:profile=live:#ATSC3ShortServiceName=K16XX-D:#ATSC3MajorChannel=16:#ATSC3MinorChannel=1:#ATSC3ServiceCat=1:#ROUTEUpload=0.5:#ROUTECarousel=2 -o atsc://:ip=239.6.15.16:first_port=30000:bsid=1:llmode`
gpac is creating the ATSC3 LLS stream on 224.0.23.60 port 4937, as per the standard. However, it is not streaming the mp4 file. I can see port 30000 open in netstat as well as multicast group 239.6.15.16 active in netstat. tcpdump port 30000 shows no packets. tcpdump port 4937 shows packets and further analysis shows the LLS packets to be correct.
Only errors from gpac are:
`[Dasher] First CTS 5392800 in segment 60 drifting by 0.92 (more than half a segment duration) from segment time, consider reencoding or using segment timeline`
and
`[Dasher] Segment 67 duration 0.48 less than half DASH duration, consider reencoding or using segment timeline`
Would those errors cause DASH/ROUTE to not stream the mp4? Any other ideas on what might be the problem?
Thanks! | DASH/ROUTE to atsc:// not outputting data, only LLS | https://api.github.com/repos/gpac/gpac/issues/2533/comments | 14 | 2023-07-23T01:58:25Z | 2023-07-26T13:21:53Z | https://github.com/gpac/gpac/issues/2533 | 1,816,955,632 | 2,533 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.