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"
] | 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/
| Due to the loss of sound quality caused by ALAW, we plan to use pcm to directly encapsulate mp4. The following tests are carried out: Mp4Box-add src.pcm-add src.h265 output.mp4. We parsed the output file and found that the audio encoder is SOWT, which is also missing in version 2.2.0. How to choose? | https://api.github.com/repos/gpac/gpac/issues/2413/comments | 1 | 2023-03-09T10:00:27Z | 2023-03-10T18:07:27Z | https://github.com/gpac/gpac/issues/2413 | 1,616,847,147 | 2,413 |
[
"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.
- [ ] 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/
| upgrade to V2.2.0,GF_QT_BOX_TYPE_AUDIO_ALAW disappear, what can I use instead for g711a? | https://api.github.com/repos/gpac/gpac/issues/2412/comments | 2 | 2023-03-09T09:18:13Z | 2023-03-10T03:03:37Z | https://github.com/gpac/gpac/issues/2412 | 1,616,769,790 | 2,412 |
[
"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
OS: Linux 5.4.0-1104-azure #⁠110~18.04.1-Ubuntu 64 Bits
Command Line: MP4Box -dash 10000 -out output.mpd input.mkv
App: MP4Box - GPAC version 2.3-DEV-rev47-gfccf4a645-master
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Tags: MP4Box, DASH
Im trying to mux MPEG Dash with MP4Box and i got `Segmentation fault (core dumped)` no error message.
Verbose
```
[DASH] Instantiating dasher filter for dst output.mpd with args segdur=10000/1000:profile=full:!sap:buf=1500:!check_dur:pssh=v:subs_sidx=0
[DASH] Instantiating dasher source input.mkv with args smode=splitx:tkid=video:#Representation=1
[DASH] Instantiating dasher source input.mkv with args smode=splitx:tkid=audio:#Representation=2
Probing matroska,webm score:100 size:999968
[FFDmx] opening file input.mkv - av_in 00000000
[NULL] Opening 'input.mkv' for reading
[file] Setting default whitelist 'file,crypto,data'
Probing h263 score:25 size:2048
Probing matroska,webm score:100 size:2048
[matroska,webm] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[matroska,webm] Before avformat_find_stream_info() pos: 2120 bytes read:32768 seeks:0 nb_streams:2
[matroska,webm] All info found
[matroska,webm] stream 0: start_time: 0 duration: NOPTS
[matroska,webm] stream 1: start_time: 0 duration: NOPTS
[matroska,webm] format: start_time: 0 duration: 8163.75 (estimate from stream) bitrate=2162 kb/s
[matroska,webm] After avformat_find_stream_info() pos: 6304 bytes read:32768 seeks:0 frames:5
[FFDmx] file input.mkv opened - 2 streams
Segmentation fault (core dumped)
```
I can confirm that this issue only occur when using mkv as input file. | Segmentation fault (core dumped) | https://api.github.com/repos/gpac/gpac/issues/2411/comments | 8 | 2023-03-08T10:23:58Z | 2023-06-01T08:26:03Z | https://github.com/gpac/gpac/issues/2411 | 1,615,031,405 | 2,411 |
[
"gpac",
"gpac"
] | I would like help to install in termux. | install in termux | https://api.github.com/repos/gpac/gpac/issues/2410/comments | 2 | 2023-03-07T19:02:05Z | 2023-03-08T14:16:18Z | https://github.com/gpac/gpac/issues/2410 | 1,614,034,123 | 2,410 |
[
"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/
What was expected: A successful mux.
What was the result you obtained: As of [#1402](https://github.com/gpac/gpac/issues/1402) it says i can use mkv container as input file. But instead I got error.
```
Filter fin failed to setup: Filter not found for the desired type
Filter fin failed to setup: Filter not found for the desired type
Filters not connected:
fout (dst=/Users/naufalazharalmizan/Documents/Media/Kusonime.D.Conan - 03.mpd:gpac:segdur=3000/1000:muxtype=mkv:profile=onDemand:buf=1500:!check_dur:pssh=v:subs_sidx=0) (idx=1)
Arg segdur set but not used
Arg muxtype set but not used
Arg profile set but not used
Arg buf set but not used
Arg !check_dur set but not used
Arg pssh set but not used
Arg subs_sidx set but not used
Error DASHing file: Filter not found for the desired type
```
MP4Box:
- Build: I'm compiling myself & I try to use Nightly Builds same results.
- Version: 2.3-DEV-rev45-gb964fe422-master
Operating System: MacOS 10.15
Architecture: 64 bits
Commands:
```MP4Box -dash 3000 -out manifest.mpd:muxtype=mkv -profile onDemand video.mkv#video video.mkv#audio```
The problem happens all the time and a new problem.
Any required information can be requested. Thank you | Error DASHing file: Filter not found for the desired type | https://api.github.com/repos/gpac/gpac/issues/2409/comments | 1 | 2023-03-06T13:19:55Z | 2023-03-07T12:44:36Z | https://github.com/gpac/gpac/issues/2409 | 1,611,413,766 | 2,409 |
[
"gpac",
"gpac"
] | If i package a 480p video (480x854), (or any video which has different PAR than its width/height)
GPAC produces the wrong PAR and SAR values in the adaption set.
I use the following command:
```bash
gpac
-i video.mp4:gpac:#PAR=16/9
-o dash.mpd:profile=dashavc264.onDemand:dual:cmaf=cmf2:styp:sfile:bs_switch=both:segdur=15:sbound=closest
```
It produces incorrect output:
```xml
<AdaptationSet segmentAlignment="true" maxWidth="854" maxHeight="480" maxFrameRate="60" par="427:240" lang="eng" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="0" mimeType="video/mp4" codecs="avc1.64001F" width="854" height="480" frameRate="60" sar="1:1" bandwidth="1035863">
<BaseURL>video_track1_init.mp4</BaseURL>
<SegmentBase indexRangeExact="true" indexRange="970-1013">
<Initialization range="0-941"/>
</SegmentBase>
</Representation>
</AdaptationSet>
```
As you can see, GPAC has set the following PAR and SAR values:
```ini
AdaptationSet@par = 427:240
Representation@sar = 1:1
```
These values are wrong, because i specified a PAR of 16:9 at the command line, and the SAR should be calculated from that. Allthough these values will technically work, they will causes conflicts if multiple representations are used.
Lets take a look at what the DASH-IF guidelines [[source]](https://dashif-documents.azurewebsites.net/DASH-IF-IOP/master/DASH-IF-IOP.html#video-constraints) say about that:
> Note: `@width` and `@height` indicate the number of encoded pixels. `@par` indicates the final intended display aspect ratio and `@sar` is effectively the ratio of aspect ratios (ratio of `@width` x `@height` to `@par`).
>
> Given a coded picture of 720x576 pixels with an intended display aspect ratio of 16:9, we would have the following values:
> `@width`=720
> `@height`=576
> `@par`=16:9
> `@sar`=45:64 (720x576 is 5:4, which gives `@sar`=5:4/16:9=45:64)
So, applying this to our example, the correct values (according to DASH-IF) should be:
```ini
AdaptationSet@par = 16:9
Representation@sar = 1281:1280 # is calculated using (width/height)/par , in this case: (854/480)/(16/9)
```
I hope i explained the issue detailed enough :) | [BUG] Aspect ratios are handled incorrectly by GPAC when PAR is different than width/height | https://api.github.com/repos/gpac/gpac/issues/2407/comments | 1 | 2023-02-28T21:10:29Z | 2023-03-08T18:11:01Z | https://github.com/gpac/gpac/issues/2407 | 1,603,818,565 | 2,407 |
[
"gpac",
"gpac"
] | Link to build logs.
https://koji.rpmfusion.org/koji/taskinfo?taskID=585584
```
gcc -I"/builddir/build/BUILD/gpac-2.2.0/include" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -I/usr/include/ffmpeg -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -msse2 -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/builddir/build/BUILD/gpac-2.2.0" -fvisibility="hidden" -I/usr/include/ffmpeg -c -o filters/ff_mx.o filters/ff_mx.c
filters/ff_mx.c: In function 'ffmx_close_seg':
filters/ff_mx.c:506:72: error: 'AVIOContext' has no member named 'written'
506 | evt.seg_size.media_range_end = ctx->muxer->pb ? (ctx->muxer->pb->written-1) : 0;
| ^~
filters/ff_mx.c: In function 'ffmx_configure_pid':
filters/ff_mx.c:1016:55: error: 'const struct AVOutputFormat' has no member named 'query_codec'
1016 | if (ctx->muxer->oformat && ctx->muxer->oformat->query_codec) {
| ^~
filters/ff_mx.c:1017:42: error: 'const struct AVOutputFormat' has no member named 'query_codec'
1017 | res = ctx->muxer->oformat->query_codec(ff_codec_id, 1);
| ^~
make[1]: *** [../config.mak:183: filters/ff_mx.o] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/gpac-2.2.0/src'
make[1]: *** Waiting for unfinished jobs....
```
See.
https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/9b8a398930df6606f6314b07c66605f44a8cb0eb | gpac-2.2.0 fails to compile with ffmpeg-6.0 release. | https://api.github.com/repos/gpac/gpac/issues/2406/comments | 9 | 2023-02-28T08:53:46Z | 2023-04-27T11:02:49Z | https://github.com/gpac/gpac/issues/2406 | 1,602,614,615 | 2,406 |
[
"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 have seen https://github.com/gpac/gpac/wiki/HEVC-Tile-based-adaptation-guide and successfully used kvazaar and gpac to generate tiled videos.
However, I am looking for a method to stitch NxM independently encoded HEVC video stream into one mp4 file.
If I can control using the same video encoding parameters, is it possible to perform the stitching?
It should perform like `vstack` and `hstack` in ffmpeg.
Thank you so much. | How to stitching NxM independently encoded HEVC video stream? | https://api.github.com/repos/gpac/gpac/issues/2405/comments | 1 | 2023-02-27T15:48:21Z | 2023-03-14T11:38:24Z | https://github.com/gpac/gpac/issues/2405 | 1,601,446,912 | 2,405 |
[
"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/
The "Tags" (specifically the section simply called "Tags", as opposed to "Title", "Comments", etc) as applied by Windows Explorer appear to be interfering with the correct functionality of MP4Box. Assigning a single "Tag" will result in no observable impact (MP4Box doesn't even acknowledge it exists), but as soon as a second "Tag" is assigned the file becomes completely incompatible. This persists should the second "Tag" be removed - it's only after all "Tags" have been removed that the file works as expected, at which point you can repeat the process.
The errors presented are as follows (consistent across all tested files):
> [isom] invalid tag size in Xtra !
[iso file] Read Box "Xtra" (start 4803875) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "udta" (start 4803867) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "moov" (start 36) failed (Invalid IsoMedia File) - skipping
Error opening file \\mediaserver\video\movies\Hero (CMN, ENG)(FHD).mp4: Invalid IsoMedia File
_There is also another error stating "[iso file] Broken text box detected, skiping parsing.", however this appears on files that otherwise work so I mention it only for the sake of completeness._
I'm unable to provide a demonstration file based on what I've used in my testing. They are both too large and only legal for personal use.
1.0 handled these tags without presenting an issue. It seemed unable to display them, but it at least acknowledged their existence and dealt with them accordingly. They present simply as a "tags" UDTA type, which is not detected in 2.x (files report four UDTA types in 1.0, but only three in 2.x). | MP4Box 2 incompatible with Windows Explorer tags | https://api.github.com/repos/gpac/gpac/issues/2404/comments | 1 | 2023-02-25T13:00:05Z | 2023-03-10T17:56:44Z | https://github.com/gpac/gpac/issues/2404 | 1,599,701,810 | 2,404 |
[
"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/
Hai, i got a issues regarding my gpac player. Why after i play the video it become blank?

| My video cannot view in gpac | https://api.github.com/repos/gpac/gpac/issues/2403/comments | 2 | 2023-02-23T09:14:04Z | 2023-03-14T10:58:41Z | https://github.com/gpac/gpac/issues/2403 | 1,596,484,295 | 2,403 |
[
"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/
===
Using latest nightly on MacOS.
The following command works …
`mp4box frame_0000003.heic -add-image frame_0000003_zbuffer.hvc:ID=50:auxt=urn:mpeg:hevc:2015:auxid:2`
However for my purposes the HEIC requires a Aux Subtype otherwise the depth channel is not seen.
In an Apple reference HEIC this looks like the following (using "_mp4box -diso_" XML dump) …
(from [https://files.michaelzfreeman.org/IMG_0019_A.HEIC](https://files.michaelzfreeman.org/IMG_0019_A.HEIC) )
```
<AuxiliaryTypePropertyBox Size="60" Type="auxC" Version="0" Flags="0" Specification="iff" Container="ipco" aux_type="urn:mpeg:hevc:2015:auxid:2" aux_subtype="0x000000110000000D4E01B109351F7B760103C7A020" >
</AuxiliaryTypePropertyBox>
```
Unless I’m missing a function can a way be added to allow the setting of “aux_subtype=“. Cheers.
| Can’t create auxiliary image subtype | https://api.github.com/repos/gpac/gpac/issues/2402/comments | 1 | 2023-02-18T14:35:44Z | 2023-03-13T09:59:26Z | https://github.com/gpac/gpac/issues/2402 | 1,590,363,242 | 2,402 |
[
"gpac",
"gpac"
] | We are trying to specify a time server for a dasher filter using the `utcs` parameter, like this: `[opts]::utcs="xsd@https://time.akamai.com/?iso&ms"`, but that last `&ms` part of the uri causes the manifest to not include the AdaptationSet for the video track:

The full command is this:
`gpac -i [some_rtmp_input] -o [some_playlist.mpd]:gpac:dual:segdur=2.0:buf=-100:hlsc=1:cmaf=cmfc:profile=live:dmode=dynamic:template=segment_$$(openssl rand -hex 5):hmode=push:rdirs=gmem::utcs="xsd@https://time.akamai.com/?iso&ms"`
We see that it works if we just use `[opts]::utcs=xsd@https://time.akamai.com/?iso`, but shouldn't it work with the `&ms` part?
| Dasher Time Server Uri with Params | https://api.github.com/repos/gpac/gpac/issues/2401/comments | 2 | 2023-02-16T21:15:32Z | 2023-03-13T08:59:42Z | https://github.com/gpac/gpac/issues/2401 | 1,588,371,839 | 2,401 |
[
"gpac",
"gpac"
] |
[POC](https://github.com/qianshuidewajueji/poc/blob/main/gpac/adts_dmx_process_poc)
```
Version
MP4Box - GPAC version 2.3-DEV-rev44-gbe9f8d395-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
Reproduce
complie and run
./configure --enable-sanitizer
make
./MP4Box -info poc
information reported by sanitizer
➜ gcc git:(master) ✗ ./MP4Box -info ./adts_dmx_process_poc
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
[ADTSDmx] Unsupported multi-block ADTS frame header - patch welcome
=================================================================
==6277==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61e00000fb8e at pc 0x7f68193a0490 bp 0x7fff943fa890 sp 0x7fff943fa038
READ of size 6134 at 0x61e00000fb8e thread T0
#0 0x7f68193a048f in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790
#1 0x7f6816cc2268 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#2 0x7f6816cc2268 in adts_dmx_process filters/reframe_adts.c:831
#3 0x7f68168d612d in gf_filter_process_task filter_core/filter.c:2828
#4 0x7f68168980c2 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7f68168a4896 in gf_fs_run filter_core/filter_session.c:2120
#6 0x7f68162e2806 in gf_media_import media_tools/media_import.c:1228
#7 0x5636382583b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#8 0x563638227db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#9 0x7f6813579082 in __libc_start_main ../csu/libc-start.c:308
#10 0x5636381fbcfd in _start (/home/qianshuidewajueji/gpac/bin/gcc/MP4Box+0xa3cfd)
0x61e00000fb8e is located 0 bytes to the right of 2830-byte region [0x61e00000f080,0x61e00000fb8e)
allocated by thread T0 here:
#0 0x7f6819412c3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7f6816cc2cee in adts_dmx_process filters/reframe_adts.c:606
#2 0x7f68168d612d in gf_filter_process_task filter_core/filter.c:2828
#3 0x7f68168980c2 in gf_fs_thread_proc filter_core/filter_session.c:1859
#4 0x7f68168a4896 in gf_fs_run filter_core/filter_session.c:2120
#5 0x7f68162e2806 in gf_media_import media_tools/media_import.c:1228
#6 0x5636382583b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#7 0x563638227db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#8 0x7f6813579082 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:
0x0c3c7fff9f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3c7fff9f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3c7fff9f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3c7fff9f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3c7fff9f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c3c7fff9f70: 00[06]fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3c7fff9f80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3c7fff9f90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3c7fff9fa0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3c7fff9fb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3c7fff9fc0: 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
==6277==ABORTING
Git log
commit be9f8d395bbd196e3812e9cd80708f06bcc206f7 (HEAD -> master, origin/master, origin/HEAD)
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Mon Feb 13 15:42:23 2023 +0100
mhas: check idx not oob (#2398)
commit 377ab25f3e502db2934a9cf4b54739e1c89a02ff
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Mon Feb 13 15:42:10 2023 +0100
fix a5efec8 to cover more cases (#2397)
Credit
qianshuidewajueji@QAX src
Impact
This is capable of causing crashes by using unexpected value, or possible code execution.
Occurrences
reframe_adts.c L831
if (!ctx->in_seek) {
dst_pck = gf_filter_pck_new_alloc(ctx->opid, size, &output);
if (!dst_pck) return GF_OUT_OF_MEM;
if (ctx->src_pck) gf_filter_pck_merge_properties(ctx->src_pck, dst_pck);
memcpy(output, sync + offset, size);
gf_filter_pck_set_dts(dst_pck, ctx->cts);
gf_filter_pck_set_cts(dst_pck, ctx->cts);
gf_filter_pck_set_duration(dst_pck, ctx->dts_inc);
``` | heap-buffer-overflow in function adts_dmx_process filters/reframe_adts.c | https://api.github.com/repos/gpac/gpac/issues/2400/comments | 1 | 2023-02-16T13:35:36Z | 2023-02-16T17:47:26Z | https://github.com/gpac/gpac/issues/2400 | 1,587,692,150 | 2,400 |
[
"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.
- [X] I give enough information for contributors to reproduce my issue _(Disclaimer: This is foremost a question.)_
I am experiencing some strange things when syncing video files ("Home Videos") from different Macs to an iPod Nano 3rd generation. Before syncing, the videos (on the Mac) have the following media information:
```
Media Type: sbtl:tx3g
QT/3GPP subtitle
Size 320 x 240 - Translation X=0 Y=0 - Layer 0
```
Curiously, after syncing from High Sierra (oldest macOS) and Ventura (newest macOS), the videos (on the iPod) have a modified media information. This causes the iPod not to display subtitles.
```
Media Type: gnrc:tx3g
Subtitle/text 3GPP/Apple Stream
```
On Monterey (released between High Sierra and Ventura), media info is intact ("sbtl"), and subtitles are displayed.
My current workaround for High Sierra and Ventura is to stream copy the videos on the iPod, which reinstates `sbtl`.
Does anyone know what `gnrc` is, why it is applied by *some* macOS, and how to avoid this, in order to get subtitles? The `FOURCC` is elusive on the web and the gpac and FFmpeg sources. FFmpeg generates `sbtl` by default.
PS! Curiously, while "3GPP/Apple Stream" (associated with the obscure `gnrc`) occurs prominently in the MP4Box source, while "QT/3GPP" (associated with the more agreeable `sbtl`) is hardcoded.
https://github.com/gpac/gpac/blob/master/applications/mp4box/filedump.c#L3381
| Ensuring subtitles on iPods ("sbtl" vs. "gnrc") | https://api.github.com/repos/gpac/gpac/issues/2399/comments | 14 | 2023-02-15T16:16:05Z | 2023-06-26T12:01:07Z | https://github.com/gpac/gpac/issues/2399 | 1,586,143,458 | 2,399 |
[
"gpac",
"gpac"
] | [POC](https://github.com/qianshuidewajueji/poc/blob/main/gpac/mhas_dmx_process_poc)
```
Version
➜ gcc git:(master) ✗ ./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev40-g3602a5ded-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
Proof of Concept
➜ gcc git:(master) ✗ ./MP4Box -info mhas_dmx_process_poc
filters/reframe_mhas.c:625:25: runtime error: index 30 out of bounds for type 'u32 [28]'
Reproduce
./configure --enable-sanitizer --enable-debug
make
./MP4Box -info ./mhas_dmx_process_poc
Impact
This is capable of causing crashes by using unexpected value, or possible code execution.
Occurrences
reframe_mhas.c L625
if (idx==0x1f)
sr = gf_bs_read_int(ctx->bs, 24);
else if (sr < nb_usac_sr) {
sr = USACSampleRates[idx]; //while idx >= sizeof(USACSampleRates)-1,cased buffer over-read
}
ctx->nb_unknown_pck = 0;
``` | buffer over-read in function mhas_dmx_process filters/reframe_mhas.c | https://api.github.com/repos/gpac/gpac/issues/2398/comments | 1 | 2023-02-13T09:59:21Z | 2023-02-13T16:33:06Z | https://github.com/gpac/gpac/issues/2398 | 1,582,019,406 | 2,398 |
[
"gpac",
"gpac"
] | [POC](https://github.com/qianshuidewajueji/poc/blob/main/gpac/gf_text_get_utf8_line_poc)
```
Version
MP4Box - GPAC version 2.3-DEV-rev40-g3602a5ded-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
Proof of Concept
➜ gcc git:(master) ✗ ./MP4Box -info ./gf_text_get_utf8_line_poc
filters/load_text.c:362:13: runtime error: index 2048 out of bounds for type 'char [2048]'
Reproduce
./configure --enable-sanitizer --enable-debug
make
./MP4Box -info gf_text_get_utf8_line_poc
Git Log
commit 3602a5ded4e57b0044a949f985ee3792f94a9a36 (HEAD -> master, origin/master, origin/HEAD)
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Thu Feb 9 11:24:23 2023 +0100
mp3dmx: check truncated frames (#2391)
commit ea7395f39f601a7750d48d606e9d10ea0b7beefe
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Wed Feb 8 16:52:00 2023 +0100
sgpd box entry: disallow null grouping_type (#2389)
commit 8db20cb634a546c536c31caac94e1f74b778b463
Author: Aurelien David <aurelien.david@telecom-paristech.fr>
Date: Tue Feb 7 18:27:19 2023 +0100
m2ts: check descs_size read from input to prevent overflow (#2388)
Impact
This is capable of causing crashes by using unexpected value.
Occurrences
load_text.c L362
if (j >= GF_ARRAY_LENGTH(szLineConv) - 1) {
GF_LOG(GF_LOG_DEBUG, GF_LOG_PARSER, ("[TXTIn] Line too long to convert to utf8 (len: %d)\n", len));
break;
}
}
szLineConv[j] = 0; // while j == GF_ARRAY_LENGTH(szLineConv) case off-by-one error
strcpy(szLine, szLineConv);
``` | off-by-one error in function gf_text_get_utf8_line filters/load_text.c | https://api.github.com/repos/gpac/gpac/issues/2397/comments | 1 | 2023-02-13T09:57:01Z | 2023-02-13T16:32:57Z | https://github.com/gpac/gpac/issues/2397 | 1,582,015,060 | 2,397 |
[
"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/
# Version
```
MP4Box - GPAC version 2.3-DEV-rev40-g3602a5ded-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer --enable-debug
make
./MP4Box -info mp3_dmx_process_poc2
```
information reported by sanitizer
```
[MP3Dmx] invalid frame, resyncing
=================================================================
==29937==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61a00000e322 at pc 0x7fe02eb39490 bp 0x7ffdcd4a3c40 sp 0x7ffdcd4a33e8
READ of size 316 at 0x61a00000e322 thread T0
#0 0x7fe02eb3948f in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790
#1 0x7fe02c490c9f in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#2 0x7fe02c490c9f in mp3_dmx_process filters/reframe_mp3.c:677
#3 0x7fe02c0700ed in gf_filter_process_task filter_core/filter.c:2828
#4 0x7fe02c032082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7fe02c03e856 in gf_fs_run filter_core/filter_session.c:2120
#6 0x7fe02ba7c806 in gf_media_import media_tools/media_import.c:1228
#7 0x55576950e3b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#8 0x5557694dddb5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#9 0x7fe028d14082 in __libc_start_main ../csu/libc-start.c:308
#10 0x5557694b1cfd in _start (/home/qianshuidewajueji/gpac/bin/gcc/MP4Box+0xa3cfd)
0x61a00000e322 is located 0 bytes to the right of 1186-byte region [0x61a00000de80,0x61a00000e322)
allocated by thread T0 here:
#0 0x7fe02ebabc3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7fe02c492248 in mp3_dmx_process filters/reframe_mp3.c:547
#2 0x7fe02c0700ed in gf_filter_process_task filter_core/filter.c:2828
#3 0x7fe02c032082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#4 0x7fe02c03e856 in gf_fs_run filter_core/filter_session.c:2120
#5 0x7fe02ba7c806 in gf_media_import media_tools/media_import.c:1228
#6 0x55576950e3b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#7 0x5557694dddb5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#8 0x7fe028d14082 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:
0x0c347fff9c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c347fff9c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c347fff9c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c347fff9c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c347fff9c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c347fff9c60: 00 00 00 00[02]fa fa fa fa fa fa fa fa fa fa fa
0x0c347fff9c70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c347fff9c80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c347fff9c90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c347fff9ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c347fff9cb0: 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
==29937==ABORTING
```
# Poc
https://github.com/qianshuidewajueji/poc/blob/main/gpac/mp3_dmx_process_poc2
| heap-buffer-overflow in function mp3_dmx_process filters/reframe_mp3.c:677 | https://api.github.com/repos/gpac/gpac/issues/2396/comments | 1 | 2023-02-09T14:19:15Z | 2023-02-13T16:32:29Z | https://github.com/gpac/gpac/issues/2396 | 1,577,978,840 | 2,396 |
[
"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/
# Version
```
MP4Box - GPAC version 2.3-DEV-rev40-g3602a5ded-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer --enable-debug
make
./MP4Box -info gf_m2ts_process_tdt_tot
```
information reported by sanitizer
```
=================================================================
==24800==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001b51 at pc 0x7fa11638a599 bp 0x7fff33c01ff0 sp 0x7fff33c01fe0
READ of size 1 at 0x602000001b51 thread T0
#0 0x7fa11638a598 in gf_m2ts_process_tdt_tot media_tools/mpegts.c:952
#1 0x7fa11638a598 in gf_m2ts_process_tdt_tot media_tools/mpegts.c:905
#2 0x7fa11638b936 in gf_m2ts_section_complete media_tools/mpegts.c:623
#3 0x7fa11638d619 in gf_m2ts_gather_section media_tools/mpegts.c:760
#4 0x7fa116395c12 in gf_m2ts_process_packet media_tools/mpegts.c:2591
#5 0x7fa1163982b9 in gf_m2ts_process_data media_tools/mpegts.c:2817
#6 0x7fa1163a25c5 in gf_m2ts_probe_buffer media_tools/mpegts.c:3201
#7 0x7fa116aa5fa4 in m2tsdmx_probe_data filters/dmx_m2ts.c:1438
#8 0x7fa11696b778 in gf_filter_pid_raw_new filter_core/filter.c:4210
#9 0x7fa116b3a2db in filein_process filters/in_file.c:492
#10 0x7fa1169730ed in gf_filter_process_task filter_core/filter.c:2828
#11 0x7fa116935082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#12 0x7fa116941856 in gf_fs_run filter_core/filter_session.c:2120
#13 0x7fa11637f806 in gf_media_import media_tools/media_import.c:1228
#14 0x562a5a4743b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#15 0x562a5a443db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#16 0x7fa113617082 in __libc_start_main ../csu/libc-start.c:308
#17 0x562a5a417cfd in _start (/home/qianshuidewajueji/gpac/bin/gcc/MP4Box+0xa3cfd)
0x602000001b51 is located 0 bytes to the right of 1-byte region [0x602000001b50,0x602000001b51)
allocated by thread T0 here:
#0 0x7fa1194ae808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7fa11638b5e9 in gf_m2ts_section_complete media_tools/mpegts.c:566
#2 0x7fa11638d619 in gf_m2ts_gather_section media_tools/mpegts.c:760
#3 0x7fa116395c12 in gf_m2ts_process_packet media_tools/mpegts.c:2591
#4 0x7fa1163982b9 in gf_m2ts_process_data media_tools/mpegts.c:2817
#5 0x7fa1163a25c5 in gf_m2ts_probe_buffer media_tools/mpegts.c:3201
#6 0x7fa116aa5fa4 in m2tsdmx_probe_data filters/dmx_m2ts.c:1438
#7 0x7fa11696b778 in gf_filter_pid_raw_new filter_core/filter.c:4210
#8 0x7fa116b3a2db in filein_process filters/in_file.c:492
#9 0x7fa1169730ed in gf_filter_process_task filter_core/filter.c:2828
#10 0x7fa116935082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#11 0x7fa116941856 in gf_fs_run filter_core/filter_session.c:2120
#12 0x7fa11637f806 in gf_media_import media_tools/media_import.c:1228
#13 0x562a5a4743b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#14 0x562a5a443db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#15 0x7fa113617082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:952 in gf_m2ts_process_tdt_tot
Shadow bytes around the buggy address:
0x0c047fff8310: fa fa 00 00 fa fa 04 fa fa fa 04 fa fa fa 04 fa
0x0c047fff8320: fa fa 06 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8330: fa fa 00 00 fa fa 00 00 fa fa fd fa fa fa 00 00
0x0c047fff8340: fa fa 00 00 fa fa 04 fa fa fa 04 fa fa fa 04 fa
0x0c047fff8350: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 03 fa
=>0x0c047fff8360: fa fa 00 00 fa fa 00 00 fa fa[01]fa fa fa 00 fa
0x0c047fff8370: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff83b0: 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
==24800==ABORTING
```
# Poc
https://github.com/qianshuidewajueji/poc/blob/main/gpac/gf_m2ts_process_tdt_tot
| heap-buffer-overflow in function gf_m2ts_process_tdt_tot media_tools/mpegts.c:952 | https://api.github.com/repos/gpac/gpac/issues/2395/comments | 1 | 2023-02-09T14:03:00Z | 2023-02-13T16:32:43Z | https://github.com/gpac/gpac/issues/2395 | 1,577,948,156 | 2,395 |
[
"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/
# Version
```
MP4Box - GPAC version 2.3-DEV-rev40-g3602a5ded-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 --verbose
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_PNG GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer --enable-debug
make
./MP4Box -info gf_av1_reset_state_poc
```
information reported by sanitizer
```
[AV1] VFR not supported.
=================================================================
==23845==ERROR: AddressSanitizer: attempting double-free on 0x615000013680 in thread T0:
#0 0x7f62c61ab40f in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122
#1 0x7f62c301d5b9 in gf_av1_reset_state media_tools/av_parsers.c:4024
#2 0x7f62c3a6a901 in av1dmx_finalize filters/reframe_av1.c:1246
#3 0x7f62c3643386 in gf_fs_del filter_core/filter_session.c:771
#4 0x7f62c307e1ba in gf_media_import media_tools/media_import.c:1293
#5 0x555b44f7c3b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#6 0x555b44f4bdb5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#7 0x7f62c0314082 in __libc_start_main ../csu/libc-start.c:308
#8 0x555b44f1fcfd in _start (/home/qianshuidewajueji/gpac/bin/gcc/MP4Box+0xa3cfd)
0x615000013680 is located 0 bytes inside of 512-byte region [0x615000013680,0x615000013880)
freed by thread T0 here:
#0 0x7f62c61abc3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7f62c27ffcf5 in gf_bs_write_data utils/bitstream.c:1059
#2 0x7f62c301bf5e in av1_add_obu_internal media_tools/av_parsers.c:2519
#3 0x7f62c3021918 in aom_av1_parse_temporal_unit_from_section5 media_tools/av_parsers.c:2623
#4 0x7f62c3a74a44 in av1dmx_parse_av1 filters/reframe_av1.c:1006
#5 0x7f62c3a74f81 in av1dmx_process_buffer filters/reframe_av1.c:1084
#6 0x7f62c3a757d5 in av1dmx_process filters/reframe_av1.c:1225
#7 0x7f62c36700ed in gf_filter_process_task filter_core/filter.c:2828
#8 0x7f62c3632082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#9 0x7f62c363e856 in gf_fs_run filter_core/filter_session.c:2120
#10 0x7f62c307c806 in gf_media_import media_tools/media_import.c:1228
#11 0x555b44f7c3b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#12 0x555b44f4bdb5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#13 0x7f62c0314082 in __libc_start_main ../csu/libc-start.c:308
previously allocated by thread T0 here:
#0 0x7f62c61ab808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f62c27f8172 in gf_bs_new utils/bitstream.c:154
#2 0x7f62c301c1a3 in av1_add_obu_internal media_tools/av_parsers.c:2492
#3 0x7f62c3021918 in aom_av1_parse_temporal_unit_from_section5 media_tools/av_parsers.c:2623
#4 0x7f62c3a715e4 in av1dmx_check_format filters/reframe_av1.c:269
#5 0x7f62c3a74e9e in av1dmx_process_buffer filters/reframe_av1.c:1075
#6 0x7f62c3a757d5 in av1dmx_process filters/reframe_av1.c:1225
#7 0x7f62c36700ed in gf_filter_process_task filter_core/filter.c:2828
#8 0x7f62c3632082 in gf_fs_thread_proc filter_core/filter_session.c:1859
#9 0x7f62c363e856 in gf_fs_run filter_core/filter_session.c:2120
#10 0x7f62c307c806 in gf_media_import media_tools/media_import.c:1228
#11 0x555b44f7c3b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#12 0x555b44f4bdb5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#13 0x7f62c0314082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: double-free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122 in __interceptor_free
==23845==ABORTING
```
# Poc
https://github.com/qianshuidewajueji/poc/blob/main/gpac/gf_av1_reset_state_poc | double free in function gf_bs_write_data utils/bitstream.c:1059 | https://api.github.com/repos/gpac/gpac/issues/2394/comments | 1 | 2023-02-09T13:55:11Z | 2023-02-09T13:56:59Z | https://github.com/gpac/gpac/issues/2394 | 1,577,935,604 | 2,394 |
[
"gpac",
"gpac"
] | This is just a question, not a bug report or feature request.
Since mp4box can remux mkv to mp4, so I wonder if it is also possible to remux mp4 to mkv.
I tried the following command, `mp4box -add input.mp4 -new output.mkv`
the extension is shown as mkv but actually outputted as mp4. | Question. Does mp4box support remux mp4 to mkv? | https://api.github.com/repos/gpac/gpac/issues/2393/comments | 5 | 2023-02-08T13:21:48Z | 2023-03-14T16:58:02Z | https://github.com/gpac/gpac/issues/2393 | 1,576,115,831 | 2,393 |
[
"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.
- [**X** ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
**Sorry people. My bad. I thought I had latest copy using “brew”. Have now found your nightly and am retesting. Apologies.**
- [* ] 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. This is on latest macOS (Ventura) with gpac/mp4box installed via home-brew.
I’m needing to create HEIC images from source animation frames and depth buffer produced by Mandelbulber (see attached images) for Apple Object Capture.
For my initial testing I converted the png’s to HEIC using macOS Quick Action —> Convert.
I’m using. …
`mp4box -add-image frame_0000000.heic:primary -add-image frame_0000000_zbuffer.heic:depth:ref=auxl:1 -ab heic -new img.heic`
But get error …
```
No sample found for requested time
Error: Bad Parameter
```
I’m aware that I could make a lossless HEVC video from my source animation frames, one for the colour images and another with the depth buffer frame (just trying to avoid that step to keep things simple).I’m not familiar with HEVC. Would I be able to make lossless video that would retain all the source image data ? Otherwise is it possible to define the use of a still image frame file for mp4box ?


| Generating HEIC from still video sequence frame and depth buffer ? | https://api.github.com/repos/gpac/gpac/issues/2392/comments | 4 | 2023-02-06T14:18:45Z | 2023-08-16T02:42:42Z | https://github.com/gpac/gpac/issues/2392 | 1,572,652,917 | 2,392 |
[
"gpac",
"gpac"
] | git log
commit bbca869177585aaca8eb66d8541079e6f364798e (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Wed Jan 18 11:40:30 2023 +0100
compile setting: ./configure --enable-sanitizer
./MP4Box -info xxx
=================================================================
==2298535==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x606000000839 at pc 0x7ff4a18a8490 bp 0x7ffe6ddf6040 sp 0x7ffe6ddf57e8
READ of size 276 at 0x606000000839 thread T0
#0 0x7ff4a18a848f in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790
#1 0x7ff49f1ffc75 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34
#2 0x7ff49f1ffc75 in mp3_dmx_process filters/reframe_mp3.c:673
#3 0x7ff49eddf14d in gf_filter_process_task filter_core/filter.c:2828
#4 0x7ff49eda10e2 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7ff49edad8b6 in gf_fs_run filter_core/filter_session.c:2120
#6 0x7ff49e7eb8a6 in gf_media_import media_tools/media_import.c:1228
#7 0x5560971a73b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#8 0x556097176db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#9 0x7ff49ba83082 in __libc_start_main ../csu/libc-start.c:308
#10 0x55609714acfd in _start (/home/qianshuidewajueji/gpac/bin/gcc/MP4Box+0xa3cfd)
0x606000000839 is located 0 bytes to the right of 57-byte region [0x606000000800,0x606000000839)
allocated by thread T0 here:
#0 0x7ff4a191ac3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7ff49f2011d8 in mp3_dmx_process filters/reframe_mp3.c:547
#2 0x7ff49eddf14d in gf_filter_process_task filter_core/filter.c:2828
#3 0x7ff49eda10e2 in gf_fs_thread_proc filter_core/filter_session.c:1859
#4 0x7ff49edad8b6 in gf_fs_run filter_core/filter_session.c:2120
#5 0x7ff49e7eb8a6 in gf_media_import media_tools/media_import.c:1228
#6 0x5560971a73b1 in convert_file_info /home/qianshuidewajueji/gpac/applications/mp4box/fileimport.c:130
#7 0x556097176db5 in mp4box_main /home/qianshuidewajueji/gpac/applications/mp4box/mp4box.c:6302
#8 0x7ff49ba83082 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:
0x0c0c7fff80b0: 00 00 00 00 fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c7fff80c0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0c7fff80d0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
0x0c0c7fff80e0: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff80f0: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
=>0x0c0c7fff8100: 00 00 00 00 00 00 00[01]fa fa fa fa 00 00 00 00
0x0c0c7fff8110: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff8120: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0c7fff8130: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
0x0c0c7fff8140: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff8150: fa fa fa fa 00 00 00 00 00 00 00 00 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
==2298535==ABORTING
This vulnerability is capable of crashing software, use unexpected value, or possible code execution.
Occurrences
poc:
[xxx](https://github.com/qianshuidewajueji/poc/blob/main/gpac/xxx) | heap-buffer-overflow in function mp3_dmx_process | https://api.github.com/repos/gpac/gpac/issues/2391/comments | 2 | 2023-02-05T15:13:20Z | 2023-02-10T04:11:10Z | https://github.com/gpac/gpac/issues/2391 | 1,571,472,143 | 2,391 |
[
"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/
My machine
- `Ubuntu 64bit 18.04.6 LTS`
- `memory` 32GB
- `CPU` AMD Ryzen 7 3700x 8-core processor × 16
- `GPU` NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
Also tried with building everything on my own (besides ready build apps) with branches
- `gpac` HEAD detached at v2.2.0
- `ffmpeg` release/5.1
- `local rtsp server` gstreamer (1.20)
I have a local rtsp server streaming from a live camera, I want to re-encode the stream to support tiles in order to drop some of them and stream it again
1st step to see if encoding works:
- gpac -i rtsp://127.0.0.1:1234/live.sdp:gpac:enc:c=libkvazaar:input-res=1920x1080:bitrate=2000000:fintra=1:rc::kvazaar-params=tiles=3x3,slices=tiles,input-fps=30 -o http://localhost:8080/live.m3u8:gpac:dmode=dynamic:rdirs=./
and I can use a media player with no problem (there is a 30sec delay)
2nd step to drop tiles:
- gpac -i rtsp://127.0.0.1:1234/live.sdp:gpac:enc:c=libkvazaar:input-res=1920x1080:bitrate=2000000:fintra=1:rc::kvazaar-params=tiles=3x3,slices=tiles,input-fps=30 tilesplit:tiledrop=1 tileagg -o http://localhost:8080/live.m3u8:gpac:dmode=dynamic:rdirs=./
Get a lot of errors
````
[RTP] Rejecting too early packet (TS -1666837258 vs signaled rtp time 1 - diff 43389 ms)
````
3rd step to drop tiles with the addition of live profile:
- gpac -i rtsp://127.0.0.1:1234/live.sdp:gpac:enc:c=libkvazaar:input-res=1920x1080:bitrate=2000000:fintra=1:rc::kvazaar-params=tiles=3x3,slices=tiles,input-fps=30 tilesplit:tiledrop=1 tileagg -o http://localhost:8080/live.m3u8:gpac:profile=live:dmode=dynamic:rdirs=./
No files are created locally (`live.m3u8` and `media segments`) and nothing is streaming. Just the message on the terminal
````
[Socket] Asked to set socket receive buffer size to 1048576 but system used 425984
```` | Problems droping tiles when using kvazaar | https://api.github.com/repos/gpac/gpac/issues/2390/comments | 2 | 2023-02-03T14:47:26Z | 2024-05-31T14:47:20Z | https://github.com/gpac/gpac/issues/2390 | 1,569,956,547 | 2,390 |
[
"gpac",
"gpac"
] | POC: [poc_hbo01_s.dat](https://github.com/JieyongMa/poc/raw/main/gpac/2023/poc_hbo01_s.dat)
```
Description
Heap Buffer Overflow in function gf_isom_box_size at src/isomedia/box_funcs.c:1997
gpac version
git log
commit bbca869177585aaca8eb66d8541079e6f364798e (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Wed Jan 18 11:40:30 2023 +0100
fixed potentially missing last packets in tsmux
POC
./MP4Box -bt ./poc_hbo01_s.dat
[iso file] Unknown top-level box type 0000
[iso file] Unknown top-level box type 0000
[iso file] Unknown top-level box type 0000
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent mvex
[iso file] Read Box type 0000 (0x30303030) at position 544 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "mvex" (start 488) has 24 extra bytes
[iso file] Unknown box type 0000 in parent minf
[iso file] Unknown box type 0000 in parent minf
[iso file] Unknown box type 0000 in parent stbl
[iso file] Box "sgpd" (start 1154) has 8 extra bytes
[iso file] Missing DataInformationBox
[iso file] Track with no sample description box !
[iso file] Unknown box type 0000 in parent moov
[iso file] Unknown box type 0000 in parent moov
[iso file] Read Box type 0000 (0x30303030) at position 1261 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 351) has 655 extra bytes
[iso file] Unknown top-level box type 0000
[iso file] Unknown top-level box type 0000
[iso file] Unknown box type 0000 in parent moof
[iso file] Unknown box type 0000 in parent traf
[iso file] Box "sbgp" (start 2072) has 8 extra bytes
[iso file] Unknown box type 0000 in parent traf
[iso file] Unknown box type 0000 in parent traf
[iso file] Box "sgpd" (start 2168) has 12 extra bytes
[iso file] Unknown box type VOID in parent traf
[iso file] Read Box type 0000 (0x30303030) at position 2220 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "traf" (start 2028) has 406 extra bytes
[iso file] Unknown box type 0000 in parent moof
[iso file] default sample description set to 808464432 but only 0 sample description(s), likely broken ! Fixing to 1
[iso file] Box sgpd wrote 36 bytes but size is 48
=================================================================
==1805484==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000001640 at pc 0x7ffff1d15327 bp 0x7fffffff2e10 sp 0x7fffffff2e08
READ of size 8 at 0x602000001640 thread T0
#0 0x7ffff1d15326 in gf_isom_box_size /home/fuzz/gpac/src/isomedia/box_funcs.c:1997:9
#1 0x7ffff1ed4247 in gf_isom_is_identical_sgpd /home/fuzz/gpac/src/isomedia/isom_read.c:5865:3
#2 0x7ffff235419a in MergeTrack /home/fuzz/gpac/src/isomedia/track.c:913:11
#3 0x7ffff1d9f8bd in MergeFragment /home/fuzz/gpac/src/isomedia/isom_intern.c:92:7
#4 0x7ffff1dbc1d7 in gf_isom_parse_movie_boxes_internal /home/fuzz/gpac/src/isomedia/isom_intern.c:722:9
#5 0x7ffff1da7ace in gf_isom_parse_movie_boxes /home/fuzz/gpac/src/isomedia/isom_intern.c:868:6
#6 0x7ffff1dc3c43 in gf_isom_open_file /home/fuzz/gpac/src/isomedia/isom_intern.c:988:19
#7 0x7ffff1df57ff in gf_isom_open /home/fuzz/gpac/src/isomedia/isom_read.c:509:11
#8 0x540f28 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6221:12
#9 0x5540c1 in main /home/fuzz/gpac/applications/mp4box/mp4box.c:6846:1
#10 0x7fffee1e1082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
#11 0x42ac7d in _start (/home/fuzz/gpac/bin/gcc/MP4Box+0x42ac7d)
0x602000001640 is located 0 bytes to the right of 16-byte region [0x602000001630,0x602000001640)
allocated by thread T0 here:
#0 0x4a5edd in malloc (/home/fuzz/gpac/bin/gcc/MP4Box+0x4a5edd)
#1 0x7ffff03674e4 in gf_malloc /home/fuzz/gpac/src/utils/alloc.c:150:9
#2 0x7ffff1b28192 in sgpd_parse_entry /home/fuzz/gpac/src/isomedia/box_code_base.c:9994:2
#3 0x7ffff1b1ed19 in sgpd_box_read /home/fuzz/gpac/src/isomedia/box_code_base.c:10259:9
#4 0x7ffff1d1093f in gf_isom_box_read /home/fuzz/gpac/src/isomedia/box_funcs.c:1897:9
#5 0x7ffff1d0b2d6 in gf_isom_box_parse_ex /home/fuzz/gpac/src/isomedia/box_funcs.c:282:14
#6 0x7ffff1d18173 in gf_isom_box_array_read /home/fuzz/gpac/src/isomedia/box_funcs.c:1790:7
#7 0x7ffff1aa4de4 in traf_box_read /home/fuzz/gpac/src/isomedia/box_code_base.c:6363:13
#8 0x7ffff1d1093f in gf_isom_box_read /home/fuzz/gpac/src/isomedia/box_funcs.c:1897:9
#9 0x7ffff1d0b2d6 in gf_isom_box_parse_ex /home/fuzz/gpac/src/isomedia/box_funcs.c:282:14
#10 0x7ffff1d18173 in gf_isom_box_array_read /home/fuzz/gpac/src/isomedia/box_funcs.c:1790:7
#11 0x7ffff1a2723c in moof_box_read /home/fuzz/gpac/src/isomedia/box_code_base.c:3676:9
#12 0x7ffff1d1093f in gf_isom_box_read /home/fuzz/gpac/src/isomedia/box_funcs.c:1897:9
#13 0x7ffff1d0b2d6 in gf_isom_box_parse_ex /home/fuzz/gpac/src/isomedia/box_funcs.c:282:14
#14 0x7ffff1d06ad9 in gf_isom_parse_root_box /home/fuzz/gpac/src/isomedia/box_funcs.c:38:8
#15 0x7ffff1da93a5 in gf_isom_parse_movie_boxes_internal /home/fuzz/gpac/src/isomedia/isom_intern.c:378:7
#16 0x7ffff1da7ace in gf_isom_parse_movie_boxes /home/fuzz/gpac/src/isomedia/isom_intern.c:868:6
#17 0x7ffff1dc3c43 in gf_isom_open_file /home/fuzz/gpac/src/isomedia/isom_intern.c:988:19
#18 0x7ffff1df57ff in gf_isom_open /home/fuzz/gpac/src/isomedia/isom_read.c:509:11
#19 0x540f28 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6221:12
#20 0x5540c1 in main /home/fuzz/gpac/applications/mp4box/mp4box.c:6846:1
#21 0x7fffee1e1082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/fuzz/gpac/src/isomedia/box_funcs.c:1997:9 in gf_isom_box_size
Shadow bytes around the buggy address:
0x0c047fff8270: fa fa 00 00 fa fa 01 fa fa fa 00 00 fa fa 01 fa
0x0c047fff8280: fa fa 00 00 fa fa 01 fa fa fa 00 00 fa fa 00 00
0x0c047fff8290: fa fa 00 00 fa fa 00 00 fa fa 07 fa fa fa 00 00
0x0c047fff82a0: fa fa 00 00 fa fa 00 fa fa fa 00 00 fa fa 00 00
0x0c047fff82b0: fa fa 00 00 fa fa 00 fa fa fa 01 fa fa fa 00 00
=>0x0c047fff82c0: fa fa 00 00 fa fa 00 00[fa]fa 01 fa fa fa 00 00
0x0c047fff82d0: fa fa 01 fa fa fa 00 00 fa fa 01 fa fa fa 00 00
0x0c047fff82e0: fa fa 01 fa fa fa 00 00 fa fa 01 fa fa fa 00 00
0x0c047fff82f0: fa fa 01 fa fa fa 00 00 fa fa 01 fa fa fa 00 00
0x0c047fff8300: fa fa 01 fa fa fa 00 00 fa fa 01 fa fa fa 00 00
0x0c047fff8310: fa fa 01 fa fa fa 00 00 fa fa 01 fa fa fa 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
==1805484==ABORTING
Impact
This vulnerability is capable of crashing software, use unexpected value, or possible code execution.
Occurrences
box_funcs.c L1997
``` | Heap Buffer Overflow in function gf_isom_box_size | https://api.github.com/repos/gpac/gpac/issues/2389/comments | 2 | 2023-02-03T01:53:10Z | 2023-02-09T11:43:09Z | https://github.com/gpac/gpac/issues/2389 | 1,569,071,533 | 2,389 |
[
"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/
## version
```
MP4Box - GPAC version 2.3-DEV-rev35-gbbca86917-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
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
complie and run
```
./configure --enable-sanitizer
make
./MP4Box -info poc
```
information reported by sanitizer
```
=================================================================
==4003817==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000001114 at pc 0x7fa5cde90b3b bp 0x7ffe09c26cd0 sp 0x7ffe09c26cc0
READ of size 1 at 0x603000001114 thread T0
#0 0x7fa5cde90b3a in gf_m2ts_process_sdt media_tools/mpegts.c:828
#1 0x7fa5cde8cb21 in gf_m2ts_section_complete media_tools/mpegts.c:623
#2 0x7fa5cde8ff0b in gf_m2ts_gather_section media_tools/mpegts.c:760
#3 0x7fa5cdeb0db9 in gf_m2ts_process_packet media_tools/mpegts.c:2703
#4 0x7fa5cdeb3125 in gf_m2ts_process_data media_tools/mpegts.c:2812
#5 0x7fa5cdeb8145 in gf_m2ts_probe_buffer media_tools/mpegts.c:3196
#6 0x7fa5cdeb886c in gf_m2ts_probe_data media_tools/mpegts.c:3251
#7 0x7fa5ceb1df9f in m2tsdmx_probe_data filters/dmx_m2ts.c:1438
#8 0x7fa5ce8d92a4 in gf_filter_pid_raw_new filter_core/filter.c:4210
#9 0x7fa5cec2cb68 in filein_process filters/in_file.c:492
#10 0x7fa5ce8c1be4 in gf_filter_process_task filter_core/filter.c:2828
#11 0x7fa5ce86c6d7 in gf_fs_thread_proc filter_core/filter_session.c:1859
#12 0x7fa5ce86fce8 in gf_fs_run filter_core/filter_session.c:2120
#13 0x7fa5cde7b742 in gf_media_import media_tools/media_import.c:1228
#14 0x55d5db4c09ab in convert_file_info /root/gpac/applications/mp4box/fileimport.c:130
#15 0x55d5db47907d in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6302
#16 0x55d5db47bcc0 in main /root/gpac/applications/mp4box/mp4box.c:6846
#17 0x7fa5c8e02082 in __libc_start_main ../csu/libc-start.c:308
#18 0x55d5db439b6d in _start (/root/gpac/bin/gcc/MP4Box+0x104b6d)
Address 0x603000001114 is a wild pointer.
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/mpegts.c:828 in gf_m2ts_process_sdt
Shadow bytes around the buggy address:
0x0c067fff81d0: 00 00 00 fa fa fa 00 00 00 00 fa fa 00 00 00 fa
0x0c067fff81e0: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd
0x0c067fff81f0: fd fa fa fa 00 00 01 fa fa fa fd fd fd fa fa fa
0x0c067fff8200: 00 00 00 03 fa fa 00 00 00 03 fa fa 00 00 00 00
0x0c067fff8210: fa fa 00 00 04 fa fa fa 00 00 01 fa fa fa fa fa
=>0x0c067fff8220: fa fa[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8230: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8250: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8260: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8270: 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
==4003817==ABORTING
```
## poc
https://github.com/xxy1126/Vuln/blob/main/gpac/3 | Heap-buffer-overflow in function gf_m2ts_process_sdt of media_tools/mpegts.c:828 | https://api.github.com/repos/gpac/gpac/issues/2388/comments | 2 | 2023-02-02T14:57:17Z | 2023-03-21T04:19:07Z | https://github.com/gpac/gpac/issues/2388 | 1,568,208,539 | 2,388 |
[
"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/
## version
```
MP4Box - GPAC version 2.3-DEV-rev35-gbbca86917-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
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
complie and run
```
./configure --enable-sanitizer
make
./MP4Box -info poc
```
information reported by sanitizer
```
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] unknown OBU type 12 (size 100). Skipping.
[AV1] computed OBU size -1 (input value = 0). Skipping.
=================================================================
==4000990==ERROR: AddressSanitizer: attempting double-free on 0x615000013400 in thread T0:
#0 0x7fe4a288c40f in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122
#1 0x7fe49b5abbd9 in gf_free utils/alloc.c:165
#2 0x7fe49c378e6f in gf_av1_reset_state media_tools/av_parsers.c:4024
#3 0x7fe49d61b5db in av1dmx_finalize filters/reframe_av1.c:1246
#4 0x7fe49ce06b63 in gf_fs_del filter_core/filter_session.c:771
#5 0x7fe49c42688d in gf_media_import media_tools/media_import.c:1293
#6 0x55a5ca2469ab in convert_file_info /root/gpac/applications/mp4box/fileimport.c:130
#7 0x55a5ca1ff07d in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6302
#8 0x55a5ca201cc0 in main /root/gpac/applications/mp4box/mp4box.c:6846
#9 0x7fe4973ab082 in __libc_start_main ../csu/libc-start.c:308
#10 0x55a5ca1bfb6d in _start (/root/gpac/bin/gcc/MP4Box+0x104b6d)
0x615000013400 is located 0 bytes inside of 512-byte region [0x615000013400,0x615000013600)
freed by thread T0 here:
#0 0x7fe4a288cc3e in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:163
#1 0x7fe49b5abbbb in gf_realloc utils/alloc.c:160
#2 0x7fe49b58ae0e in gf_bs_write_data utils/bitstream.c:1059
#3 0x7fe49c3667af in av1_add_obu_internal media_tools/av_parsers.c:2519
#4 0x7fe49c36785c in av1_populate_state_from_obu media_tools/av_parsers.c:2596
#5 0x7fe49c367d8f in aom_av1_parse_temporal_unit_from_section5 media_tools/av_parsers.c:2623
#6 0x7fe49d616bd4 in av1dmx_parse_av1 filters/reframe_av1.c:1006
#7 0x7fe49d6179ee in av1dmx_process_buffer filters/reframe_av1.c:1084
#8 0x7fe49d61b0ff in av1dmx_process filters/reframe_av1.c:1225
#9 0x7fe49ce6abe4 in gf_filter_process_task filter_core/filter.c:2828
#10 0x7fe49ce156d7 in gf_fs_thread_proc filter_core/filter_session.c:1859
#11 0x7fe49ce18ce8 in gf_fs_run filter_core/filter_session.c:2120
#12 0x7fe49c424742 in gf_media_import media_tools/media_import.c:1228
#13 0x55a5ca2469ab in convert_file_info /root/gpac/applications/mp4box/fileimport.c:130
#14 0x55a5ca1ff07d in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6302
#15 0x55a5ca201cc0 in main /root/gpac/applications/mp4box/mp4box.c:6846
#16 0x7fe4973ab082 in __libc_start_main ../csu/libc-start.c:308
previously allocated by thread T0 here:
#0 0x7fe4a288c808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7fe49b5abb69 in gf_malloc utils/alloc.c:150
#2 0x7fe49b57ab5d in gf_bs_new utils/bitstream.c:154
#3 0x7fe49c3661b6 in av1_add_obu_internal media_tools/av_parsers.c:2492
#4 0x7fe49c36785c in av1_populate_state_from_obu media_tools/av_parsers.c:2596
#5 0x7fe49c367d8f in aom_av1_parse_temporal_unit_from_section5 media_tools/av_parsers.c:2623
#6 0x7fe49d606a79 in av1dmx_check_format filters/reframe_av1.c:269
#7 0x7fe49d617838 in av1dmx_process_buffer filters/reframe_av1.c:1075
#8 0x7fe49d61b0ff in av1dmx_process filters/reframe_av1.c:1225
#9 0x7fe49ce6abe4 in gf_filter_process_task filter_core/filter.c:2828
#10 0x7fe49ce156d7 in gf_fs_thread_proc filter_core/filter_session.c:1859
#11 0x7fe49ce18ce8 in gf_fs_run filter_core/filter_session.c:2120
#12 0x7fe49c424742 in gf_media_import media_tools/media_import.c:1228
#13 0x55a5ca2469ab in convert_file_info /root/gpac/applications/mp4box/fileimport.c:130
#14 0x55a5ca1ff07d in mp4box_main /root/gpac/applications/mp4box/mp4box.c:6302
#15 0x55a5ca201cc0 in main /root/gpac/applications/mp4box/mp4box.c:6846
#16 0x7fe4973ab082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: double-free ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:122 in __interceptor_free
==4000990==ABORTING
```
## poc
https://github.com/xxy1126/Vuln/blob/main/gpac/2 | Double free in gf_av1_reset_state media_tools/av_parsers.c:4024 | https://api.github.com/repos/gpac/gpac/issues/2387/comments | 2 | 2023-02-02T10:24:45Z | 2023-03-21T04:26:10Z | https://github.com/gpac/gpac/issues/2387 | 1,567,763,524 | 2,387 |
[
"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/
## version
```
MP4Box - GPAC version 2.3-DEV-rev35-gbbca86917-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
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
## reproduce
complie and run
```
./configure --enable-sanitizer
make
./MP4Box -info poc
```
information
```
filters/load_text.c:353:14: runtime error: index 2048 out of bounds for type 'char [2048]'
```
## poc
https://github.com/xxy1126/Vuln/blob/main/gpac/1.mp4
| Buffer overflow in filters/load_text.c:353:14 | https://api.github.com/repos/gpac/gpac/issues/2386/comments | 2 | 2023-02-02T09:53:52Z | 2023-03-21T04:44:47Z | https://github.com/gpac/gpac/issues/2386 | 1,567,701,993 | 2,386 |
[
"gpac",
"gpac"
] | [POC](https://github.com/Janette88/test_pocs/blob/main/poc2_hbo)
```
Description
heap-buffer-overflow in gf_isom_box_write_header at isomedia/box_funcs.c:408.
version info
git log
commit 68064e10172675e0853d6f429fb2055112835602 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Fri Nov 18 10:36:10 2022 +0100
fixed build without http2 support
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-revUNKNOWN-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Proof of Concept
./MP4Box -hint poc2_hbo
[iso file] Unknown top-level box type freN
[iso file] Unknown box type FFFFFF80 in parent schi
[iso file] Unknown box type 00000004 in parent moov
[iso file] Read Box type 00000200 (0x00000200) at position 1213 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 351) has 703 extra bytes
[iso file] Unknown top-level box type s7Fyp
[iso file] Box "sbgp" (start 2072) has 8 extra bytes
[iso file] Read Box type 00000000 (0x00000000) at position 2168 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "traf" (start 2028) has 458 extra bytes
[iso file] Unknown box type sdBp in parent traf
[iso file] Unknown box type shgp in parent traf
[iso file] senc box without tenc, assuming MS smooth+piff
[iso file] Box "uuid" (start 3475) has 58 extra bytes
[iso file] Box "uuid" (start 3565) has 58 extra bytes
[iso file] Read Box type 00000000 (0x00000000) at position 3655 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "trgr" (start 3467) has 233 extra bytes
Hinting track ID 1 - Type "encv:encv" (mpeg4-generic) - BW 0 kbps
Saving /home/fuzz/test/poc1_huaf: 0.500 secs Interleaving
=================================================================
==7021==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x604000000744 at pc 0x7f434982526d bp 0x7ffd16e63e00 sp 0x7ffd16e63df0
READ of size 4 at 0x604000000744 thread T0
#0 0x7f434982526c in gf_isom_box_write_header isomedia/box_funcs.c:408
#1 0x7f43498252bc in gf_isom_full_box_write isomedia/box_funcs.c:455
#2 0x7f43497bfa10 in trgt_box_write isomedia/box_code_base.c:10667
#3 0x7f43498292f4 in gf_isom_box_write_listing isomedia/box_funcs.c:1880
#4 0x7f43498292f4 in gf_isom_box_write isomedia/box_funcs.c:1930
#5 0x7f43498296a5 in gf_isom_box_array_write isomedia/box_funcs.c:472
#6 0x7f43498296a5 in gf_isom_box_array_write isomedia/box_funcs.c:463
#7 0x7f4349829337 in gf_isom_box_write isomedia/box_funcs.c:1933
#8 0x7f43498aafda in WriteInterleaved isomedia/isom_store.c:1962
#9 0x7f43498ac497 in WriteToFile isomedia/isom_store.c:2554
#10 0x7f4349864af7 in gf_isom_write isomedia/isom_read.c:611
#11 0x7f43498652e8 in gf_isom_close isomedia/isom_read.c:635
#12 0x55ad1dde719c in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6779
#13 0x7f4346dbc082 in __libc_start_main ../csu/libc-start.c:308
#14 0x55ad1ddc0cbd in _start (/home/fuzz/gpac/bin/gcc/MP4Box+0xa3cbd)
0x604000000744 is located 4 bytes to the right of 48-byte region [0x604000000710,0x604000000740)
allocated by thread T0 here:
#0 0x7f434cbe1808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f43497bf781 in trgt_box_new isomedia/box_code_base.c:10639
#2 0x7f434982637f in gf_isom_box_new_ex isomedia/box_funcs.c:1726
#3 0x7f434982637f in gf_isom_box_new isomedia/box_funcs.c:1749
#4 0x7f4349826c31 in gf_isom_box_parse_ex isomedia/box_funcs.c:237
#5 0x7f434982b9aa in gf_isom_box_array_read isomedia/box_funcs.c:1761
#6 0x7f4349826e33 in gf_isom_box_read isomedia/box_funcs.c:1868
#7 0x7f4349826e33 in gf_isom_box_parse_ex isomedia/box_funcs.c:271
#8 0x7f4349828285 in gf_isom_parse_root_box isomedia/box_funcs.c:38
#9 0x7f434985130c in gf_isom_parse_movie_boxes_internal isomedia/isom_intern.c:378
#10 0x7f4349857571 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:868
#11 0x7f4349857571 in gf_isom_open_file isomedia/isom_intern.c:988
#12 0x55ad1dde5139 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6209
#13 0x7f4346dbc082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/box_funcs.c:408 in gf_isom_box_write_header
Shadow bytes around the buggy address:
0x0c087fff8090: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff80a0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff80b0: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 00
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 00 00 00 00 00 00
=>0x0c087fff80e0: fa fa 00 00 00 00 00 00[fa]fa 00 00 00 00 00 00
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 fa
0x0c087fff8110: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8120: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8130: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd 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
==7021==ABORTING
Impact
This vulnerabilities are capable of crashing software, Modify Memory, and possible remote execution.
``` | heap-buffer-overflow in gf_isom_box_write_header | https://api.github.com/repos/gpac/gpac/issues/2385/comments | 1 | 2023-02-01T14:31:00Z | 2023-02-01T14:32:52Z | https://github.com/gpac/gpac/issues/2385 | 1,566,221,232 | 2,385 |
[
"gpac",
"gpac"
] | [POC](https://github.com/Janette88/test_pocs/blob/main/sbo2)
```
Description
Stack-Based Buffer Overflow in gf_sg_proto_field_is_sftime_offset at vrml_proto.c:1295.
version
git log
commit 05eaac875354682942b70c790bcd62cb5f4cc825 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: Jean Le Feuvre <jeanlf@gpac.io>
Date: Mon Nov 14 18:07:45 2022 +0100
fixed msvc warnings
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-revUNKNOWN-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
reference: possible root cause
1) recursive call
code1:gf_node_get_field scenegraph/base_scenegraph.c:2043
GF_Err gf_node_get_field(GF_Node *node, u32 FieldIndex, GF_FieldInfo *info)
{
assert(node);
assert(info);
memset(info, 0, sizeof(GF_FieldInfo)); //here sizeof(GF_FieldInfo)=0x28
info->fieldIndex = FieldIndex;
if (node->sgprivate->tag==TAG_UndefinedNode) return GF_BAD_PARAM;
#ifndef GPAC_DISABLE_VRML
else if (node->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_get_field(NULL, node, info);
else if (node->sgprivate->tag == TAG_MPEG4_Script)
return gf_sg_script_get_field(node, info);
code 2:gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1293
Bool gf_sg_proto_field_is_sftime_offset(GF_Node *node, GF_FieldInfo *field)
{
u32 i;
GF_Route *r;
GF_ProtoInstance *inst;
GF_FieldInfo inf;
if (node->sgprivate->tag != TAG_ProtoNode) return 0;
if (field->fieldType != GF_SG_VRML_SFTIME) return 0;
inst = (GF_ProtoInstance *) node;
/*check in interface if this is ISed */
i=0;
while ((r = (GF_Route*)gf_list_enum(inst->proto_interface->sub_graph->Routes, &i))) {
if (!r->IS_route) continue;
/*only check eventIn/field/exposedField*/
if (r->FromNode || (r->FromField.fieldIndex != field->fieldIndex)) continue;
gf_node_get_field(r->ToNode, r->ToField.fieldIndex, &inf); // 0x100
/*IS to another proto*/
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf); // Recursive call triggered SIGSEGV
/*IS to a startTime/stopTime field*/
if (!stricmp(inf.name, "startTime") || !stricmp(inf.name, "stopTime")) return 1;
}
return 0;
}
2、
when stack size of programe stack is too small , it triggered stack overflow and caused segmentation fault (core dumped).
Hope it's helpful for fix it.
POC:
./MP4Box -bt sbo2
[iso file] Unknown box type dCCf in parent minf
[iso file] Missing DataInformationBox
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[ODF] Descriptor size on more than 4 bytes
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type dCCf in parent minf
[iso file] Missing DataInformationBox
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[ODF] Descriptor size on more than 4 bytes
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (invalid descriptor)
AddressSanitizer:DEADLYSIGNAL
=================================================================
==6667==ERROR: AddressSanitizer: stack-overflow on address 0x7fff20958f18 (pc 0x7efda5e75e49 bp 0x7fff209597a0 sp 0x7fff20958f20 T0)
#0 0x7efda5e75e48 in __interceptor_memset ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:762
#1 0x7efda26e7f7a in memset /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71
#2 0x7efda26e7f7a in gf_node_get_field scenegraph/base_scenegraph.c:2043
#3 0x7efda2858b22 in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1293
#4 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#5 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#6 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#7 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#8 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#9 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#10 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#11 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#12 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#13 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#14 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#15 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#16 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#17 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#18 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#19 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#20 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#21 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#22 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#23 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#24 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#25 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#26 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#27 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#28 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#29 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#30 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#31 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#32 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#33 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#34 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#35 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#36 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#37 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#38 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#39 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#40 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#41 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#42 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#43 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#44 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#45 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#46 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#47 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#48 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#49 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#50 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#51 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#52 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#53 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#54 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#55 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#56 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#57 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#58 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#59 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#60 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#61 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#62 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#63 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#64 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#65 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#66 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#67 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#68 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#69 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#70 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#71 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#72 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#73 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#74 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#75 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#76 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#77 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#78 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#79 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#80 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#81 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#82 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#83 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#84 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#85 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#86 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#87 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#88 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#89 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#90 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#91 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#92 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#93 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#94 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#95 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#96 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#97 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#98 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#99 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#100 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#101 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#102 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#103 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#104 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#105 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#106 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#107 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#108 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#109 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#110 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#111 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#112 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#113 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#114 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#115 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#116 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#117 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#118 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#119 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#120 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#121 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#122 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#123 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#124 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#125 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#126 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#127 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#128 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#129 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#130 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#131 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#132 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#133 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#134 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#135 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#136 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#137 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#138 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#139 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#140 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#141 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#142 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#143 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#144 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#145 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#146 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#147 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#148 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#149 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#150 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#151 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#152 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#153 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#154 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#155 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#156 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#157 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#158 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#159 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#160 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#161 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#162 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#163 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#164 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#165 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#166 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#167 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#168 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#169 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#170 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#171 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#172 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#173 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#174 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#175 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#176 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#177 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#178 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#179 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#180 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#181 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#182 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#183 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#184 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#185 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#186 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#187 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#188 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#189 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#190 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#191 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#192 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#193 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#194 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#195 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#196 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#197 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#198 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#199 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#200 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#201 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#202 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#203 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#204 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#205 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#206 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#207 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#208 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#209 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#210 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#211 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#212 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#213 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#214 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#215 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#216 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#217 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#218 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#219 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#220 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#221 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#222 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#223 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#224 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#225 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#226 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#227 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#228 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#229 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#230 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#231 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#232 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#233 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#234 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#235 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#236 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#237 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#238 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#239 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#240 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#241 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#242 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#243 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#244 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#245 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#246 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#247 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#248 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#249 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
SUMMARY: AddressSanitizer: stack-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:762 in __interceptor_memset
==6667==ABORTING
Impact
This is capable of causing crashes and allowing modification of stack memory which could lead to remote code execution.
``` | Stack-Based Buffer Overflow in gf_sg_proto_field_is_sftime_offset | https://api.github.com/repos/gpac/gpac/issues/2384/comments | 2 | 2023-02-01T14:30:24Z | 2023-02-01T14:32:49Z | https://github.com/gpac/gpac/issues/2384 | 1,566,220,238 | 2,384 |
[
"gpac",
"gpac"
] | Potential memory leak in [ff_mx.c](https://github.com/gpac/gpac/blob/master/src/filters/ff_mx.c#L373) line 373. Calling av_dict_copy() without calling av_dict_free() to free the memory will cause a memory leak.[Doc](https://ffmpeg.org/doxygen/trunk/group__lavu__dict.html#ga1bafd682b1fbb90e48a4cc3814b820f7) says "av_dict_free() Free all the memory allocated for an [AVDictionary](https://ffmpeg.org/doxygen/trunk/structAVDictionary.html) struct and all keys and values."

| Potential memory leak in src/filters/ff_mx.c | https://api.github.com/repos/gpac/gpac/issues/2383/comments | 4 | 2023-01-26T05:09:03Z | 2023-05-10T12:47:32Z | https://github.com/gpac/gpac/issues/2383 | 1,557,638,001 | 2,383 |
[
"gpac",
"gpac"
] | Potential memory leak in [ff_dmx.c](https://github.com/gpac/gpac/blob/master/src/filters/ff_dmx.c) line 1728 and 1736. Calling av_dict_set() without calling av_dict_free() to free the memory will cause a memory leak. [Doc](https://ffmpeg.org/doxygen/trunk/group__lavu__dict.html#ga1bafd682b1fbb90e48a4cc3814b820f7) says "av_dict_free() Free all the memory allocated for an [AVDictionary](https://ffmpeg.org/doxygen/trunk/structAVDictionary.html) struct and all keys and values."

| Potential memory leak in src/filters/ff_dmx.c | https://api.github.com/repos/gpac/gpac/issues/2382/comments | 1 | 2023-01-25T08:54:04Z | 2023-02-07T15:11:02Z | https://github.com/gpac/gpac/issues/2382 | 1,556,271,727 | 2,382 |
[
"gpac",
"gpac"
] | The audio duration seems to change when remuxing an MKV file to MP4.
[Sample](https://github.com/gpac/gpac/files/10442010/minisample.zip) (borrowed from gpac/gpac#2380).
Tested with gpac bbca869177585aaca8eb66d8541079e6f364798e on macOS 12.6.2
Command: `MP4Box -new -brand mp42 -ab dby1 -add minisample.mkv minisample.mp4`
MKV MediaInfo (audio):
```
Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 9 s 120 ms
Bit rate mode : Constant
Bit rate : 768 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 16 ms
Stream size : 855 KiB (5%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
```
MP4 Mediainfo (audio):
```
Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : ec-3
Duration : 10 s 607 ms
Source duration : 10 s 592 ms
Source_Duration_LastFrame : 1 s 504 ms
Bit rate mode : Constant
Bit rate : 768 kb/s
Maximum bit rate : 811 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 993 KiB (6%)
Source stream size : 852 KiB (5%)
Title : mkv@GPAC2.3-DEV-rev35-gbbca86917-master
Language : English
Service kind : Complete Main
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-20 11:34:32
Tagged date : UTC 2023-01-20 11:34:32
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
```
There's also a slight change in the video duration:
MKV Mediainfo (video):
```
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 9 s 125 ms
Bit rate : 14.2 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.071
Stream size : 15.4 MiB (95%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 756 cd/m2
Maximum Frame-Average Light Level : 115 cd/m2
```
MP4 Mediainfo (video):
```
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 9 s 123 ms
Source duration : 9 s 121 ms
Bit rate : 14.2 Mb/s
Maximum bit rate : 19.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 24.000 FPS
Minimum frame rate : 23.810 FPS
Maximum frame rate : 24.390 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.071
Stream size : 15.4 MiB (95%)
Source stream size : 15.4 MiB (95%)
Title : mkv@GPAC2.3-DEV-rev35-gbbca86917-master
Language : English
Encoded date : UTC 2023-01-20 11:34:32
Tagged date : UTC 2023-01-20 11:34:32
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 756 cd/m2
Maximum Frame-Average Light Level : 115 cd/m2
mdhd_Duration : 9205
Codec configuration box : hvcC+dvvC
``` | Track duration changes when remuxing from mkv to mp4 | https://api.github.com/repos/gpac/gpac/issues/2381/comments | 35 | 2023-01-20T11:50:37Z | 2023-03-15T11:21:17Z | https://github.com/gpac/gpac/issues/2381 | 1,550,727,145 | 2,381 |
[
"gpac",
"gpac"
] | This phenomenon is bizarre. If you look directly at the attachment you will know what I am talking about. I used the latest nightly build `MP4Box - GPAC version 2.3-DEV-rev31-g9971fb125-master` , and this is the footage I used for testing.
[minisample.zip](https://github.com/gpac/gpac/files/10442010/minisample.zip)
And this is information output through the MediaInfo tool.
[minisample_MediaInfo.zip](https://github.com/gpac/gpac/files/10442045/minisample_MediaInfo.zip)
As you can see, the bitrate descriptions for video and audio seem to be interchanged. And the Dolby Vision metadata is also gone. | When remuxing mkv to mp4, the Dolby Vision metadata is stripped and the video and audio metadata are mixed together. | https://api.github.com/repos/gpac/gpac/issues/2380/comments | 1 | 2023-01-18T04:13:05Z | 2023-03-10T18:06:06Z | https://github.com/gpac/gpac/issues/2380 | 1,537,375,899 | 2,380 |
[
"gpac",
"gpac"
] | Currently I have been using tileagg to aggregate the input Tiled DASH stream into a single video output. I further need to carry on some processing on each of the frame observed. However i need to do this segment wise. So is there a way to aggregate each segment of the incoming DASH stream separately? Say an .mpd file with 3 segments of 2s should produce 3 HEVC streams instead of one 6 sec stream. | Filter to aggregate with respect to segments | https://api.github.com/repos/gpac/gpac/issues/2379/comments | 2 | 2023-01-17T17:56:47Z | 2023-01-17T22:21:29Z | https://github.com/gpac/gpac/issues/2379 | 1,536,802,903 | 2,379 |
[
"gpac",
"gpac"
] | [POC file](https://drive.google.com/file/d/1mu5w0PGKZ-7TMd5j0zM03gpIVjEMjK5p/view?usp=sharing)
```
Description
heap-use-after-free in gf_odf_vvc_cfg_read_bs at odf/descriptors.c:1403
Version
./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev23-g5a733aec7-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
same POC can also trigger heap-use-after-free (as of 17 Jan 2023):
./MP4Box -version
MP4Box - GPAC version 2.3-DEV-rev27-g5195ad4e2-master
(c) 2000-2023 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Proof of Concept
./MP4Box -hint POC
[iso file] Unknown top-level box type freN
[VVC] Invalid NALU type in vvcC - ignoring
=================================================================
==3978220==ERROR: AddressSanitizer: heap-use-after-free on address 0x6020000013d0 at pc 0x7f31abf6419f bp 0x7fff5dfe20c0 sp 0x7fff5dfe20b0
READ of size 1 at 0x6020000013d0 thread T0
#0 0x7f31abf6419e in gf_odf_vvc_cfg_read_bs odf/descriptors.c:1403
#1 0x7f31abaf001c in vvcc_box_read isomedia/avc_ext.c:3085
#2 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#3 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#4 0x7f31abb5f774 in video_sample_entry_box_read isomedia/box_code_base.c:4354
#5 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#6 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#7 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#8 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#9 0x7f31abb6daad in stbl_box_read isomedia/box_code_base.c:5115
#10 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#11 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#12 0x7f31abb4e2ea in minf_box_read isomedia/box_code_base.c:3583
#13 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#14 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#15 0x7f31abb47884 in mdia_box_read isomedia/box_code_base.c:3134
#16 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#17 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#18 0x7f31abb8b0fa in trak_box_read isomedia/box_code_base.c:6907
#19 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#20 0x7f31abc8cc46 in gf_isom_box_array_read isomedia/box_funcs.c:1790
#21 0x7f31abc8188e in gf_isom_box_parse_ex isomedia/box_funcs.c:282
#22 0x7f31abc85924 in gf_isom_parse_root_box isomedia/box_funcs.c:38
#23 0x7f31abcc3217 in gf_isom_parse_movie_boxes_internal isomedia/isom_intern.c:378
#24 0x7f31abcc3217 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:868
#25 0x7f31abccde34 in gf_isom_open_file isomedia/isom_intern.c:988
#26 0x556d29130472 in mp4box_main /home/limweicheng/Desktop/Fuzz/gpac/applications/mp4box/mp4box.c:6221
#27 0x7f31aa6cfd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#28 0x7f31aa6cfe3f in __libc_start_main_impl ../csu/libc-start.c:392
#29 0x556d290cb244 in _start (/home/limweicheng/Desktop/Fuzz/gpac/bin/gcc/MP4Box+0x50244)
0x6020000013d0 is located 0 bytes inside of 16-byte region [0x6020000013d0,0x6020000013e0)
freed by thread T0 here:
#0 0x7f31ae2b8517 in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:127
#1 0x7f31abf6282f in gf_odf_vvc_cfg_read_bs odf/descriptors.c:1399
previously allocated by thread T0 here:
#0 0x7f31ae2b8867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f31abf625f9 in gf_odf_vvc_cfg_read_bs odf/descriptors.c:1375
SUMMARY: AddressSanitizer: heap-use-after-free odf/descriptors.c:1403 in gf_odf_vvc_cfg_read_bs
Shadow bytes around the buggy address:
0x0c047fff8220: fa fa 04 fa fa fa 00 04 fa fa 00 00 fa fa 00 00
0x0c047fff8230: fa fa fd fd fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8240: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8250: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff8260: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8270: fa fa 00 00 fa fa 00 00 fa fa[fd]fd fa fa fa fa
0x0c047fff8280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8290: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff82a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff82b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff82c0: 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
==3978220==ABORTING
Impact
This is capable of causing crashes by using unexpected value, or possible code execution.
Occurrences
descriptors.c L1446
``` | heap-use-after-free in gf_odf_vvc_cfg_read_bs | https://api.github.com/repos/gpac/gpac/issues/2378/comments | 0 | 2023-01-17T12:40:01Z | 2023-01-17T22:27:31Z | https://github.com/gpac/gpac/issues/2378 | 1,536,315,565 | 2,378 |
[
"gpac",
"gpac"
] | sidx timeline does not match presentation timeline
see file:
https://www.mediafire.com/file/vj3u4n6wwa7hh6p/24-AV1_HDR_UHDTV1-ClosedGOP-1920x1080_60fps-PQ10-60s_r2.mp4/file
[sidx] size=12+164
reference_ID = 1
timescale = 25000
earliest_presentation_time = 0
first_offset = 0
entry 0000 = reference_type=0, referenced_size=3613617, subsegment_duration=299000, starts_with_SAP=1, SAP_type=1, SAP_delta_time=0
entry 0001 = reference_type=0, referenced_size=3079730, subsegment_duration=300000, starts_with_SAP=1, SAP_type=1, SAP_delta_time=0
entry 0002 = reference_type=0, referenced_size=3011123, subsegment_duration=300000, starts_with_SAP=1, SAP_type=1, SAP_delta_time=0
[moof] size=8+2480
[mfhd] size=12+4
sequence number = 1
[traf] size=8+2456
[tfhd] size=12+4, flags=20000
track ID = 1
[tfdt] size=12+4
base media decode time = 0
[moof] size=8+1284
[mfhd] size=12+4
sequence number = 2
[traf] size=8+1260
[tfhd] size=12+8, flags=20008
track ID = 1
default sample duration = 1000
[tfdt] size=12+4
base media decode time = 300000
| sidx presentation times and tfdt times and actual presentation times do not match | https://api.github.com/repos/gpac/gpac/issues/2377/comments | 3 | 2023-01-17T09:32:47Z | 2023-03-08T10:39:24Z | https://github.com/gpac/gpac/issues/2377 | 1,536,054,636 | 2,377 |
[
"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 am using gpac python as the DASH client. Is there a way I can know the frame arrival rate or the timestamp for receiving each frame? | https://api.github.com/repos/gpac/gpac/issues/2376/comments | 1 | 2023-01-16T19:52:21Z | 2023-01-17T22:39:17Z | https://github.com/gpac/gpac/issues/2376 | 1,535,417,481 | 2,376 |
[
"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 am using gpac python for dash client. Can someone tell me, how to access the playout buffer levels? | https://api.github.com/repos/gpac/gpac/issues/2375/comments | 1 | 2023-01-16T03:30:36Z | 2023-01-16T15:36:00Z | https://github.com/gpac/gpac/issues/2375 | 1,534,220,760 | 2,375 |
[
"gpac",
"gpac"
] | Hello, i want to use the very nice feature of generating dynamic playlists with gpac.
i am using the latest version of gpac under `Ubuntu 20.04.4 LTS x86_64`
`gpac - GPAC command line filter engine - version 2.3-DEV-rev23-g5a733aec-master`
i tried the command:
`gpac -i pl.m3u:floop=-1 -o /var/www/html/stream/hls/live.m3u8:dmode=dynamic:sreg -logs=media@debug`
an nginx rtmp server is serving the stream and everything works fine. it is the same for `hls` and `dash` .
basic playlist content:
```
out-01.mp4
out-02.mp4
out-03.mp4
out-05.mp4
```
i am expecting that the stream is looping over all files until the playlist gets updated. but as you can see after the first play-through it just loops over the first 2 entries.
```shell
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-03.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-05.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
```
on the other hand `flist` with `floop` works just as expected.
`gpac flist:srcs=out-01.mp4,out-02.mp4,out-03.mp4:floop=-1 -o /var/www/html/stream/hls/live.m3u8:dmode=dynamic:sreg -logs=media@debug`
```shell
[FileList] Adding file out-01.mp4 size 137244 mod time 1673731980049095 to list
[FileList] Adding file out-02.mp4 size 135774 mod time 1673731988601251 to list
[FileList] Adding file out-03.mp4 size 137733 mod time 1673731994165352 to list
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-03.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-03.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-01.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching.
[FileList] Switching to file out-02.mp4
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:4968
Probing mp3 score:1 size:4968
[isom/avcc] Missing REXT profile signaling, patching
```
thanks for any hints how i can achieve the same output with dynamic playlists. | playlist floop just loops over first 2 entries | https://api.github.com/repos/gpac/gpac/issues/2374/comments | 1 | 2023-01-15T08:03:34Z | 2023-01-16T09:21:16Z | https://github.com/gpac/gpac/issues/2374 | 1,533,709,605 | 2,374 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [v] I looked for a similar issue and couldn't find any.
- [v] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [v] 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
Problem 1:
When multiplexing Dolby Vision profile 5 with netflix, I encountered a problem that mp4box does not multiplex the video file correctly
Command:
- mp4box -brand mp42isom -ab dby1 -no-iod --xps_inband=all -add G:\dv.hevc -add G:\1.eac3:lang=en:name=Original -add G:\eng1.srt:disable:lang=en:name=full -add G:\eng2.srt:disable:lang=en:name=SDH -new G:\dv5full.mp4
Original file:
- Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 21 min
Bit rate : 18.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.094
Stream size : 18.4 GiB (96%)
Default : Yes
Forced : No
Color range : Full
Received file:
- Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, SDR compatible
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 2 h 21 min
Bit rate : 18.6 Mb/s
Maximum bit rate : 41.8 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.094
Stream size : 18.4 GiB (96%)
Title : hevc@GPAC2.3-DEV-rev23-g5a733aec-master
Encoded date : UTC 2023-01-14 20:52:52
Tagged date : UTC 2023-01-14 20:56:21
Color range : Limited
colour_range_Original : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 8461125
Codec configuration box : hvcC+dvvC
Problem 2:
Since when multiplexing, an incorrect file is immediately obtained, according to the info file, I initially use mp4muxer https://github.com/DolbyLaboratories/dlb_mp4base
Command:
mp4muxer -i G:\dv.hevc --media-lang eng -o G:\dv5.mp4 --dv-profile 5
mp4box -brand mp42isom -ab dby1 -no-iod --xps_inband=all -add G:\dv5.mp4 -add G:\1.eac3:lang=en:name=Original -add G:\eng1.srt:disable:lang=en:name=full -add G:\eng2.srt:disable:lang=en:name=SDH -new G:\dv5full.mp4,
Info file of received file:
General
Complete name : G:\dv5full.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42/dby1)
File size : 19.1 GiB
Duration : 2 h 21 min
Overall bit rate mode : Variable
Overall bit rate : 19.4 Mb/s
Encoded date : UTC 2023-01-14 22:10:56
Tagged date : UTC 2023-01-14 22:10:56
Writing application : GPAC-2.3-DEV-rev23-g5a733aec-master
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 2 h 21 min
Bit rate : 18.6 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.094
Stream size : 18.4 GiB (96%)
Language : English
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-14 21:37:51
Tagged date : UTC 2023-01-14 22:15:20
Color range : Full
mdhd_Duration : 8461125
Codec configuration box : hvcC+dvcC
Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : ec-3
Duration : 2 h 21 min
Bit rate mode : Constant
Bit rate : 768 kb/s
Maximum bit rate : 811 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 775 MiB (4%)
Title : Original
Language : English
Service kind : Complete Main
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-14 22:15:12
Tagged date : UTC 2023-01-14 22:15:20
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
Text #1
ID : 3
Format : Timed Text
Codec ID : tx3g
Duration : 2 h 10 min
Bit rate mode : Variable
Bit rate : 87 b/s
Frame rate : 0.524 FPS
Stream size : 83.3 KiB (0%)
Title : full
Language : English
Default : No
Forced : No
Encoded date : UTC 2023-01-14 22:15:20
Tagged date : UTC 2023-01-14 22:15:20
Text #2
ID : 4
Format : Timed Text
Codec ID : tx3g
Duration : 2 h 13 min
Bit rate mode : Variable
Bit rate : 98 b/s
Frame rate : 0.584 FPS
Stream size : 95.5 KiB (0%)
Title : SDH
Language : English
Default : No
Forced : No
Encoded date : UTC 2023-01-14 22:15:20
Tagged date : UTC 2023-01-14 22:15:20
If you play the received file using Plex or from a NAS via DLNA, then sound problems begin from 5-6 minutes (the sound starts to stutter). With other videos from other streaming services, I did not notice such a problem. | Multiplexing Dolby Vision Profile 5 | https://api.github.com/repos/gpac/gpac/issues/2373/comments | 3 | 2023-01-14T22:33:42Z | 2023-03-13T09:49:33Z | https://github.com/gpac/gpac/issues/2373 | 1,533,533,551 | 2,373 |
[
"gpac",
"gpac"
] | Hi,
I'm using docker to scale my service and I need `gpac` as a dependency just like `FFmpeg`, but I couldn't install the latest [gpac](https://gpac.wp.imt.fr/downloads/) on my docker container.
I'm using `amd64/debian:11` from [here](https://hub.docker.com/r/amd64/debian/) and installing the dependencies mentioned in your [GPAC Build Guide for Linux](https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux) guide here, to make sure that I have all the required dependencies.
```dockerfile
FROM amd64/debian:11
WORKDIR /app
# Install dependencies
RUN apt-get update
RUN apt-get install gdebi zlib1g-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev libmad0-dev libfaad-dev libogg-dev libvorbis-dev libtheora-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavdevice-dev libxv-dev x11proto-video-dev libgl1-mesa-dev x11proto-gl-dev libxvidcore-dev libssl-dev libjack-dev libasound2-dev libpulse-dev libsdl2-dev mesa-utils -y
COPY ./gpac_2.0.0.deb ./gpac.deb
RUN apt-get update && \
apt-get install ./gpac.deb
CMD ["pwd"]
```
When building the image, All the dependencies are installed successfully, but it fails to install `gpac` due to _missing dependencies_.
```
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gpac : Depends: libavcodec57 (>= 7:3.4.8) but it is not installable or
libavcodec-extra57 (>= 7:3.4.8) but it is not installable
Depends: libavdevice57 (>= 7:3.4.8) but it is not installable
Depends: libavfilter6 (>= 7:3.4.8) but it is not installable or
libavfilter-extra6 (>= 7:3.4.8) but it is not installable
Depends: libavformat57 (>= 7:3.4.8) but it is not installable
Depends: libavutil55 (>= 7:3.4.8) but it is not installable
Depends: libswscale4 (>= 7:3.4.8) but it is not installable
```
I created a new Linode `Debian 11` VM to test this issue and tried to install [gpac](https://gpac.wp.imt.fr/downloads/) directly without any dockerization, it worked without any issue!
I really want this fixed, Any help will be appreciated.
_Note_
```bash
apt-get install gpac -y
```
Using `apt` to install gpac is what I used to have, but I need the latest release of gpac to fix some issues and avoid deprecated APIs.
| How to install gpac on Docker container? | https://api.github.com/repos/gpac/gpac/issues/2372/comments | 2 | 2023-01-14T12:24:09Z | 2023-01-16T10:27:11Z | https://github.com/gpac/gpac/issues/2372 | 1,533,233,721 | 2,372 |
[
"gpac",
"gpac"
] | ```
MP4Box - GPAC version 2.3-DEV-rev16-g4ab59922-master
C:\Users\yhk02\Downloads>mp4box -add Sample.mkv -new Sample.mp4
Track Importing MPEG-4 AVC - Width 1920 Height 1080 FPS 24/1 SAR 1/1
Track Importing MP3 - SampleRate 48000 Num Channels 2
Track Importing MP3 - SampleRate 48000 Num Channels 2
Track Importing MP3 - SampleRate 48000 Num Channels 2
Track Importing MP3 - SampleRate 48000 Num Channels 2
Track Importing EAC-3 - SampleRate 48000 Num Channels 6
Saving Sample.mp4: 0.500 secs Interleaving
C:\Users\yhk02\Downloads>
```
```
General
Unique ID : 165334633885445924572393941469529299708 (0x7C624ACF3859B9D6D0E71F7A9B86DAFC)
Complete name : C:\Users\yhk02\Downloads\Sample.mkv
Format : Matroska
Format version : Version 4
File size : 228 KiB
Duration : 1 s 16 ms
Overall bit rate : 1 840 kb/s
Encoded date : UTC 2023-01-08 10:44:28
Writing application : mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
Writing library : libebml v1.4.4 + libmatroska v1.7.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 s 0 ms
Bit rate : 66.4 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.001
Stream size : 8.11 KiB (4%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 992 ms
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 24 ms
Stream size : 54.2 KiB (24%)
Title : DD+JOC
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 12
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
Audio #2
ID : 3
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Delay relative to video : 8 ms
Stream size : 39.4 KiB (17%)
Title : Binural from Dolby Access
Writing library : LAME3.100
Language : English
Default : No
Forced : No
Audio #3
ID : 4
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Delay relative to video : 8 ms
Stream size : 39.4 KiB (17%)
Title : Binural from DAR(Near)
Writing library : LAME3.100
Language : English
Default : No
Forced : No
Audio #4
ID : 5
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Delay relative to video : 8 ms
Stream size : 39.4 KiB (17%)
Title : Binural from DAR(Mid)
Writing library : LAME3.100
Language : English
Default : No
Forced : No
Audio #5
ID : 6
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Delay relative to video : 8 ms
Stream size : 39.4 KiB (17%)
Title : Binural from DAR(Far)
Writing library : LAME3.100
Language : English
Default : No
Forced : No
```
I tried the latest nightly build. Above is the input. As you can see, EAC3-JOC is placed second, and the "default" flag is enabled.
```
General
Complete name : C:\Users\yhk02\Downloads\Sample.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 222 KiB
Duration : 2 s 487 ms
Overall bit rate : 731 kb/s
Recorded date : 2023-01-08 10:44:28
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Writing application : mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 998 ms
Bit rate : 66.4 kb/s
Maximum bit rate : 63.8 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 24.000 FPS
Minimum frame rate : 23.810 FPS
Maximum frame rate : 24.390 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.001
Stream size : 8.11 KiB (4%)
Title : mkv@GPAC2.3-DEV-rev16-g4ab59922-master
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 1040
Codec configuration box : avcC
Audio #1
ID : 3
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : .mp3
Duration : 1 s 13 ms
Source duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 39.4 KiB (18%)
Source stream size : 39.4 KiB (18%)
Title : Binural from Dolby Access
Writing library : LAME3.100
Language : English
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Audio #2
ID : 4
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : .mp3
Duration : 1 s 13 ms
Source duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 39.4 KiB (18%)
Source stream size : 39.4 KiB (18%)
Title : Binural from DAR(Near)
Writing library : LAME3.100
Language : English
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Audio #3
ID : 5
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : .mp3
Duration : 1 s 13 ms
Source duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 39.4 KiB (18%)
Source stream size : 39.4 KiB (18%)
Title : Binural from DAR(Mid)
Writing library : LAME3.100
Language : English
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Audio #4
ID : 6
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : .mp3
Duration : 1 s 13 ms
Source duration : 1 s 8 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 39.4 KiB (18%)
Source stream size : 39.4 KiB (18%)
Title : Binural from DAR(Far)
Writing library : LAME3.100
Language : English
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Audio #5
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : ec-3
Duration : 2 s 487 ms
Source duration : 2 s 464 ms
Source_Duration_LastFrame : 1 s 504 ms
Bit rate mode : Constant
Bit rate : 448 kb/s
Maximum bit rate : 175 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 136 KiB (62%)
Source stream size : 52.5 KiB (24%)
Title : DD+JOC
Language : English
Service kind : Complete Main
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-01-08 10:49:02
Tagged date : UTC 2023-01-08 10:49:02
Complexity index : 12
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
```
As you can see, EAC3-JOC is located at the bottom, and the "default" flag is enabled for all audio tracks.
[Sample.zip](https://github.com/gpac/gpac/files/10368191/Sample.zip) | When remuxing mkv to mp4 via mp4box, the import order of audio tracks is incorrect. | https://api.github.com/repos/gpac/gpac/issues/2371/comments | 12 | 2023-01-08T10:55:52Z | 2023-05-13T06:58:49Z | https://github.com/gpac/gpac/issues/2371 | 1,524,456,573 | 2,371 |
[
"gpac",
"gpac"
] | when trying to create a file with video that has negative composition time offsets:
mp4Box -dash 1000 -out out.mpd -dash-profile onDemand --cmaf=cmfc vvc_uhd2_hdr-ClosedGOP-7680x4320_50fps-HLG10-30s-12Mbps.mp4
the segment index box signals SAP_type=1 and the mpd signal subsegmentStartsWithSAP="1"
This should for this specific file be 2, as the first decoded sample is not the first one displayed.
also it may be easier to always signal 2 for dash as sap type 1 is a subset of sap type 1.
My suggestion is to put the correct SapType in the mpd and segment index or always put 2
| mp4Box incorrect sap type in segment index box and mpd | https://api.github.com/repos/gpac/gpac/issues/2370/comments | 7 | 2023-01-05T13:02:22Z | 2023-05-10T14:07:29Z | https://github.com/gpac/gpac/issues/2370 | 1,520,712,339 | 2,370 |
[
"gpac",
"gpac"
] | Hello!
I'm trying to generate a stream from ll-dash but when I do it gpac throws this : `[Dasher] First CTS 17160 in segment 9 drifting by 1.16 (more than half a segment duration) from segment time, consider reencoding or using segment timeline` or `[Dasher] Segment 34 duration 0.88 less than half DASH duration, consider reencoding or using segment timeline` which generates latency and the video is out of sync with the audio.
I tried to put the `stl` option but the video does not look smooth and has enough latency.
I thought it was due to CPU resources but everything is fine, I also tried to increase the gpac threads but I don't see any change in performance.
`gpac -i rtmp://<rtmp-server>/live -o http://<origin-server>:8080/live/public/playlist.mpd:gpac:segdur=2:cdur=0.2:asto=1.8:cmaf=cmfc:profile=dashif.ll:dmode=dynamic:template=segment_dash:rdirs=gmem:hmode=push:max_cache_segs=14 -threads=4`
- [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/
| First CTS causes DASH streaming video delay | https://api.github.com/repos/gpac/gpac/issues/2367/comments | 7 | 2022-12-23T21:46:29Z | 2023-05-26T12:56:18Z | https://github.com/gpac/gpac/issues/2367 | 1,509,802,580 | 2,367 |
[
"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/
# Version
```
MP4Box - GPAC version 2.3-DEV-rev1-g4669ba229-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer --enable-debug
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer --enable-debug
make
./MP4Box -dxml buffer_overflow_av_parsers_c_5684
```
information reported by sanitizer
```
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Box "stsz" (start 771) has 40 extra bytes
[iso file] Unknown box type 00000000 in parent moov
[isom/avcc] Missing REXT profile signaling, patching.
[iso file] Box "stsz" (start 771) has 40 extra bytes
[iso file] Unknown box type 00000000 in parent moov
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[avc-h264] invalid SPS: log2_max_frame_num_minus4 shall be less than 12, but is 21
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] corrupted exp-golomb code, 32 leading zeros, max 31 allowed !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
media_tools/av_parsers.c:5684:21: runtime error: index 128 out of bounds for type 'AVC_SPS [32]'
```
# Poc
https://drive.google.com/file/d/1wf2-Yk4cijCPcQd33P9PQ8ADokG_sG4i/view?usp=sharing | Buffer overflow in function avc_parse_slice of media_tools/av_parsers.c:5684 | https://api.github.com/repos/gpac/gpac/issues/2366/comments | 0 | 2022-12-21T05:53:36Z | 2023-01-04T09:56:09Z | https://github.com/gpac/gpac/issues/2366 | 1,505,749,285 | 2,366 |
[
"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/
# Version
```
MP4Box - GPAC version 2.2-rev0-gab012bbfb-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer
make
./MP4Box -bt memory_leak_lsr_read_rare_full
```
information reported by sanitizer
```
==633924==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 176 byte(s) in 1 object(s) allocated from:
#0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f643a573f33 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f33)
#2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
#3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
#4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
#5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
#6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
#7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
#8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
#9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
#10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
#11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
#12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
#13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
#14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
#15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308
Direct leak of 44 byte(s) in 1 object(s) allocated from:
#0 0x7f643d223808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f643a573f93 in lsr_read_rare_full (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26a4f93)
#2 0x7f643a58bb4e in lsr_read_animateMotion (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26bcb4e)
#3 0x7f643a58270e in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b370e)
#4 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
#5 0x7f643a586226 in lsr_read_a (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b7226)
#6 0x7f643a582767 in lsr_read_scene_content_model (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3767)
#7 0x7f643a582ec0 in lsr_read_group_content (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b3ec0)
#8 0x7f643a583666 in lsr_read_svg (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b4666)
#9 0x7f643a579238 in lsr_read_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26aa238)
#10 0x7f643a5810bd in lsr_decode_laser_unit (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26b20bd)
#11 0x7f643a58fbe6 in gf_laser_decode_command_list (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x26c0be6)
#12 0x7f643a2c95fc in gf_sm_load_run_isom (/root/fuzzing_gpac/gpac/bin/gcc/libgpac.so.12+0x23fa5fc)
#13 0x55b17f1ab14b in dump_isom_scene /root/fuzzing_gpac/gpac/applications/mp4box/filedump.c:209
#14 0x55b17f19525c in mp4box_main /root/fuzzing_gpac/gpac/applications/mp4box/mp4box.c:6381
#15 0x7f643738e082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: 220 byte(s) leaked in 2 allocation(s).
```
# Poc
https://drive.google.com/file/d/1C1pfK2vmGPOF7fQBM62nDRqm5K1r_sZh/view?usp=sharing | Memory leaks in lsr_read_rare_full function | https://api.github.com/repos/gpac/gpac/issues/2365/comments | 0 | 2022-12-20T13:45:15Z | 2023-01-04T10:31:35Z | https://github.com/gpac/gpac/issues/2365 | 1,504,586,409 | 2,365 |
[
"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/
# Description
Integer overflow in bifs/unquantize.c:298:43
# Version
```
MP4Box - GPAC version 2.2-rev0-gab012bbfb-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
complie and run
```
./configure --enable-sanitizer
make
./MP4Box -bt integer_overflow_bifs_unquantize_c_298_43
```
crash reported by sanitizer
```
[iso file] Unknown box type vref in parent dinf
[iso file] Missing dref box in dinf
[iso file] Unknown top-level box type 01020000
[iso file] Incomplete box 01020000 - start 2637 size 35663868
[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] Unknown top-level box type 01020000
[iso file] Incomplete box 01020000 - start 2637 size 35663868
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
bifs/unquantize.c:298:43: runtime error: shift exponent 375666308 is too large for 32-bit type 'int'
```
# Poc
https://drive.google.com/file/d/1qbsWezoShhj18ckaKg5l_VIRMd3qfdcM/view?usp=sharing | Integer overflow in bifs/unquantize.c:298:43 | https://api.github.com/repos/gpac/gpac/issues/2364/comments | 0 | 2022-12-20T12:16:39Z | 2023-01-04T10:31:35Z | https://github.com/gpac/gpac/issues/2364 | 1,504,470,753 | 2,364 |
[
"gpac",
"gpac"
] | Debian unstable powerpc
GCC 12.2.0
If you have an idea, because I don't know what is wrong.
````
evg/stencil.c: In function ‘get_pix_yuyv_10’:
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
| ^
evg/stencil.c:2220:14: note: in expansion of macro ‘GET_LE_10BIT_LEFT_AS_8’
2220 | vu = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_u);
| ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
| ^
evg/stencil.c:2222:22: note: in expansion of macro ‘GET_LE_10BIT_LEFT_AS_8’
2222 | vy = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_y+4);
| ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
| ^
evg/stencil.c:2224:22: note: in expansion of macro ‘GET_LE_10BIT_LEFT_AS_8’
2224 | vy = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_y);
| ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
| ^
evg/stencil.c:2225:14: note: in expansion of macro ‘GET_LE_10BIT_LEFT_AS_8’
2225 | vv = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_v);
| ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [../config.mak:184: evg/stencil.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/marillat/gpac-dmo-2.2.0/src'
```` | Fail to build for powerpc linux | https://api.github.com/repos/gpac/gpac/issues/2363/comments | 4 | 2022-12-20T12:15:10Z | 2022-12-20T14:59:35Z | https://github.com/gpac/gpac/issues/2363 | 1,504,468,892 | 2,363 |
[
"gpac",
"gpac"
] | Hi all,
As you continue working towards publishing version 2.2 to the GPAC website, please take a moment to review your code for the Legacy builds page; the Markdown tag `textimport` was not interpreted by your platform. Check out the screenshot:
https://gpac.wp.imt.fr/downloads/gpac-legacy-builds/

Just as a side note, the Downloads page is still showing v2.0, even though the 2.2 announcement is already published on the website. I am not sure if you are still building the v2.2 downloads page somehow.
https://gpac.wp.imt.fr/2022/12/19/gpac-2-2/
https://gpac.wp.imt.fr/downloads/

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 give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). | Website: Downloads pages need revisions | https://api.github.com/repos/gpac/gpac/issues/2362/comments | 3 | 2022-12-19T17:00:40Z | 2022-12-19T17:59:20Z | https://github.com/gpac/gpac/issues/2362 | 1,503,272,560 | 2,362 |
[
"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,
# Description
heap-use-after-free media_tools/mpegts.c:2625 in gf_m2ts_process_packet
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev649-ga8f438d20-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -catx poc_uaf2.mp4
```
Crash reported by sanitizer
```
=================================================================
==1412408==ERROR: AddressSanitizer: heap-use-after-free on address 0x613000000748 at pc 0x7f5b0a36245f bp 0x7ffc9e3b02d0 sp 0x7ffc9e3b02c0
READ of size 4 at 0x613000000748 thread T0
#0 0x7f5b0a36245e in gf_m2ts_process_packet media_tools/mpegts.c:2625
#1 0x7f5b0a365758 in gf_m2ts_process_data media_tools/mpegts.c:2813
#2 0x7f5b0aa739c0 in m2tsdmx_process filters/dmx_m2ts.c:1420
#3 0x7f5b0a941f1d in gf_filter_process_task filter_core/filter.c:2815
#4 0x7f5b0a9015a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7f5b0a90dece in gf_fs_run filter_core/filter_session.c:2120
#6 0x7f5b0a3509c1 in gf_media_import media_tools/media_import.c:1551
#7 0x559a9079cb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#8 0x559a907a75d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#9 0x559a90751130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#10 0x559a90751130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#11 0x7f5b078d7d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#12 0x7f5b078d7e3f in __libc_start_main_impl ../csu/libc-start.c:392
#13 0x559a9072dcb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
0x613000000748 is located 8 bytes inside of 360-byte region [0x613000000740,0x6130000008a8)
freed by thread T0 here:
#0 0x7f5b0d440517 in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:127
#1 0x7f5b0a36a917 in gf_m2ts_process_pmt media_tools/mpegts.c:1707
#2 0x7f5b0a36a917 in gf_m2ts_process_pmt media_tools/mpegts.c:1132
#3 0x7f5b0a35b3a6 in gf_m2ts_section_complete media_tools/mpegts.c:624
#4 0x7f5b0a35cc9f in gf_m2ts_gather_section media_tools/mpegts.c:755
#5 0x7f5b0a361f22 in gf_m2ts_process_packet media_tools/mpegts.c:2721
#6 0x7f5b0a365758 in gf_m2ts_process_data media_tools/mpegts.c:2813
#7 0x7f5b0aa739c0 in m2tsdmx_process filters/dmx_m2ts.c:1420
#8 0x7f5b0a941f1d in gf_filter_process_task filter_core/filter.c:2815
#9 0x7f5b0a9015a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#10 0x7f5b0a90dece in gf_fs_run filter_core/filter_session.c:2120
#11 0x7f5b0a3509c1 in gf_media_import media_tools/media_import.c:1551
#12 0x559a9079cb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#13 0x559a907a75d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#14 0x559a90751130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#15 0x559a90751130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#16 0x7f5b078d7d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
previously allocated by thread T0 here:
#0 0x7f5b0d440867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f5b0a3684e7 in gf_m2ts_process_pmt media_tools/mpegts.c:1374
#2 0x7f5b0a3684e7 in gf_m2ts_process_pmt media_tools/mpegts.c:1132
#3 0x7f5b0a35b3a6 in gf_m2ts_section_complete media_tools/mpegts.c:624
#4 0x7f5b0a35cc9f in gf_m2ts_gather_section media_tools/mpegts.c:755
#5 0x7f5b0a361f22 in gf_m2ts_process_packet media_tools/mpegts.c:2721
#6 0x7f5b0a365758 in gf_m2ts_process_data media_tools/mpegts.c:2813
#7 0x7f5b0aa739c0 in m2tsdmx_process filters/dmx_m2ts.c:1420
#8 0x7f5b0a941f1d in gf_filter_process_task filter_core/filter.c:2815
#9 0x7f5b0a9015a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#10 0x7f5b0a90dece in gf_fs_run filter_core/filter_session.c:2120
#11 0x7f5b0a3509c1 in gf_media_import media_tools/media_import.c:1551
#12 0x559a9079cb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#13 0x559a907a75d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#14 0x559a90751130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#15 0x559a90751130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#16 0x7f5b078d7d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-use-after-free media_tools/mpegts.c:2625 in gf_m2ts_process_packet
Shadow bytes around the buggy address:
0x0c267fff8090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c267fff80a0: 00 00 00 00 fa fa fa fa fa fa fa fa fa fa fa fa
0x0c267fff80b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c267fff80c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c267fff80d0: 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa
=>0x0c267fff80e0: fa fa fa fa fa fa fa fa fd[fd]fd fd fd fd fd fd
0x0c267fff80f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c267fff8100: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c267fff8110: fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa
0x0c267fff8120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c267fff8130: 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
==1412408==ABORTING
```
# POC
[poc_uaf2.zip](https://github.com/gpac/gpac/files/10258882/poc_uaf2.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| heap-use-after-free media_tools/mpegts.c:2625 in gf_m2ts_process_packet | https://api.github.com/repos/gpac/gpac/issues/2361/comments | 0 | 2022-12-19T11:35:35Z | 2022-12-19T14:17:56Z | https://github.com/gpac/gpac/issues/2361 | 1,502,785,969 | 2,361 |
[
"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,
# Description
buffer overflow in h263dmx_process filters/reframe_h263.c:609
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev649-ga8f438d20-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_bof13.mp4
```
Crash reported by sanitizer
```
[H263Dmx] garbage before first frame!
Track Importing H263 - Width 704 Height 576 FPS 15000/1000
=================================================================
==735609==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60e000000620 at pc 0x7ff71222b397 bp 0x7ffeaf3c2280 sp 0x7ffeaf3c1a28
READ of size 4294967295 at 0x60e000000620 thread T0
#0 0x7ff71222b396 in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x7ff70fbae101 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
#2 0x7ff70fbae101 in h263dmx_process filters/reframe_h263.c:609
#3 0x7ff70f7a6f1d in gf_filter_process_task filter_core/filter.c:2815
#4 0x7ff70f7665a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7ff70f772ece in gf_fs_run filter_core/filter_session.c:2120
#6 0x7ff70f1b59c1 in gf_media_import media_tools/media_import.c:1551
#7 0x5617e36bfb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#8 0x5617e36ca5d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#9 0x5617e3674130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#10 0x5617e3674130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#11 0x7ff70c73cd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#12 0x7ff70c73ce3f in __libc_start_main_impl ../csu/libc-start.c:392
#13 0x5617e3650cb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
0x60e000000620 is located 0 bytes to the right of 160-byte region [0x60e000000580,0x60e000000620)
allocated by thread T0 here:
#0 0x7ff7122a5867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7ff70f7b4528 in gf_filter_parse_args filter_core/filter.c:2033
#2 0x7ff70f7b5234 in gf_filter_new_finalize filter_core/filter.c:510
#3 0x7ff70f7b65d7 in gf_filter_new filter_core/filter.c:439
#4 0x7ff70f7021c7 in gf_filter_pid_resolve_link_internal filter_core/filter_pid.c:3611
#5 0x7ff70f7258b2 in gf_filter_pid_resolve_link_check_loaded filter_core/filter_pid.c:3711
#6 0x7ff70f7258b2 in gf_filter_pid_init_task filter_core/filter_pid.c:4883
#7 0x7ff70f7665a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#8 0x7ff70f772ece in gf_fs_run filter_core/filter_session.c:2120
#9 0x7ff70f1b59c1 in gf_media_import media_tools/media_import.c:1551
#10 0x5617e36bfb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#11 0x5617e36ca5d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#12 0x5617e3674130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#13 0x5617e3674130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#14 0x7ff70c73cd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c1c7fff8070: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c1c7fff8080: 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa
0x0c1c7fff8090: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff80a0: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
0x0c1c7fff80b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c1c7fff80c0: 00 00 00 00[fa]fa fa fa fa fa fa fa 00 00 00 00
0x0c1c7fff80d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff80e0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c1c7fff80f0: 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa
0x0c1c7fff8100: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x0c1c7fff8110: 00 00 00 00 00 00 00 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
==735609==ABORTING
```
Looks like the oob read happens in filters/reframe_h263.c
```
READ of size 4294967295 at 0x60e000000620 thread T0
#0 0x7ff71222b396 in __interceptor_memcpy
../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:827
#1 0x7ff70fbae101 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
#2 0x7ff70fbae101 in h263dmx_process filters/reframe_h263.c:609
```
if compile without ASAN and run the same poc
```
./configure --static-bin
make
./MP4Box import -cat poc_bof13.mp4
```
there will be segment fault
```
[H263Dmx] garbage before first frame!
Track Importing H263 - Width 704 Height 576 FPS 15000/1000
Segmentation fault= | (50/100)
```
backtrace atm
```
pwndbg> bt
#0 0x0000000000afc1cc in __memmove_avx_unaligned_erms ()
#1 0x00000000007f0dbf in h263dmx_process ()
#2 0x00000000006d9c90 in gf_filter_process_task ()
#3 0x00000000006c5dbc in gf_fs_thread_proc ()
#4 0x00000000006cb3bb in gf_fs_run ()
#5 0x00000000006008ed in gf_media_import ()
#6 0x00000000004313d1 in import_file ()
#7 0x00000000004375f1 in cat_isomedia_file ()
#8 0x0000000000411e78 in mp4box_main ()
#9 0x0000000000a8c47a in __libc_start_call_main ()
#10 0x0000000000a8dcd7 in __libc_start_main_impl ()
#11 0x0000000000402c55 in _start ()
```
# POC
[poc_bof13.zip](https://github.com/gpac/gpac/files/10253538/poc_bof13.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| buffer overflow in h263dmx_process filters/reframe_h263.c:609 | https://api.github.com/repos/gpac/gpac/issues/2360/comments | 0 | 2022-12-18T10:23:45Z | 2022-12-19T11:26:13Z | https://github.com/gpac/gpac/issues/2360 | 1,501,850,806 | 2,360 |
[
"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,
# Description
segment fault (/stack overflow) due to infinite recursion in Media_GetSample isomedia/media.c:662
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev649-ga8f438d20-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_segfault2.mp4
```
Crash reported by sanitizer
```
[HEVC] Error parsing NAL unit type 63
Track Importing L-HEVC - Width 1 Height 6 FPS 25000/1000
[HEVC] NAL Unit type 26 not handled - adding
[HEVC] xPS changed but could not flush frames before signaling state change !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing NAL unit type 32
[HEVC] Invalid log2_max_pic_order_cnt_lsb_minus4 80, max shall be 12
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 34
[HEVC] Error parsing NAL unit type 0
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing NAL unit type 32
HEVC Import results: 7 samples (39 NALUs) - Slices: 0 I 0 P 1 B - 0 SEI - 0 IDR - 0 CRA
HEVC L-HEVC Import results: Slices: 3 I 0 P 2 B
HEVC Stream uses forward prediction - stream CTS offset: 6 frames
HEVC Max NALU size is 106 - stream could be optimized by setting nal_length=1
Appending file /home/sumuchuan/Desktop/gpac_fuzz/cat_gpac/bin/gcc/out/default/crashes/160.mp4
No suitable destination track found - creating new one (type vide)
AddressSanitizer:DEADLYSIGNAL | (57/100)
=================================================================
==738673==ERROR: AddressSanitizer: stack-overflow on address 0x7ffdae782bc0 (pc 0x7f415d384491 bp 0x7ffdae783400 sp 0x7ffdae782bc0 T0)
#0 0x7f415d384491 in __sanitizer::StackTrace::StackTrace(unsigned long const*, unsigned int) ../../../../src/libsanitizer/sanitizer_common/sanitizer_stacktrace.h:52
#1 0x7f415d384491 in __sanitizer::BufferedStackTrace::BufferedStackTrace() ../../../../src/libsanitizer/sanitizer_common/sanitizer_stacktrace.h:105
#2 0x7f415d384491 in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:127
#3 0x7f415787f858 in __GI__IO_free_backup_area libio/genops.c:190
#4 0x7f415787cae3 in _IO_new_file_seekoff libio/fileops.c:975
#5 0x7f415787ad52 in __fseeko libio/fseeko.c:40
#6 0x7f4159a1536a in BS_SeekIntern utils/bitstream.c:1338
#7 0x7f4159a1536a in gf_bs_seek utils/bitstream.c:1373
#8 0x7f4159fbbfc9 in gf_isom_fdm_get_data isomedia/data_map.c:501
#9 0x7f4159fbbfc9 in gf_isom_datamap_get_data isomedia/data_map.c:279
#10 0x7f415a0a1f40 in Media_GetSample isomedia/media.c:641
#11 0x7f4159ffc579 in gf_isom_get_sample_ex isomedia/isom_read.c:1916
#12 0x7f4159ec91ca in gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
#13 0x7f415a0a305a in Media_GetSample isomedia/media.c:662
#14 0x7f4159ffc579 in gf_isom_get_sample_ex isomedia/isom_read.c:1916
#15 0x7f4159ec91ca in gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
#16 0x7f415a0a305a in Media_GetSample isomedia/media.c:662
#17 0x7f4159ffc579 in gf_isom_get_sample_ex isomedia/isom_read.c:1916
#18 0x7f4159ec91ca in gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
#19 0x7f415a0a305a in Media_GetSample isomedia/media.c:662
#20 0x7f4159ffc579 in gf_isom_get_sample_ex isomedia/isom_read.c:1916
#21 0x7f4159ec91ca in gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
#22 0x7f415a0a305a in Media_GetSample isomedia/media.c:662
#23 0x7f4159ffc579 in gf_isom_get_sample_ex isomedia/isom_read.c:1916
#24 0x7f4159ec91ca in gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
...
```
looks like an infinite recursion
```
Media_GetSample isomedia/media.c:662
-> gf_isom_nalu_sample_rewrite isomedia/avc_ext.c:454
-> gf_isom_get_sample_ex isomedia/isom_read.c:1916
-> Media_GetSample isomedia/media.c:662
```
if compile without ASAN and run the same poc
```
./configure --static-bin
make
./MP4Box import -cat poc_segfault2.mp4
```
there will be a segment fault
```
[HEVC] Error parsing NAL unit type 63
Track Importing L-HEVC - Width 1 Height 6 FPS 25000/1000
[HEVC] NAL Unit type 26 not handled - adding
[HEVC] xPS changed but could not flush frames before signaling state change !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing NAL unit type 32
[HEVC] Invalid log2_max_pic_order_cnt_lsb_minus4 80, max shall be 12
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 34
[HEVC] Error parsing NAL unit type 0
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing NAL unit type 32
HEVC Import results: 7 samples (39 NALUs) - Slices: 0 I 0 P 1 B - 0 SEI - 0 IDR - 0 CRA
HEVC L-HEVC Import results: Slices: 3 I 0 P 2 B
HEVC Stream uses forward prediction - stream CTS offset: 6 frames
HEVC Max NALU size is 106 - stream could be optimized by setting nal_length=1
Appending file /home/sumuchuan/Desktop/gpac_fuzz/cat_gpac/bin/gcc/out/default/crashes/160.mp4
No suitable destination track found - creating new one (type vide)
Segmentation fault===== | (57/100)
```
Because it ran out of stack space, making rsp and rbp point to an unmapped memory, causing seg fault. backtrace atm
```
pwndbg> bt
...
#16487 0x000000000054d599 in gf_isom_get_sample_ex ()
#16488 0x0000000000521d6d in gf_isom_nalu_sample_rewrite ()
#16489 0x0000000000570e13 in Media_GetSample ()
#16490 0x000000000054d599 in gf_isom_get_sample_ex ()
#16491 0x0000000000521d6d in gf_isom_nalu_sample_rewrite ()
#16492 0x0000000000570e13 in Media_GetSample ()
#16493 0x000000000054d599 in gf_isom_get_sample_ex ()
#16494 0x0000000000521d6d in gf_isom_nalu_sample_rewrite ()
#16495 0x0000000000570e13 in Media_GetSample ()
...
```
# POC
[poc-segfault2.zip](https://github.com/gpac/gpac/files/10253557/poc-segfault2.zip)
# Impact
Potentially causing DoS
# Credit
Xdchase
| Infinite recursion in Media_GetSample isomedia/media.c:662 | https://api.github.com/repos/gpac/gpac/issues/2359/comments | 0 | 2022-12-18T10:23:42Z | 2022-12-19T11:26:12Z | https://github.com/gpac/gpac/issues/2359 | 1,501,850,761 | 2,359 |
[
"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,
# Description
heap-buffer-overflow media_tools/av_parsers.c:4988 in gf_media_nalu_add_emulation_bytes
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev649-ga8f438d20-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -catx poc_bof14.mp4
```
Crash reported by sanitizer
```
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] SEI user message type 71 size error (71 but 27 remain), keeping full SEI untouched
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] SEI user message has less than 2 bytes remaining but no end of sei found
=================================================================
==745696==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x615000014780 at pc 0x7f373f26d683 bp 0x7ffd5a01c290 sp 0x7ffd5a01c280
WRITE of size 1 at 0x615000014780 thread T0
#0 0x7f373f26d682 in gf_media_nalu_add_emulation_bytes media_tools/av_parsers.c:4988
#1 0x7f373f26d682 in gf_avc_reformat_sei media_tools/av_parsers.c:6355
#2 0x7f373fccee25 in naludmx_push_prefix filters/reframe_nalu.c:2398
#3 0x7f373fcee8ac in naludmx_parse_nal_avc filters/reframe_nalu.c:2821
#4 0x7f373fcee8ac in naludmx_process filters/reframe_nalu.c:3333
#5 0x7f373f8a5f1d in gf_filter_process_task filter_core/filter.c:2815
#6 0x7f373f8655a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#7 0x7f373f871ece in gf_fs_run filter_core/filter_session.c:2120
#8 0x7f373f2b49c1 in gf_media_import media_tools/media_import.c:1551
#9 0x55b1ec0f1b4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#10 0x55b1ec0fc5d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#11 0x55b1ec0a6130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#12 0x55b1ec0a6130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#13 0x7f373c83bd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#14 0x7f373c83be3f in __libc_start_main_impl ../csu/libc-start.c:392
#15 0x55b1ec082cb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
0x615000014780 is located 0 bytes to the right of 512-byte region [0x615000014580,0x615000014780)
allocated by thread T0 here:
#0 0x7f37423a4867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7f373ea2c72a in gf_bs_new utils/bitstream.c:154
#2 0x7f373f26c993 in gf_avc_reformat_sei media_tools/av_parsers.c:6227
#3 0x7f373fccee25 in naludmx_push_prefix filters/reframe_nalu.c:2398
#4 0x7f373fcee8ac in naludmx_parse_nal_avc filters/reframe_nalu.c:2821
#5 0x7f373fcee8ac in naludmx_process filters/reframe_nalu.c:3333
#6 0x7f373f8a5f1d in gf_filter_process_task filter_core/filter.c:2815
#7 0x7f373f8655a3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#8 0x7f373f871ece in gf_fs_run filter_core/filter_session.c:2120
#9 0x7f373f2b49c1 in gf_media_import media_tools/media_import.c:1551
#10 0x55b1ec0f1b4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#11 0x55b1ec0fc5d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#12 0x55b1ec0a6130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#13 0x55b1ec0a6130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#14 0x7f373c83bd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/av_parsers.c:4988 in gf_media_nalu_add_emulation_bytes
Shadow bytes around the buggy address:
0x0c2a7fffa8a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2a7fffa8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c2a7fffa8f0:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa910: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa920: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa930: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2a7fffa940: 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
==745696==ABORTING
```
if compile without ASAN and run the same poc
```
./configure --static-bin
make
./MP4Box import -catx poc_bof14.mp4
```
The crash will happen at another place
```
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] SEI user message type 71 size error (71 but 27 remain), keeping full SEI untouched
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] SEI user message has less than 2 bytes remaining but no end of sei found
[avc-h264] invalid SPS: log2_max_frame_num_minus4 shall be less than 12, but is 16962257
[AVC|H264] Error parsing NAL unit type 7
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] SEI user message type 16 size error (45 but 7 remain), keeping full SEI untouched
[avc-h264] invalid SPS: log2_max_frame_num_minus4 shall be less than 12, but is 32527
[AVC|H264] Error parsing NAL unit type 7
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[AVC|H264] Error parsing NAL unit type 8
[AVC|H264] Error parsing Picture Param Set
[avc-h264] invalid SPS: log2_max_frame_num_minus4 shall be less than 12, but is 16964897
[AVC|H264] Error parsing NAL unit type 7
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
[avc-h264] invalid SPS: log2_max_frame_num_minus4 shall be less than 12, but is 63
[AVC|H264] Error parsing NAL unit type 7
[avc-h264] Unknown aspect_ratio_idc: your video may have a wrong aspect ratio. Contact the GPAC team!
realloc(): invalid next size
Aborted
```
`realloc(): invalid next size` indicates that there was a bof on heap indeed, overwriting the size field of a heap chunk.
# POC
[poc_bof14.zip](https://github.com/gpac/gpac/files/10253586/poc_bof14.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| heap-buffer-overflow media_tools/av_parsers.c:4988 in gf_media_nalu_add_emulation_bytes | https://api.github.com/repos/gpac/gpac/issues/2358/comments | 0 | 2022-12-18T10:23:38Z | 2022-12-19T11:26:12Z | https://github.com/gpac/gpac/issues/2358 | 1,501,850,698 | 2,358 |
[
"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/
# Description
integer overflow in isomedia/isom_write.c:4931
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev644-g5c4df2a67-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat iof.mp4
```
Crash reported by sanitizer
```
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing NAL unit type 32
[HEVC] Invalid log2_max_pic_order_cnt_lsb_minus4 80, max shall be 12
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 34
[HEVC] Error parsing NAL unit type 0
Track Importing HEVC - Width 1 Height 6 FPS 488447261/488447261
[HEVC] Error parsing NAL unit type 25
[HEVC] NAL Unit type 25 not handled - adding
[HEVC] Error parsing NAL unit type 32
[HEVC] Invalid log2_max_pic_order_cnt_lsb_minus4 80, max shall be 12
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 34
[HEVC] Error parsing NAL unit type 0
[HEVC] Error parsing NAL unit type 32
isomedia/isom_write.c:4931:87: runtime error: signed integer overflow: 1852736474 - -1953749291 cannot be represented in type 'int'
```
# POC
[iof.zip](https://github.com/gpac/gpac/files/10251484/iof.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| integer overflow in isomedia/isom_write.c:4931 | https://api.github.com/repos/gpac/gpac/issues/2357/comments | 0 | 2022-12-17T10:31:40Z | 2022-12-17T11:29:29Z | https://github.com/gpac/gpac/issues/2357 | 1,501,315,390 | 2,357 |
[
"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/
# Description
buffer overflow in function gf_hevc_read_vps_bs_internal of media_tools/av_parsers.c:8039
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev644-g5c4df2a67-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_bof10.mp4
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 32
[HEVC] 8 layers in VPS but only 4 supported in GPAC
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
[HEVC] Error parsing NAL unit type 33
Track Importing HEVC - Width 1 Height 6 FPS 488447261/488447261
[HEVC] Error parsing NAL unit type 390)
[HEVC] SEI user message type 249 size error (109 but 15 remain), skipping SEI message
media_tools/av_parsers.c:8039:32: runtime error: index 4 out of bounds for type 'u8 [4]'
```
# POC
[poc_bof10.zip](https://github.com/gpac/gpac/files/10251487/poc_bof10.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| buffer overflow in function gf_hevc_read_vps_bs_internal of media_tools/av_parsers.c:8039 | https://api.github.com/repos/gpac/gpac/issues/2356/comments | 0 | 2022-12-17T10:31:37Z | 2022-12-17T11:29:29Z | https://github.com/gpac/gpac/issues/2356 | 1,501,315,341 | 2,356 |
[
"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/
# Description
buffer overflow in function hevc_parse_vps_extension of media_tools/av_parsers.c:7662
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev644-g5c4df2a67-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_bof12.mp4
```
Crash reported by sanitizer
```
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] 51 layers in VPS but only 4 supported in GPAC
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
Track Importing HEVC - Width 1 Height 6 FPS 25000/1000
[HEVC] 56 layers in VPS but only 4 supported in GPAC
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
media_tools/av_parsers.c:7662:23: runtime error: index 56 out of bounds for type 'u32 [4]'
```
# POC
[poc_bof12.zip](https://github.com/gpac/gpac/files/10251497/poc_bof12.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| buffer overflow in function hevc_parse_vps_extension of media_tools/av_parsers.c:7662 | https://api.github.com/repos/gpac/gpac/issues/2355/comments | 0 | 2022-12-17T10:31:33Z | 2022-12-17T11:29:28Z | https://github.com/gpac/gpac/issues/2355 | 1,501,315,271 | 2,355 |
[
"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/
# Description
stack-buffer-overflow utils/bitstream.c:732 in gf_bs_read_data
# Version info
latest version atm
```
MP4Box - GPAC version 2.1-DEV-rev644-g5c4df2a67-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_bof11.mp4
```
Crash reported by sanitizer
```
Track Importing AAC - SampleRate 88200 Num Channels 8
=================================================================
==325854==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc52ec0940 at pc 0x7fa1e477c501 bp 0x7ffc52ebf3a0 sp 0x7ffc52ebf390
WRITE of size 1 at 0x7ffc52ec0940 thread T0
#0 0x7fa1e477c500 in gf_bs_read_data utils/bitstream.c:732
#1 0x7fa1e59d0a8c in latm_dmx_sync_frame_bs filters/reframe_latm.c:170
#2 0x7fa1e59d289f in latm_dmx_sync_frame_bs filters/reframe_latm.c:86
#3 0x7fa1e59d289f in latm_dmx_process filters/reframe_latm.c:526
#4 0x7fa1e55eabac in gf_filter_process_task filter_core/filter.c:2795
#5 0x7fa1e55aa703 in gf_fs_thread_proc filter_core/filter_session.c:1859
#6 0x7fa1e55b700e in gf_fs_run filter_core/filter_session.c:2120
#7 0x7fa1e4ff9a21 in gf_media_import media_tools/media_import.c:1551
#8 0x55a84c1ccb4c in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#9 0x55a84c1d75d7 in cat_isomedia_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:2536
#10 0x55a84c181130 in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4562
#11 0x55a84c181130 in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#12 0x7fa1e2580d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#13 0x7fa1e2580e3f in __libc_start_main_impl ../csu/libc-start.c:392
#14 0x55a84c15dcb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
Address 0x7ffc52ec0940 is located in stack of thread T0 at offset 5088 in frame
#0 0x7fa1e59d20af in latm_dmx_process filters/reframe_latm.c:456
This frame has 19 object(s):
[48, 52) 'pck_size' (line 461)
[64, 68) 'latm_frame_size' (line 525)
[80, 84) 'dsi_s' (line 312)
[96, 104) 'output' (line 460)
[128, 136) 'dsi_b' (line 311)
[160, 184) '<unknown>'
[224, 248) '<unknown>'
[288, 312) '<unknown>'
[352, 376) '<unknown>'
[416, 440) '<unknown>'
[480, 504) '<unknown>'
[544, 568) '<unknown>'
[608, 632) '<unknown>'
[672, 696) '<unknown>'
[736, 760) '<unknown>'
[800, 824) '<unknown>'
[864, 888) '<unknown>'
[928, 952) '<unknown>'
[992, 5088) 'latm_buffer' (line 524) <== Memory access at offset 5088 overflows 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 utils/bitstream.c:732 in gf_bs_read_data
Shadow bytes around the buggy address:
0x10000a5d00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10000a5d0120: 00 00 00 00 00 00 00 00[f3]f3 f3 f3 f3 f3 f3 f3
0x10000a5d0130: f3 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
0x10000a5d0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10000a5d0170: 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
==325854==ABORTING
```
# POC
[poc_bof11.zip](https://github.com/gpac/gpac/files/10251498/poc_bof11.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| stack-buffer-overflow utils/bitstream.c:732 in gf_bs_read_data | https://api.github.com/repos/gpac/gpac/issues/2354/comments | 0 | 2022-12-17T10:31:30Z | 2022-12-17T11:29:28Z | https://github.com/gpac/gpac/issues/2354 | 1,501,315,203 | 2,354 |
[
"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/
# Description
buffer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8273
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev617-g85ce76efd-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -cat poc_bof9.mp4
```
Crash reported by sanitizer
```
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing Sequence Param Set
media_tools/av_parsers.c:8273:32: runtime error: index 159 out of bounds for type 'HEVC_RepFormat [16]'
```
# POC
[poc_bof9.zip](https://github.com/gpac/gpac/files/10247605/poc_bof9.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| buffer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8273 | https://api.github.com/repos/gpac/gpac/issues/2353/comments | 0 | 2022-12-16T17:03:35Z | 2022-12-16T17:36:36Z | https://github.com/gpac/gpac/issues/2353 | 1,500,560,661 | 2,353 |
[
"gpac",
"gpac"
] | I would like to support GPAC by implementing ephemeral preview environments, powered by [Uffizzi](https://github.com/UffizziCloud/uffizzi)
Uffizzi is an Open Source, full stack, previews engine, and our platform is available completely free for GPAC (and all open source projects). An Uffizzi integration with GPAC will provision preview environments for every PR opened on GPAC in the cloud, allowing faster reviews, faster merges, and increased release velocity.
[Here are the open-source projects](https://uffizzi.notion.site/) which are currently using Uffizzi to provision previews.
Uffizzi is purpose-built for the task of previewing PRs and it integrates with your workflow to deploy preview environments in the background without any manual steps for maintainers or contributors.
I'll go ahead and create an Initial PoC for you if you think there is value in this proposal.
I work on the Uffizzi project.
cc @waveywaves | Maintainer Productivity Enhancement with Preview Environments for PRs | https://api.github.com/repos/gpac/gpac/issues/2352/comments | 1 | 2022-12-16T14:59:15Z | 2023-01-04T10:09:12Z | https://github.com/gpac/gpac/issues/2352 | 1,500,372,512 | 2,352 |
[
"gpac",
"gpac"
] | Hi, when packaging a cmaf video track e.g. mp4Box -dash 1000 -out out.mpd --cmaf=cmfc vvc_8b_bt709-ClosedGOP-3840x2160-24fps-60s-4Mbps.mp4 the mp4 file written is not fullly cmaf compliant namely:
the stss box absent (cmaf mention this shall be present if not all samples are sync samples which is not the case for this video track)
tkhd flags shall be 0x000007 (23000-19 9.2) for video tracks , it is set to 3 in my test file.
It would be great if these can be fixed to improve the CMAF compliance, thank you
| cmaf video track compliance tkhd/stss | https://api.github.com/repos/gpac/gpac/issues/2351/comments | 4 | 2022-12-15T11:19:18Z | 2022-12-16T08:55:28Z | https://github.com/gpac/gpac/issues/2351 | 1,498,249,910 | 2,351 |
[
"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/
# Description
buffer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8261
```c
//sps_rep_format_idx = 0;
if (multiLayerExtSpsFlag) {
sps->update_rep_format_flag = gf_bs_read_int_log(bs, 1, "update_rep_format_flag");
if (sps->update_rep_format_flag) {
sps->rep_format_idx = gf_bs_read_int_log(bs, 8, "rep_format_idx");
if (sps->rep_format_idx>15) {
return -1;
}
} else {
sps->rep_format_idx = vps->rep_format_idx[layer_id]; // overflow
}
```
# Version info
latest version
```
MP4Box - GPAC version 2.1-DEV-rev593-g007bf61a0-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof8.mov
```
Crash reported by sanitizer
```
[iso file] Unknown box type dvbs in parent stsd
[HEVC] Error parsing NAL unit type 16
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 32
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[HEVC] Error parsing NAL unit type 16
Track Importing HEVC - Width -10 Height -20316159 FPS 25000/1000
[HEVC] Error parsing NAL Unit 8 (size 0 type 0 frame 0 last POC 0) - skipping
[HEVC] Error parsing NAL unit type 16
[HEVC] Error parsing NAL unit type 0
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 32
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 34
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Wrong number of layer sets in VPS 5
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 32
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 33
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 34
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Error parsing NAL unit type 34
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] sorry, 11 layers in VPS but only 4 supported
[HEVC] Error parsing NAL unit type 32
[HEVC] Error parsing Video Param Set
media_tools/av_parsers.c:8261:45: runtime error: index 45 out of bounds for type 'u32 [16]'
```
# POC
[poc_bof8.zip](https://github.com/gpac/gpac/files/10212064/poc_bof8.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | buffer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8261 | https://api.github.com/repos/gpac/gpac/issues/2350/comments | 0 | 2022-12-12T21:13:33Z | 2022-12-13T09:18:38Z | https://github.com/gpac/gpac/issues/2350 | 1,492,780,269 | 2,350 |
[
"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/
# Description
buffer overflow in eac3_update_channels function of media_tools/av_parsers.c:9113
```c
static void eac3_update_channels(GF_AC3Config *hdr)
{
u32 i;
for (i=0; i<hdr->nb_streams; i++) {
u32 nb_ch = ac3_mod_to_total_chans[hdr->streams[i].acmod]; // overflow
if (hdr->streams[i].nb_dep_sub) {
hdr->streams[i].chan_loc = eac3_chanmap_to_chan_loc(hdr->streams[i].chan_loc);
nb_ch += gf_eac3_get_chan_loc_count(hdr->streams[i].chan_loc);
}
if (hdr->streams[i].lfon) nb_ch++;
hdr->streams[i].channels = nb_ch;
hdr->streams[i].surround_channels = ac3_mod_to_surround_chans[hdr->streams[i].acmod];
}
}
```
# Version info
latest version
```
MP4Box - GPAC version 2.1-DEV-rev593-g007bf61a0-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof7.swf
```
Crash reported by sanitizer
```
[iso file] Unknown box type dvbs in parent stsd
Track Importing EAC-3 - SampleRate 32000 Num Channels 6
[AC3Dmx] 24 bytes unrecovered before sync word
[AC3Dmx] 13 bytes unrecovered before sync word
media_tools/av_parsers.c:9113:50: runtime error: index 8 out of bounds for type 'GF_AC3StreamInfo [8]'
```
# POC
[poc_bof7.zip](https://github.com/gpac/gpac/files/10212046/poc_bof7.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | buffer overflow in eac3_update_channels function of media_tools/av_parsers.c:9113 | https://api.github.com/repos/gpac/gpac/issues/2349/comments | 0 | 2022-12-12T21:08:37Z | 2022-12-13T09:18:38Z | https://github.com/gpac/gpac/issues/2349 | 1,492,772,918 | 2,349 |
[
"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/
# Description
heap-buffer-overflow filters/reframe_nalu.c:3235 in naludmx_process
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev587-gff923ef56-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_hof.mov
```
Crash reported by sanitizer
```
[VVC] Error parsing NAL unit type 2
[VVC] Error parsing NAL unit type 16
[VVC] wrong num tile rows 43 in PPS
[VVC] Error parsing NAL unit type 16
[VVC] Error parsing Picture Param Set
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Error parsing NAL unit type 15
[VVC] Error parsing NAL unit type 8
Track Importing VVC - Width 4 Height 1 FPS 218971581/226394117
[VVC] wrong num tile rows 43 in PPS
[VVC] Error parsing NAL unit type 16
[VVC] Error parsing Picture Param Set
[VVC] Error parsing NAL unit type 0
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Error parsing NAL unit type 15
[VVC] Error parsing NAL unit type 8
[VVC] wrong num tile rows 43 in PPS
[VVC] Error parsing NAL unit type 16
[VVC] Error parsing Picture Param Set
=================================================================
==834991==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61700001065d at pc 0x7f732dd65152 bp 0x7ffd2c2cd4d0 sp 0x7ffd2c2cd4c0
READ of size 1 at 0x61700001065d thread T0
#0 0x7f732dd65151 in naludmx_process filters/reframe_nalu.c:3235
#1 0x7f732d91b9dc in gf_filter_process_task filter_core/filter.c:2760
#2 0x7f732d8db663 in gf_fs_thread_proc filter_core/filter_session.c:1859
#3 0x7f732d8e7f5e in gf_fs_run filter_core/filter_session.c:2120
#4 0x7f732d32b0d1 in gf_media_import media_tools/media_import.c:1551
#5 0x55f5fd358aec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#6 0x55f5fd30d3db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#7 0x55f5fd30d3db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#8 0x7f732a8b6d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#9 0x7f732a8b6e3f in __libc_start_main_impl ../csu/libc-start.c:392
#10 0x55f5fd2e9cb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
0x61700001065d is located 1 bytes to the right of 732-byte region [0x617000010380,0x61700001065c)
allocated by thread T0 here:
#0 0x7f7330410c18 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:164
#1 0x7f732dd622d8 in naludmx_process filters/reframe_nalu.c:3079
#2 0x7f732d91b9dc in gf_filter_process_task filter_core/filter.c:2760
#3 0x7f732d8db663 in gf_fs_thread_proc filter_core/filter_session.c:1859
#4 0x7f732d8e7f5e in gf_fs_run filter_core/filter_session.c:2120
#5 0x7f732d32b0d1 in gf_media_import media_tools/media_import.c:1551
#6 0x55f5fd358aec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#7 0x55f5fd30d3db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#8 0x55f5fd30d3db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#9 0x7f732a8b6d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-buffer-overflow filters/reframe_nalu.c:3235 in naludmx_process
Shadow bytes around the buggy address:
0x0c2e7fffa070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fffa080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fffa090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fffa0a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c2e7fffa0b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c2e7fffa0c0: 00 00 00 00 00 00 00 00 00 00 00[04]fa fa fa fa
0x0c2e7fffa0d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa0e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa0f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c2e7fffa110: 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
==834991==ABORTING
```
# POC
[poc_hof.zip](https://github.com/gpac/gpac/files/10208161/poc_hof.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | heap-buffer-overflow filters/reframe_nalu.c:3235 in naludmx_process | https://api.github.com/repos/gpac/gpac/issues/2348/comments | 0 | 2022-12-12T13:13:15Z | 2022-12-12T17:31:01Z | https://github.com/gpac/gpac/issues/2348 | 1,491,860,529 | 2,348 |
[
"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/
# Description
Integer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8316
```c
sps->max_CU_width = (1 << (sps->log2_min_luma_coding_block_size + sps->log2_diff_max_min_luma_coding_block_size));
sps->max_CU_height = (1 << (sps->log2_min_luma_coding_block_size + sps->log2_diff_max_min_luma_coding_block_size));
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_int.mov
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Warning: Error parsing NAL unit
media_tools/av_parsers.c:8316:25: runtime error: shift exponent 146 is too large for 32-bit type 'int'
```
# POC
[poc_int.zip](https://github.com/gpac/gpac/files/10202363/poc_int.zip)
# Impact
Potentially causing DoS and corrupting data structure
# Credit
Xdchase | Integer overflow in gf_hevc_read_sps_bs_internal function of media_tools/av_parsers.c:8316 | https://api.github.com/repos/gpac/gpac/issues/2347/comments | 0 | 2022-12-11T14:02:17Z | 2022-12-12T09:59:04Z | https://github.com/gpac/gpac/issues/2347 | 1,490,026,124 | 2,347 |
[
"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/
# Description
Buffer overflow in hevc_parse_vps_extension function of media_tools/av_parsers.c
```c
for (i = 0; i < (num_scalability_types - splitting_flag); i++) {
dimension_id_len[i] = 1 + gf_bs_read_int_log_idx(bs, 3, "dimension_id_len_minus1", i); // overflow at dimension_id_len
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof6.mp4
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[HEVC] Warning: Error parsing NAL unit
media_tools/av_parsers.c:7633:19: runtime error: index 16 out of bounds for type 'u8 [16]'
```
# POC
[poc_bof6.zip](https://github.com/gpac/gpac/files/10202354/poc_bof6.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | Buffer overflow in hevc_parse_vps_extension function of media_tools/av_parsers.c | https://api.github.com/repos/gpac/gpac/issues/2346/comments | 0 | 2022-12-11T13:53:19Z | 2022-12-12T09:59:03Z | https://github.com/gpac/gpac/issues/2346 | 1,490,015,617 | 2,346 |
[
"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/
# Description
Null pointer dereference filters/dmx_m2ts.c:343 in m2tsdmx_declare_pid
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_nderef.avi
```
# Crash reported by sanitizer
```
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PMT descriptor! size 54, desc size 48 but position 5
MORE sections on pid 4144
Broken PMT descriptor! size 54, desc size 48 but position 10
Broken PMT descriptor! size 54, desc size 48 but position 15
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
Broken PMT descriptor! size 54, desc size 48 but position 20
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
MORE sections on pid 4144
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
[MPEG-2 TS] Invalid PMT es descriptor size for PID 5859
[MPEG-2 TS] TS Packet 3 is scrambled - not supported
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PMT descriptor! size 54, desc size 48 but position 5
MORE sections on pid 4144
Broken PMT descriptor! size 54, desc size 48 but position 10
Broken PMT descriptor! size 54, desc size 48 but position 15
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
Broken PMT descriptor! size 54, desc size 48 but position 20
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
MORE sections on pid 4144
[MPEG-2 TS] PID 4144 reused across programs 8192 and 8192, not completely supported
[MPEG-2 TS] Invalid PMT es descriptor size for PID 5859
[M2TSDmx] Stream type 0x30 not supported - ignoring pid
filters/dmx_m2ts.c:343:51: runtime error: member access within null pointer of type 'struct GF_InitialObjectDescriptor'
```
# POC
[poc_nderef.zip](https://github.com/gpac/gpac/files/10202316/poc_nderef.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | Null pointer dereference filters/dmx_m2ts.c:343 in m2tsdmx_declare_pid | https://api.github.com/repos/gpac/gpac/issues/2345/comments | 0 | 2022-12-11T13:39:08Z | 2022-12-12T09:59:03Z | https://github.com/gpac/gpac/issues/2345 | 1,489,995,127 | 2,345 |
[
"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/
# Description
heap-use-after-free filters/dmx_m2ts.c:470 in m2tsdmx_declare_pid
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_uaf.avi
```
# Crash reported by sanitizer
```
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
[MPEG-2 TS] PID 1863: Bad Adaptation Descriptor found (tag 100) size is 100 but only 93 bytes available
stream type DSM CC user private sections on pid 32
[MPEG-2 TS] Invalid PMT es descriptor size for PID 32
[MPEG-2 TS] Invalid PMT es descriptor size for PID 5364
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
Broken PAT found reserved PID 0, ignoring
[MPEG-2 TS] PID 1863: Bad Adaptation Descriptor found (tag 100) size is 100 but only 93 bytes available
stream type DSM CC user private sections on pid 32
[MPEG-2 TS] Invalid PMT es descriptor size for PID 32
[MPEG-2 TS] Invalid PMT es descriptor size for PID 5364
=================================================================
==583780==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000004548 at pc 0x7fa6cb05f685 bp 0x7ffc93e21020 sp 0x7ffc93e21010
READ of size 8 at 0x607000004548 thread T0
#0 0x7fa6cb05f684 in m2tsdmx_declare_pid filters/dmx_m2ts.c:470
#1 0x7fa6cb05f98a in m2tsdmx_setup_program filters/dmx_m2ts.c:592
#2 0x7fa6cb06245b in m2tsdmx_on_event filters/dmx_m2ts.c:876
#3 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1779
#4 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1132
#5 0x7fa6ca9439b6 in gf_m2ts_section_complete media_tools/mpegts.c:624
#6 0x7fa6ca9452af in gf_m2ts_gather_section media_tools/mpegts.c:755
#7 0x7fa6ca94a532 in gf_m2ts_process_packet media_tools/mpegts.c:2721
#8 0x7fa6ca94dd68 in gf_m2ts_process_data media_tools/mpegts.c:2813
#9 0x7fa6cb05a250 in m2tsdmx_process filters/dmx_m2ts.c:1420
#10 0x7fa6caf29bcc in gf_filter_process_task filter_core/filter.c:2750
#11 0x7fa6caee9af3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#12 0x7fa6caef63ee in gf_fs_run filter_core/filter_session.c:2120
#13 0x7fa6ca938fd1 in gf_media_import media_tools/media_import.c:1551
#14 0x55f87208daec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#15 0x55f8720423db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#16 0x55f8720423db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#17 0x7fa6c7ec3d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#18 0x7fa6c7ec3e3f in __libc_start_main_impl ../csu/libc-start.c:392
#19 0x55f87201ecb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
0x607000004548 is located 8 bytes inside of 80-byte region [0x607000004540,0x607000004590)
freed by thread T0 here:
#0 0x7fa6cda1ec18 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:164
#1 0x7fa6ca0aff20 in realloc_chain utils/list.c:621
#2 0x7fa6ca0aff20 in gf_list_add utils/list.c:630
#3 0x7fa6caed06d0 in gf_props_set_property filter_core/filter_props.c:1098
#4 0x7fa6cae8a35d in gf_filter_pid_set_property_full filter_core/filter_pid.c:5411
#5 0x7fa6cae8a35d in gf_filter_pid_set_property filter_core/filter_pid.c:5418
#6 0x7fa6cb05c6b3 in m2tsdmx_declare_pid filters/dmx_m2ts.c:454
#7 0x7fa6cb05f98a in m2tsdmx_setup_program filters/dmx_m2ts.c:592
#8 0x7fa6cb06245b in m2tsdmx_on_event filters/dmx_m2ts.c:876
#9 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1779
#10 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1132
#11 0x7fa6ca9439b6 in gf_m2ts_section_complete media_tools/mpegts.c:624
#12 0x7fa6ca9452af in gf_m2ts_gather_section media_tools/mpegts.c:755
#13 0x7fa6ca94a532 in gf_m2ts_process_packet media_tools/mpegts.c:2721
#14 0x7fa6ca94dd68 in gf_m2ts_process_data media_tools/mpegts.c:2813
#15 0x7fa6cb05a250 in m2tsdmx_process filters/dmx_m2ts.c:1420
#16 0x7fa6caf29bcc in gf_filter_process_task filter_core/filter.c:2750
#17 0x7fa6caee9af3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#18 0x7fa6caef63ee in gf_fs_run filter_core/filter_session.c:2120
#19 0x7fa6ca938fd1 in gf_media_import media_tools/media_import.c:1551
#20 0x55f87208daec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#21 0x55f8720423db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#22 0x55f8720423db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#23 0x7fa6c7ec3d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
previously allocated by thread T0 here:
#0 0x7fa6cda1ec18 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:164
#1 0x7fa6ca0aff20 in realloc_chain utils/list.c:621
#2 0x7fa6ca0aff20 in gf_list_add utils/list.c:630
#3 0x7fa6caed0d5f in gf_props_merge_property filter_core/filter_props.c:1199
#4 0x7fa6cae9661b in gf_filter_pid_new filter_core/filter_pid.c:5258
#5 0x7fa6cb05adf9 in m2tsdmx_declare_pid filters/dmx_m2ts.c:411
#6 0x7fa6cb05f98a in m2tsdmx_setup_program filters/dmx_m2ts.c:592
#7 0x7fa6cb06245b in m2tsdmx_on_event filters/dmx_m2ts.c:876
#8 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1779
#9 0x7fa6ca9507d4 in gf_m2ts_process_pmt media_tools/mpegts.c:1132
#10 0x7fa6ca9439b6 in gf_m2ts_section_complete media_tools/mpegts.c:624
#11 0x7fa6ca9452af in gf_m2ts_gather_section media_tools/mpegts.c:755
#12 0x7fa6ca94a532 in gf_m2ts_process_packet media_tools/mpegts.c:2721
#13 0x7fa6ca94dd68 in gf_m2ts_process_data media_tools/mpegts.c:2813
#14 0x7fa6cb05a250 in m2tsdmx_process filters/dmx_m2ts.c:1420
#15 0x7fa6caf29bcc in gf_filter_process_task filter_core/filter.c:2750
#16 0x7fa6caee9af3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#17 0x7fa6caef63ee in gf_fs_run filter_core/filter_session.c:2120
#18 0x7fa6ca938fd1 in gf_media_import media_tools/media_import.c:1551
#19 0x55f87208daec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#20 0x55f8720423db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#21 0x55f8720423db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#22 0x7fa6c7ec3d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: heap-use-after-free filters/dmx_m2ts.c:470 in m2tsdmx_declare_pid
Shadow bytes around the buggy address:
0x0c0e7fff8850: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 fa fa
0x0c0e7fff8860: fa fa 00 00 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0e7fff8870: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 00 00
0x0c0e7fff8880: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
0x0c0e7fff8890: 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 00 00
=>0x0c0e7fff88a0: 00 00 00 00 fa fa fa fa fd[fd]fd fd fd fd fd fd
0x0c0e7fff88b0: fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff88c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff88d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff88e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff88f0: 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
==583780==ABORTING
```
# POC
[poc_uaf.zip](https://github.com/gpac/gpac/files/10202295/poc_uaf.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | heap-use-after-free filters/dmx_m2ts.c:470 in m2tsdmx_declare_pid | https://api.github.com/repos/gpac/gpac/issues/2344/comments | 0 | 2022-12-11T13:29:49Z | 2022-12-12T09:59:03Z | https://github.com/gpac/gpac/issues/2344 | 1,489,981,443 | 2,344 |
[
"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/
# Description
Buffer overflow in gf_text_process_sub function of filters/load_text.c
```c
while (szLine[i+1+j] && szLine[i+1+j]!='}') {
szTime[i] = szLine[i+1+j]; // overflow at szTime
i++;
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof5.avi
```
Crash reported by sanitizer
```
Track Importing Timed Text - Text track 400 x 60 font Serif (size 18) layer 0
[TXTIn] Bad SUB file - expecting "{" got "{"
[TXTIn] corrupted SUB frame (line 2) - ends (at 0 ms) before start of current frame (6 ms) - skipping
filters/load_text.c:2569:10: runtime error: index 20 out of bounds for type 'char [20]'
```
# POC
[poc_bof5.zip](https://github.com/gpac/gpac/files/10202277/poc_bof5.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase | Buffer overflow in gf_text_process_sub function of filters/load_text.c | https://api.github.com/repos/gpac/gpac/issues/2343/comments | 0 | 2022-12-11T13:21:25Z | 2022-12-12T09:59:02Z | https://github.com/gpac/gpac/issues/2343 | 1,489,970,920 | 2,343 |
[
"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/
# Description
buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c, check needed for num_exp_tile_columns
```c
for (i=0; i<num_exp_tile_columns; i++) {
u32 nb_ctb_width = 1 + gf_bs_read_ue_log_idx(bs, "tile_column_width_minus1", i);
nb_ctb_left -= nb_ctb_width;
pps->tile_cols_width_ctb[i] = nb_ctb_width; // when i == 30, overflow at tile_cols_width_ctb
nb_ctb_last = nb_ctb_width;
pps->num_tile_cols++;
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof4.mp4
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Warning: Error parsing NAL unit
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Warning: Error parsing NAL unit
media_tools/av_parsers.c:10957:28: runtime error: index 30 out of bounds for type 'u32 [30]'
```
# POC
[poc_bof4.zip](https://github.com/gpac/gpac/files/10199853/poc_bof4.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| Another Buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c | https://api.github.com/repos/gpac/gpac/issues/2341/comments | 0 | 2022-12-10T10:13:10Z | 2022-12-12T09:59:02Z | https://github.com/gpac/gpac/issues/2341 | 1,488,336,138 | 2,341 |
[
"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/
# Description
buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c
```c
while (nb_ctb_left >= uni_size_ctb) {
nb_ctb_left -= uni_size_ctb;
pps->tile_cols_width_ctb[pps->num_tile_cols] = uni_size_ctb; // when pps->num_tile_cols == 30, overflow at pps->tile_cols_width_ctb
pps->num_tile_cols++;
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof3.mp4
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Warning: Error parsing NAL unit
[Core] exp-golomb read failed, not enough bits in bitstream !
media_tools/av_parsers.c:10964:28: runtime error: index 30 out of bounds for type 'u32 [30]'
```
# POC
[poc_bof3.zip](https://github.com/gpac/gpac/files/10199841/poc_bof3.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| Another Buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c | https://api.github.com/repos/gpac/gpac/issues/2340/comments | 0 | 2022-12-10T10:08:12Z | 2022-12-12T09:59:02Z | https://github.com/gpac/gpac/issues/2340 | 1,488,326,210 | 2,340 |
[
"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/
# Description
buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c
```c
while (nb_ctb_left >= uni_size_ctb) {
nb_ctb_left -= uni_size_ctb;
pps->tile_rows_height_ctb[pps->num_tile_rows] = uni_size_ctb; // when pps->num_tile_rows == 32, overflow at pps->tile_rows_height_ctb
pps->num_tile_rows++;
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc_bof2.mp4
```
Crash reported by sanitizer
```
[Core] exp-golomb read failed, not enough bits in bitstream !
[VVC] Warning: Error parsing NAL unit
media_tools/av_parsers.c:10985:29: runtime error: index 33 out of bounds for type 'u32 [33]'
```
# POC
[poc_bof2.zip](https://github.com/gpac/gpac/files/10199807/poc_bof2.zip)
# Impact
Potentially causing DoS and RCE
# Credit
Xdchase
| Buffer overflow in gf_vvc_read_pps_bs_internal function of media_tools/av_parsers.c | https://api.github.com/repos/gpac/gpac/issues/2339/comments | 0 | 2022-12-10T10:00:27Z | 2022-12-12T09:59:01Z | https://github.com/gpac/gpac/issues/2339 | 1,488,317,476 | 2,339 |
[
"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/
# Description
buffer overflow in gf_vvc_read_sps_bs_internal function of media_tools/av_parsers.c
```c
for (i=0; i<sps_rpl1_same_as_rpl0; i++) {
u32 j;
sps->num_ref_pic_lists[i] = gf_bs_read_ue_log_idx(bs, "sps_num_ref_pic_lists", i);
for (j=0; j<sps->num_ref_pic_lists[i]; j++) {
s32 res = vvc_parse_ref_pic_list_struct(bs, sps, i, j, &sps->rps[i][j]); // when j == 64, overflow sps->rps
if (res<0) return res;
}
}
```
# Version info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile and run
```
./configure --enable-sanitizer
make
./MP4Box import -add poc.mp4
```
Crash reported by sanitizer
```
[VVC] Warning: Error parsing NAL unit
[Core] exp-golomb read failed, not enough bits in bitstream !
media_tools/av_parsers.c:10710:71: runtime error: index 65 out of bounds for type 'VVC_RefPicList [64]'
```
# POC
[poc_bof.zip](https://github.com/gpac/gpac/files/10199702/poc_bof.zip)
# Impact
Potentially causing DoS and RCE
# Credit
xdchase
| Buffer overflow in gf_vvc_read_sps_bs_internal function of media_tools/av_parsers.c | https://api.github.com/repos/gpac/gpac/issues/2338/comments | 0 | 2022-12-10T09:54:16Z | 2022-12-12T09:59:01Z | https://github.com/gpac/gpac/issues/2338 | 1,488,308,020 | 2,338 |
[
"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/
# Description
Forget to check the return value of `gf_swf_read_header` in gf_sm_load_init_swf. `gf_swf_read_header` should fall fast if error is detected.
```c
gf_swf_read_header(read);
load->ctx->scene_width = FIX2INT(read->width);
load->ctx->scene_height = FIX2INT(read->height);
load->ctx->is_pixel_metrics = 1;
```
# Verison info
```
MP4Box - GPAC version 2.1-DEV-rev574-g9d5bb184b-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer
Features: GPAC_CONFIG_LINUX GPAC_64_BITS GPAC_HAS_IPV6 GPAC_HAS_SSL GPAC_HAS_SOCK_UN GPAC_MINIMAL_ODF GPAC_HAS_QJS GPAC_HAS_LINUX_DVB GPAC_DISABLE_3D
```
# Reproduce
compile with
```
./configure --enable-sanitizer
make
```
run with poc.swf (in attachment)
```
./MP4Box import -add poc.swf
```
crash triggered
```
[TXTLoad] Unknown text format for poc.swf
Failed to connect filter fin PID poc.swf to filter txtin: Feature Not Supported
Blacklisting txtin as output from fin and retrying connections
AddressSanitizer:DEADLYSIGNAL
=================================================================
==215517==ERROR: AddressSanitizer: SEGV on unknown address 0x615100000035 (pc 0x7f022cad9afb bp 0x7ffdc954ed70 sp 0x7ffdc954dc40 T0)
==215517==The signal is caused by a READ memory access.
#0 0x7f022cad9afb in gf_sm_load_init_swf scene_manager/swf_parse.c:2667
#1 0x7f022ca5125f in gf_sm_load_init scene_manager/scene_manager.c:692
#2 0x7f022d169cea in ctxload_process filters/load_bt_xmt.c:476
#3 0x7f022cecfbcc in gf_filter_process_task filter_core/filter.c:2750
#4 0x7f022ce8faf3 in gf_fs_thread_proc filter_core/filter_session.c:1859
#5 0x7f022ce9c3ee in gf_fs_run filter_core/filter_session.c:2120
#6 0x7f022c8defd1 in gf_media_import media_tools/media_import.c:1551
#7 0x56297ebccaec in import_file /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/fileimport.c:1498
#8 0x56297eb813db in do_add_cat /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:4508
#9 0x56297eb813db in mp4box_main /home/sumuchuan/Desktop/gpac_fuzz/gpac/applications/mp4box/mp4box.c:6124
#10 0x7f0229e69d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f0229e69e3f in __libc_start_main_impl ../csu/libc-start.c:392
#12 0x56297eb5dcb4 in _start (/home/sumuchuan/Desktop/gpac_fuzz/gpac/bin/gcc/MP4Box+0xabcb4)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV scene_manager/swf_parse.c:2667 in gf_sm_load_init_swf
==215517==ABORTING
```
# Gdb
```
Program received signal SIGSEGV, Segmentation fault.
0x00007f2d4fe54afb in gf_sm_load_init_swf (load=load@entry=0x6110000084f0) at scene_manager/swf_parse.c:2667
2667 load->ctx->scene_width = FIX2INT(read->width);
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
───────────────────────────────────────────────────────────────────────[ REGISTERS / show-flags off / show-compact-regs off ]────────────────────────────────────────────────────────────────────────
*RAX 0x611000008508 —▸ 0x604000002a90 —▸ 0x616000001280 ◂— 0x0
RBX 0xfffecf4d70a ◂— 0x0
RCX 0xfffecf4d6ea ◂— 0x0
RDX 0x0
*RDI 0x615100000035 ◂— 0x0
RSI 0x0
*R8 0x611000008528 ◂— 0xa9
R9 0x610000000bd0 —▸ 0x200000002 ◂— 0x0
R10 0x610000000bd4 —▸ 0x20000000002 ◂— 0x0
R11 0x610000000bd0 —▸ 0x200000002 ◂— 0x0
R12 0x6110000084f0 ◂— 9 /* '\t' */
*R13 0x6150fffffffd ◂— 0x0
*R14 0x615000013e4c —▸ 0xb40000000a9 ◂— 0x0
*R15 0x611000008508 —▸ 0x604000002a90 —▸ 0x616000001280 ◂— 0x0
*RBP 0x7fff67a6c940 —▸ 0x7fff67a6ca60 —▸ 0x7fff67a6dd60 —▸ 0x7fff67a6ddf0 —▸ 0x7fff67a6def0 ◂— ...
*RSP 0x7fff67a6b810 ◂— 0xf4dc4ae
*RIP 0x7f2d4fe54afb (gf_sm_load_init_swf+747) ◂— cvttss2si ecx, dword ptr [r13 + 0x38]
────────────────────────────────────────────────────────────────────────────────[ DISASM / x86-64 / set emulate on ]─────────────────────────────────────────────────────────────────────────────────
► 0x7f2d4fe54afb <gf_sm_load_init_swf+747> cvttss2si ecx, dword ptr [r13 + 0x38]
0x7f2d4fe54b01 <gf_sm_load_init_swf+753> shr rax, 3
0x7f2d4fe54b05 <gf_sm_load_init_swf+757> cmp byte ptr [rax + 0x7fff8000], 0
0x7f2d4fe54b0c <gf_sm_load_init_swf+764> jne gf_sm_load_init_swf+2550 <gf_sm_load_init_swf+2550>
0x7f2d4fe54b12 <gf_sm_load_init_swf+770> mov rsi, qword ptr [r12 + 0x18]
0x7f2d4fe54b17 <gf_sm_load_init_swf+775> test rsi, rsi
0x7f2d4fe54b1a <gf_sm_load_init_swf+778> je gf_sm_load_init_swf+2570 <gf_sm_load_init_swf+2570>
0x7f2d4fe54b20 <gf_sm_load_init_swf+784> test sil, 7
0x7f2d4fe54b24 <gf_sm_load_init_swf+788> jne gf_sm_load_init_swf+2570 <gf_sm_load_init_swf+2570>
0x7f2d4fe54b2a <gf_sm_load_init_swf+794> lea rdx, [rsi + 0x18]
0x7f2d4fe54b2e <gf_sm_load_init_swf+798> cmp rsi, -0x18
──────────────────────────────────────────────────────────────────────────────────────────[ SOURCE (CODE) ]──────────────────────────────────────────────────────────────────────────────────────────
In file: /home/sumuchuan/Desktop/gpac_fuzz/gpac/src/scene_manager/swf_parse.c
2662 read->flags = load->swf_import_flags;
2663 read->flat_limit = FLT2FIX(load->swf_flatten_limit);
2664 load->loader_priv = read;
2665
2666 gf_swf_read_header(read);
► 2667 load->ctx->scene_width = FIX2INT(read->width);
2668 load->ctx->scene_height = FIX2INT(read->height);
2669 load->ctx->is_pixel_metrics = 1;
2670
2671 if (!(load->swf_import_flags & GF_SM_SWF_SPLIT_TIMELINE) ) {
2672 swf_report(read, GF_OK, "ActionScript disabled");
──────────────────────────────────────────────────────────────────────────────────────────────[ STACK ]──────────────────────────────────────────────────────────────────────────────────────────────
00:0000│ rsp 0x7fff67a6b810 ◂— 0xf4dc4ae
01:0008│ 0x7fff67a6b818 —▸ 0x7fff67a6c910 —▸ 0x7fff67a6c9b0 —▸ 0x60e000667773 ◂— 0x0
02:0010│ 0x7fff67a6b820 —▸ 0x61100000852c —▸ 0x2b000000000 ◂— 0x0
03:0018│ 0x7fff67a6b828 —▸ 0x611000008528 ◂— 0xa9
04:0020│ 0x7fff67a6b830 —▸ 0x7fff67a6b850 ◂— 0x41b58ab3
05:0028│ 0x7fff67a6b838 —▸ 0x611000008530 —▸ 0x6020000002b0 ◂— '/tmp/gpac_cache'
06:0030│ 0x7fff67a6b840 —▸ 0x611000008548 —▸ 0x615000013e00 —▸ 0x6110000084f0 ◂— 9 /* '\t' */
07:0038│ 0x7fff67a6b848 —▸ 0x7fff67a6b850 ◂— 0x41b58ab3
────────────────────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]────────────────────────────────────────────────────────────────────────────────────────────
► f 0 0x7f2d4fe54afb gf_sm_load_init_swf+747
f 1 0x7f2d4fdcc260 gf_sm_load_init+896
f 2 0x7f2d504e4ceb ctxload_process+2283
f 3 0x7f2d5024abcd gf_filter_process_task+3181
f 4 0x7f2d5020aaf4 gf_fs_thread_proc+2244
f 5 0x7f2d502173ef gf_fs_run+447
f 6 0x7f2d4fc59fd2 gf_media_import+16210
f 7 0x565119c9faed import_file+15133
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
```
# Backtrace
```
pwndbg> bt
#0 0x00007f2d4fe54afb in gf_sm_load_init_swf (load=load@entry=0x6110000084f0) at scene_manager/swf_parse.c:2667
#1 0x00007f2d4fdcc260 in gf_sm_load_init (load=load@entry=0x6110000084f0) at scene_manager/scene_manager.c:692
#2 0x00007f2d504e4ceb in ctxload_process (filter=<optimized out>) at filters/load_bt_xmt.c:476
#3 0x00007f2d5024abcd in gf_filter_process_task (task=0x607000001520) at filter_core/filter.c:2750
#4 0x00007f2d5020aaf4 in gf_fs_thread_proc (sess_thread=sess_thread@entry=0x616000000410) at filter_core/filter_session.c:1859
#5 0x00007f2d502173ef in gf_fs_run (fsess=fsess@entry=0x616000000380) at filter_core/filter_session.c:2120
#6 0x00007f2d4fc59fd2 in gf_media_import (importer=importer@entry=0x7fff67a6ee20) at media_tools/media_import.c:1551
#7 0x0000565119c9faed in import_file (dest=<optimized out>, inName=inName@entry=0x7fff67a832c8 "fake.swf", import_flags=0, force_fps=..., frames_per_sample=0, fsess=fsess@entry=0x0, mux_args_if_first_pass=<optimized out>, mux_sid_if_first_pass=<optimized out>, tk_idx=<optimized out>) at fileimport.c:1498
#8 0x0000565119c543dc in do_add_cat (argv=<optimized out>, argc=<optimized out>) at mp4box.c:4508
#9 mp4box_main (argc=<optimized out>, argv=<optimized out>) at mp4box.c:6124
#10 0x00007f2d4d1e4d90 in __libc_start_call_main (main=main@entry=0x565119c30bc0 <main>, argc=argc@entry=4, argv=argv@entry=0x7fff67a82d98) at ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x00007f2d4d1e4e40 in __libc_start_main_impl (main=0x565119c30bc0 <main>, argc=4, argv=0x7fff67a82d98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff67a82d88) at ../csu/libc-start.c:392
#12 0x0000565119c30cb5 in _start ()
```
# Credit
xdchase
# POC
[poc-segfault.zip](https://github.com/gpac/gpac/files/10197844/poc-segfault.zip)
| missing check in gf_sm_load_init_swf, causing Segmentation fault | https://api.github.com/repos/gpac/gpac/issues/2337/comments | 0 | 2022-12-09T20:12:45Z | 2022-12-12T09:59:00Z | https://github.com/gpac/gpac/issues/2337 | 1,487,390,903 | 2,337 |
[
"gpac",
"gpac"
] | <img width="465" alt="mediainfo" src="https://user-images.githubusercontent.com/40682277/205034819-d4c0ef9d-12d6-4b67-b13d-60df67ac459b.png">
I tried to remux this mkv to mp4 using the following command `MP4Box -add input.mkv -new output.mp4`
and it gave me `segmentation fault (core dumped)`
My environment is Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-53-generic x86_64).
And the build I tried was gpac_2.1-DEV-rev523-g4112fc35-master_amd64 | bug report : segmentation fault (core dumped) | https://api.github.com/repos/gpac/gpac/issues/2334/comments | 15 | 2022-12-01T10:57:20Z | 2023-01-10T07:02:30Z | https://github.com/gpac/gpac/issues/2334 | 1,471,101,874 | 2,334 |
[
"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/
Hi, a CVE was issued affecting gpac and I wasn't able to find any report here or any fix. [VulDB has a "writeup"](https://vuldb.com/?id.214518), which links to an [advisory in Google Drive](https://drive.google.com/file/d/1HVWa6IpAbvsMS5rx091RfjUB4GfXrMLE/view), which [links to a reproducer](https://drive.google.com/file/d/170O0RtI03P1z4gE_ilRZQVS1w7uE7tX9/view?usp=sharing)
I can indeed reproduce when built from 4112fc3562a67508b4be9f7760d8b7ae1ee00f27 (current HEAD at the time of writing):
```
# MP4Box -bt /poc-integer-Overflow
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Unknown box type drzf in parent dinf
[iso file] Missing dref box in dinf
[iso file] Incomplete box mdat - start 11495 size 853090
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[iso file] Unknown box type drzf in parent dinf
[iso file] Missing dref box in dinf
[iso file] Incomplete box mdat - start 11495 size 853090
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 LASeR Scene Parsing
[LASeR] sameg coded in bitstream but no g defined !
Reading 515 bits but max should be 64, skipping 451 most significants bits
laser/lsr_dec.c:856:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
``` | Integer Overflow in function lsr_translate_coords at laser/lsr_dec.c:856 (CVE-2022-4202) | https://api.github.com/repos/gpac/gpac/issues/2333/comments | 2 | 2022-11-29T22:29:30Z | 2022-12-13T21:31:57Z | https://github.com/gpac/gpac/issues/2333 | 1,468,785,287 | 2,333 |
[
"gpac",
"gpac"
] | I have had some issues with adding in chapters, I will lump them here, I notice no github issues in past cover people's experiences, I presume you could be ignorant.
1. Yes you have to escape some characters (#;), but I attempted adding some and they were omitted even with escaping. Here is a sampling of my disappointments: …’“”/¹²³¼½¾§ (quotes are the slanted types) some seem to be rather elementary (not needing Unicode). The player should be able to show it.
2. I notice limit is 128 long. If this cannot be expanded, perhaps you can look at the bug on the 128th character, though I was using MPC-HC 2013, when you add the last character extra symbols are displayed, I think they differ between files, but are same between chapters. Added characters can be Asian. Maybe a bug in player?
3. The 128 character limit may be reduced to a smaller limit with many(60+) chapters but I couldn't be bothered exploring this, that was for a 339mb audio that is super long. I can submit what I did if you must have it, extract and extend whats there already.
4. I thought I had troubles updating when I tried to use one I applied chapters already, so give that a go if you attempt the above.
5. To save on lines can you allow a global timebase entry. I omit since not convenient as is.
Here is some stuff to get you going. Command:
"C:\Program Files\GPAC\ffmpeg" -i infile -i D:\ADD.txt -map_metadata 1 -codec copy outfile
My generator is a spreadsheet (I paste delimited data from elsewhere), I use Npp to convert tabs to carriage returns. Title length is capped here at a low figure because limit seemed to be less. Material to paste at A3:
`[CHAPTER] ="START="&M3 ="END="&M4-1 =LEFT("TITLE="&G3,98) x x Title x x x x x =N3*1000000000 =Q3+P3*60+O3*60*60 0 0 0` GitHub not showing tabs x is blank cell. copy first four columns to Npp.
Here is example add.txt:
;FFMETADATA1
TITLE=Sample
ARTIST=Sample
[CHAPTER]
START=0
END=92999999999
TITLE=ONE
[CHAPTER]
START=93000000000
END=242999999999
TITLE=TWO
[CHAPTER]
START=243000000000
END=444999999999
TITLE=THREE
[CHAPTER]
START=445000000000
END=548999999999
TITLE=FOUR
[CHAPTER]
START=549000000000
END=848999999999
TITLE=FIVE
[CHAPTER]
START=849000000000
END=1272999999999
TITLE=SIX
[CHAPTER]
START=1273000000000
END=1477999999999
TITLE=SEVEN
[CHAPTER]
START=1478000000000
END=1735999999999
TITLE=EIGHT
[CHAPTER]
START=1736000000000
END=2025999999999
TITLE=NINE
[CHAPTER]
START=2026000000000
END=2270499999999
TITLE=TEN
| Chapter titles, character selection | https://api.github.com/repos/gpac/gpac/issues/2332/comments | 2 | 2022-11-29T09:31:07Z | 2022-12-12T10:20:28Z | https://github.com/gpac/gpac/issues/2332 | 1,467,734,431 | 2,332 |
[
"gpac",
"gpac"
] | Low Priority.
OS: XP, FFMPEG version is latest.
Destination was a USB flash, no hub
Operation was -codec copy and -map_metadata
When computer placed into suspend state and return:
frame=139124 fps=170 q=-1.0 size= 590914kB time=01:17:22.10 bitrate=1042.8kbits
frame=139335 fps=165 q=-1.0 size= 591939kB time=01:17:29.16 bitrate=1043.0kbits
av_interleaved_write_frame(): Invalid argument
frame=139336 fps=164 q=-1.0 size= 591940kB time=01:17:29.18 bitrate=1043.0kbits
frame=139336 fps=164 q=-1.0 Lsize= 591940kB time=01:17:29.18 bitrate=1043.0kbit
s/s
video:519299kB audio:72643kB subtitle:0kB other streams:0kB global headers:0kB m
uxing overhead: unknown
Conversion failed!
| Ffmpeg+Stand by causes quitting | https://api.github.com/repos/gpac/gpac/issues/2331/comments | 2 | 2022-11-29T05:50:38Z | 2022-12-12T10:00:49Z | https://github.com/gpac/gpac/issues/2331 | 1,467,492,777 | 2,331 |
[
"gpac",
"gpac"
] | This may be deemed insignificant to bother with - unless you are fastidious.
Ffmpeg -r causes media length to extend and is prominent if value is very low. The audio runs out before video concludes.
Original length is 4m53. At 0.1 FPS the length is 5m20; at 0.2 FPS the length is 5m10.
Original length is 4m15. At 0.1 FPS the length is 4m50; at 0.2 FPS the length is 4m30.
The images in the 0.1 and 0.2 files update at the correct periodicy, but will become faster if I fix the length.
I also notice Ffdshow OSD reports half the frames by end of file that ffmpeg says is present after encoding (27 to 54 for 0.2; 29 to 14 for 0.1 on the second file).
Please be aware media players can become buggy at low FPS.
This is using FFMPEG in recent release.
| -r framerate calculation length mismatch (super low values) | https://api.github.com/repos/gpac/gpac/issues/2330/comments | 4 | 2022-11-29T05:35:40Z | 2023-01-04T09:35:36Z | https://github.com/gpac/gpac/issues/2330 | 1,467,481,299 | 2,330 |
[
"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/
Using the GPAC testsuite file tpl_roll.xml to generate and dash media:
```
mp4box.exe -crypt D:\git-repos\gpac\testsuite\media\encryption\tpl_roll.xml D:\test.mp4 -out tpl_roll.mp4
mp4box.exe -rap -dash 2000 -bs-switching no -profile live -pssh v -out .\tpl_roll\index.mpd -sample-groups-traf -no-frags-default -tfdt-traf --cmaf=cmfc -single-traf tpl_roll.mp4 -segment-name $Segment=seg_r$$Init=seg-init_r$$RepresentationID$-$Number$
```
The MPD contains:
`<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cbcs" cenc:default_KID="27992649-6a7f-5d25-da69-f2b3b2799a7f"/>`
According to DASH-IF IOP-6 V5.0.0 sect 9.3 In-band key rotation signalling
> "For supporting this mechanism:
> • The MPD has no default_KID attribute in the ContentProtection element defined at the AdaptationSet level [...]"
so I think the cenc:default_KID should not be present?
| tpl_roll: mp4box is putting default KID in the MPD | https://api.github.com/repos/gpac/gpac/issues/2329/comments | 12 | 2022-11-28T10:40:51Z | 2023-06-22T13:42:38Z | https://github.com/gpac/gpac/issues/2329 | 1,466,191,830 | 2,329 |
[
"gpac",
"gpac"
] | A memory leak has occurred when running program MP4Box, this can reproduce on the lattest commit.
### Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.1-DEV-rev505-gb9577e6ad-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --static-build --extra-cflags=-fsanitize=address -g --extra-ldflags=-fsanitize=address -g
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_FREETYPE GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_LINUX_DVB
```
git log
```
commit b9577e6ad91ef96decbcd369227ab02b2842c77f (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Fri Nov 25 16:53:55 2022 +0100
```
### Verification steps
```
export CFLAGS='-fsanitize=address -g'
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
git clone https://github.com/gpac/gpac.git
cd gpac
./configure --static-build --extra-cflags="${CFLAGS}" --extra-ldflags="${CFLAGS}"
make
cd bin/gcc
./MP4Box -info $poc
```
### POC file
https://github.com/HotSpurzzZ/testcases/blob/main/gpac/gpac_Direct_leak_gf_isom_box_parse_ex.mp4
### AddressSanitizer output
```
$ ./MP4Box -info gpac_Direct_leak_gf_isom_box_parse_ex.mp4
[iso file] Failed to uncompress payload for box type !ssx (0x21737378)
Error opening file gpac_Direct_leak_gf_isom_box_parse_ex.mp4: BitStream Not Compliant
=================================================================
==10575==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1718840668 byte(s) in 1 object(s) allocated from:
#0 0x4a186d in malloc (/root/Desktop/gpac/bin/gcc/MP4Box+0x4a186d)
#1 0x7dfc41 in gf_isom_box_parse_ex /root/Desktop/gpac/src/isomedia/box_funcs.c:166:13
#2 0x7df29c in gf_isom_parse_root_box /root/Desktop/gpac/src/isomedia/box_funcs.c:38:8
Direct leak of 4096 byte(s) in 1 object(s) allocated from:
#0 0x4a186d in malloc (/root/Desktop/gpac/bin/gcc/MP4Box+0x4a186d)
#1 0x599d69 in gf_gz_decompress_payload /root/Desktop/gpac/src/utils/base_encoding.c:257:31
#2 0x7dfc66 in gf_isom_box_parse_ex /root/Desktop/gpac/src/isomedia/box_funcs.c:170:9
#3 0x7df29c in gf_isom_parse_root_box /root/Desktop/gpac/src/isomedia/box_funcs.c:38:8
SUMMARY: AddressSanitizer: 1718844764 byte(s) leaked in 2 allocation(s).
```
| Memory leak in gf_isom_box_parse_ex function of box_funcs.c:166:13 | https://api.github.com/repos/gpac/gpac/issues/2328/comments | 0 | 2022-11-28T06:47:39Z | 2022-11-28T10:06:52Z | https://github.com/gpac/gpac/issues/2328 | 1,465,902,126 | 2,328 |
[
"gpac",
"gpac"
] | A memory leak has occurred when running program MP4Box, this can reproduce on the lattest commit.
### Version
```
$ ./MP4Box -version
MP4Box - GPAC version 2.1-DEV-rev505-gb9577e6ad-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --static-build --extra-cflags=-fsanitize=address -g --extra-ldflags=-fsanitize=address -g
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_FREETYPE GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_LINUX_DVB
```
git log
```
commit b9577e6ad91ef96decbcd369227ab02b2842c77f (HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Fri Nov 25 16:53:55 2022 +0100
```
### Verification steps
```
export CFLAGS='-fsanitize=address -g'
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
git clone https://github.com/gpac/gpac.git
cd gpac
./configure --static-build --extra-cflags="${CFLAGS}" --extra-ldflags="${CFLAGS}"
make
cd bin/gcc
./MP4Box -info $poc
```
### POC file
https://github.com/HotSpurzzZ/testcases/blob/main/gpac/gpac_Direct_leak_afrt_box_read.mp4
### AddressSanitizer output
```
$ ./MP4Box -info gpac_Direct_leak_afrt_box_read.mp4
[isom] not enough bytes in box afrt: 0 left, reading 1 (file isomedia/box_code_adobe.c, line 713)
[iso file] Read Box "afrt" (start 0) failed (Invalid IsoMedia File) - skipping
Error opening file gpac_Direct_leak_afrt_box_read.mp4: Invalid IsoMedia File
=================================================================
==10525==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x4a186d in malloc (/root/Desktop/gpac/bin/gcc/MP4Box+0x4a186d)
#1 0x902c18 in afrt_box_read /root/Desktop/gpac/src/isomedia/box_code_adobe.c:706:35
SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).
```
| Memory leak in afrt_box_read function of box_code_adobe.c:706:35 | https://api.github.com/repos/gpac/gpac/issues/2327/comments | 0 | 2022-11-28T06:30:26Z | 2022-11-28T10:06:51Z | https://github.com/gpac/gpac/issues/2327 | 1,465,889,278 | 2,327 |
[
"gpac",
"gpac"
] |
I just obtained 32 bit from
https://gpac.wp.imt.fr/downloads/
To see if a bug has since been fixed. Mp4box seems to not be 32 bit. Ffmpeg runs. Installer ran. Cannot locate previous version of installer to see if my bug is there.
As for the bug, frame rate specification is being ignored with one video specifically, it wants 29.08, I want 29.04 and 5fps test fails.
Using: -add AVfile -fps 5 AVoutfile
Also tried: …\mp4box" -add E:\copy.mp4#audio -add E:\copy.mp4#video:fps=5.0 C:\Recov\out.mp4
The first was tried on a short clip with success so shouldn't be command issue…
N. | 32 bit issue | https://api.github.com/repos/gpac/gpac/issues/2326/comments | 11 | 2022-11-27T03:09:17Z | 2022-12-12T10:14:37Z | https://github.com/gpac/gpac/issues/2326 | 1,465,316,125 | 2,326 |
[
"gpac",
"gpac"
] | This is the original mkv.
<img width="776" alt="mkv" src="https://user-images.githubusercontent.com/40682277/204077854-bf062da3-2060-4e1e-a234-c6d401b4f1d8.png">
This is the result of remuxing mkv to mp4 on Windows. As you can see the Dolby Vision metadata is preserved.
<img width="607" alt="mp4_windows" src="https://user-images.githubusercontent.com/40682277/204077870-76ebc93f-f341-4f58-b05e-66104f2c5c95.png">
This is what I tried on Linux. As you can see the Dolby Vision metadata is lost.
<img width="325" alt="mp4_rinux" src="https://user-images.githubusercontent.com/40682277/204077885-803af644-77b0-466d-a182-3ecb23734316.png">
Tried with nightly builds on both Windows and Linux. | When trying to mkv to mp4 remux on linux, dolby vision metadata is not maintained. | https://api.github.com/repos/gpac/gpac/issues/2325/comments | 10 | 2022-11-26T07:39:33Z | 2022-11-28T14:29:29Z | https://github.com/gpac/gpac/issues/2325 | 1,465,078,528 | 2,325 |
[
"gpac",
"gpac"
] | I'm using MP4Box in a Python 3.11 docker container which means I'm using Debian bullseye.
MP4Box - GPAC version 1.0.1-rev1.0.1+dfsg1-4+deb11u1
When "no space left on device" error occurs MP4Box produces so many lines of errors that I cannot event log it into my db.
Is there any option to limit error message to 1 line? Is it fixed already in the latest version of gpac?
<img width="820" alt="image" src="https://user-images.githubusercontent.com/23004737/203570270-61f22e09-b4bc-41e4-987b-fdf4d1c36dc1.png">
My error logging issue:
<img width="785" alt="image" src="https://user-images.githubusercontent.com/23004737/203572312-857d0e62-6eda-4e1a-b7a9-aa8f8e01e42b.png">
| MP4Box produces hundreds of lines when no space left on device error occurs | https://api.github.com/repos/gpac/gpac/issues/2324/comments | 4 | 2022-11-23T14:31:48Z | 2022-11-23T17:52:11Z | https://github.com/gpac/gpac/issues/2324 | 1,461,872,014 | 2,324 |
[
"gpac",
"gpac"
] | - [X] I looked for a similar issue and couldn't find any.
- [NA] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [NA] 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
It would be useful for the Readme to include information on the various dependencies needed to build GPAC from source code. On Windows, I found that I had to obtain SDL and put it in `extra_lib\include\SDL` and `zlib.lib` into `extra_lib\lib\x64\Debug` and there is more to do with `libcryptoMDd.lib`.
Even better than guidance information would be a PowerShell of Command script that would `curl` and `unzip` the required items into the relevant locations.
| Guidelines for dependencies | https://api.github.com/repos/gpac/gpac/issues/2323/comments | 6 | 2022-11-22T12:22:23Z | 2022-11-22T18:33:08Z | https://github.com/gpac/gpac/issues/2323 | 1,459,769,415 | 2,323 |
[
"gpac",
"gpac"
] | poc download url: https://github.com/Janette88/test_pocs/blob/main/poc2_hbo
```
Description
heap-buffer-overflow in gf_isom_box_write_header at isomedia/box_funcs.c:408.
version info
git log
commit 68064e10172675e0853d6f429fb2055112835602 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: jeanlf <jeanlf@gpac.io>
Date: Fri Nov 18 10:36:10 2022 +0100
fixed build without http2 support
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-revUNKNOWN-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Proof of Concept
./MP4Box -hint poc2_hbo
[iso file] Unknown top-level box type freN
[iso file] Unknown box type FFFFFF80 in parent schi
[iso file] Unknown box type 00000004 in parent moov
[iso file] Read Box type 00000200 (0x00000200) at position 1213 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "moov" (start 351) has 703 extra bytes
[iso file] Unknown top-level box type s7Fyp
[iso file] Box "sbgp" (start 2072) has 8 extra bytes
[iso file] Read Box type 00000000 (0x00000000) at position 2168 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "traf" (start 2028) has 458 extra bytes
[iso file] Unknown box type sdBp in parent traf
[iso file] Unknown box type shgp in parent traf
[iso file] senc box without tenc, assuming MS smooth+piff
[iso file] Box "uuid" (start 3475) has 58 extra bytes
[iso file] Box "uuid" (start 3565) has 58 extra bytes
[iso file] Read Box type 00000000 (0x00000000) at position 3655 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "trgr" (start 3467) has 233 extra bytes
Hinting track ID 1 - Type "encv:encv" (mpeg4-generic) - BW 0 kbps
Saving /home/fuzz/test/poc1_huaf: 0.500 secs Interleaving
=================================================================
==7021==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x604000000744 at pc 0x7f434982526d bp 0x7ffd16e63e00 sp 0x7ffd16e63df0
READ of size 4 at 0x604000000744 thread T0
#0 0x7f434982526c in gf_isom_box_write_header isomedia/box_funcs.c:408
#1 0x7f43498252bc in gf_isom_full_box_write isomedia/box_funcs.c:455
#2 0x7f43497bfa10 in trgt_box_write isomedia/box_code_base.c:10667
#3 0x7f43498292f4 in gf_isom_box_write_listing isomedia/box_funcs.c:1880
#4 0x7f43498292f4 in gf_isom_box_write isomedia/box_funcs.c:1930
#5 0x7f43498296a5 in gf_isom_box_array_write isomedia/box_funcs.c:472
#6 0x7f43498296a5 in gf_isom_box_array_write isomedia/box_funcs.c:463
#7 0x7f4349829337 in gf_isom_box_write isomedia/box_funcs.c:1933
#8 0x7f43498aafda in WriteInterleaved isomedia/isom_store.c:1962
#9 0x7f43498ac497 in WriteToFile isomedia/isom_store.c:2554
#10 0x7f4349864af7 in gf_isom_write isomedia/isom_read.c:611
#11 0x7f43498652e8 in gf_isom_close isomedia/isom_read.c:635
#12 0x55ad1dde719c in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6779
#13 0x7f4346dbc082 in __libc_start_main ../csu/libc-start.c:308
#14 0x55ad1ddc0cbd in _start (/home/fuzz/gpac/bin/gcc/MP4Box+0xa3cbd)
0x604000000744 is located 4 bytes to the right of 48-byte region [0x604000000710,0x604000000740)
allocated by thread T0 here:
#0 0x7f434cbe1808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7f43497bf781 in trgt_box_new isomedia/box_code_base.c:10639
#2 0x7f434982637f in gf_isom_box_new_ex isomedia/box_funcs.c:1726
#3 0x7f434982637f in gf_isom_box_new isomedia/box_funcs.c:1749
#4 0x7f4349826c31 in gf_isom_box_parse_ex isomedia/box_funcs.c:237
#5 0x7f434982b9aa in gf_isom_box_array_read isomedia/box_funcs.c:1761
#6 0x7f4349826e33 in gf_isom_box_read isomedia/box_funcs.c:1868
#7 0x7f4349826e33 in gf_isom_box_parse_ex isomedia/box_funcs.c:271
#8 0x7f4349828285 in gf_isom_parse_root_box isomedia/box_funcs.c:38
#9 0x7f434985130c in gf_isom_parse_movie_boxes_internal isomedia/isom_intern.c:378
#10 0x7f4349857571 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:868
#11 0x7f4349857571 in gf_isom_open_file isomedia/isom_intern.c:988
#12 0x55ad1dde5139 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6209
#13 0x7f4346dbc082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/box_funcs.c:408 in gf_isom_box_write_header
Shadow bytes around the buggy address:
0x0c087fff8090: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff80a0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff80b0: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 00
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 00 00 00 00 00 00
=>0x0c087fff80e0: fa fa 00 00 00 00 00 00[fa]fa 00 00 00 00 00 00
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 fa
0x0c087fff8110: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8120: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8130: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd 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
==7021==ABORTING
Impact
This vulnerabilities are capable of crashing software, Modify Memory, and possible remote execution.
Occurrences
box_funcs.c L408
``` | heap-buffer-overflow in gf_isom_box_write_header | https://api.github.com/repos/gpac/gpac/issues/2322/comments | 0 | 2022-11-22T09:39:46Z | 2022-11-23T15:23:56Z | https://github.com/gpac/gpac/issues/2322 | 1,459,495,866 | 2,322 |
[
"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/
Hi, seeing some weird behavior when playing my hevc encoded tiled video following the guide here https://github.com/gpac/gpac/wiki/HEVC-Tile-based-adaptation-guide.
when running the following command
gpac -gui http://{ip}/path/to/mpd
i get the following and my video plays as normal

However, when running the following command " gpac -play http://{ip}/path/to/mpd" or using the DASH Client python example i get the following.

only the bottom 6th of the player is shown. Any ideas as to why this is happening or what im missing here. I would really like to use the DASH client python example as i would like to implement my own adaptation algorithm.
Appreciate any help thanks!
| HEVC tiled video playback issues | https://api.github.com/repos/gpac/gpac/issues/2321/comments | 2 | 2022-11-22T06:44:07Z | 2022-11-23T21:44:44Z | https://github.com/gpac/gpac/issues/2321 | 1,459,233,118 | 2,321 |
[
"gpac",
"gpac"
] | ### Description
This is a typical stack buffer overflow. It used dangerous function sprintf without limitation of dsi_size so the bug is easily exploited by a malicious attacker.
stack-buffer-overflow in gf_rtp_builder_format_sdp at ietf/rtp_packetizer.c:578.
### Version info
```
git log
commit bd1a8e9906c2628d9fd340b17b08f4f9c6e58823 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: Jean Le Feuvre <jeanlf@gpac.io>
Date: Mon Nov 21 09:16:07 2022 +0100
Merge pull request #2318 from thowat/master
Update configure, aarch64 build
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-revUNKNOWN-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
```
compile
./configure --enable-sanitizer
make
crash command:
./MP4Box -hint poc3_sbo
poc download url:
https://github.com/Janette88/test_pocs/blob/main/poc3_sbo
ASAN log:
```
./MP4Box -hint poc3_sbo
[iso file] Unknown top-level box type EDFFFF7F
[AV1] AV1 config misses 16355 bytes to fit the entire OBU
[ISOBMFF] AV1ConfigurationBox overflow read 16371 bytes, of box size 16.
[iso file] Box "av1C" size 24 (start 729) invalid (read 16379)
[iso file] Read Box type av01 (0x61763031) at position 850 has size 0 but is not at root/file level. Forbidden, skipping end of parent box !
[iso file] Box "stsd" (start 627) has 102 extra bytes
[iso file] default sample description set to 134217730 but only 1 sample description(s), likely broken ! Fixing to 1
Hinting track ID 1 - Type "encv:encv" (mpeg4-generic) - BW 0 kbps
=================================================================
==32224==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffebed07e0 at pc 0x7fe5f15d7725 bp 0x7fffebecb840 sp 0x7fffebecafd0
WRITE of size 3 at 0x7fffebed07e0 thread T0
#0 0x7fe5f15d7724 in __interceptor_vsprintf ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1627
#1 0x7fe5f15d7ce6 in __interceptor___sprintf_chk ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1675
#2 0x7fe5ee0e8142 in sprintf /usr/include/x86_64-linux-gnu/bits/stdio2.h:36
#3 0x7fe5ee0e8142 in gf_rtp_builder_format_sdp ietf/rtp_packetizer.c:598
#4 0x7fe5ee6bd7b6 in gf_hinter_track_finalize media_tools/isom_hinter.c:1030
#5 0x560b3cf7847d in HintFile /home/fuzz/gpac/applications/mp4box/mp4box.c:3776
#6 0x560b3cf7df47 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6707
#7 0x7fe5eb821082 in __libc_start_main ../csu/libc-start.c:308
#8 0x560b3cf55cbd in _start (/home/fuzz/gpac/bin/gcc/MP4Box+0xa3cbd)
Address 0x7fffebed07e0 is located in stack of thread T0 at offset 20048 in frame
#0 0x7fe5ee0e7d9f in gf_rtp_builder_format_sdp ietf/rtp_packetizer.c:578
This frame has 2 object(s):
[48, 20048) 'dsiString' (line 579) <== Memory access at offset 20048 overflows this variable
[20304, 40404) 'buffer' (line 579)
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 ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1627 in __interceptor_vsprintf
Shadow bytes around the buggy address:
0x10007d7d20a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d20b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d20c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d20d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d20e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10007d7d20f0: 00 00 00 00 00 00 00 00 00 00 00 00[f2]f2 f2 f2
0x10007d7d2100: f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2
0x10007d7d2110: f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 f2 00 00 00 00
0x10007d7d2120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d2130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007d7d2140: 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
==32224==ABORTING
```
### code location
GF_Err gf_rtp_builder_format_sdp(GP_RTPPacketizer *builder, char *payload_name, char *sdpLine, char *dsi, u32 dsi_size)
{
**char buffer[20100], dsiString[20000];** //definition length of char arrary (buffer and dsiString)
u32 i, k;
Bool is_first = GF_TRUE;
if ((builder->rtp_payt!=GF_RTP_PAYT_MPEG4) && (builder->rtp_payt!=GF_RTP_PAYT_LATM) ) return GF_BAD_PARAM;
#define SDP_ADD_INT(_name, _val) { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%d", _name, _val); strcat(sdpLine, buffer); is_first = 0;}
#define SDP_ADD_STR(_name, _val) { if (!is_first) strcat(sdpLine, "; "); sprintf(buffer, "%s=%s", _name, _val); strcat(sdpLine, buffer); is_first = 0;}
sprintf(sdpLine, "a=fmtp:%d ", builder->PayloadType);
/*mandatory fields*/
if (builder->slMap.PL_ID) SDP_ADD_INT("profile-level-id", builder->slMap.PL_ID);
if (builder->rtp_payt == GF_RTP_PAYT_LATM) SDP_ADD_INT("cpresent", 0);
if (dsi && dsi_size) {
k = 0;
for (i=0; i<dsi_size; i++) { //dsi_size ????
**sprintf(&dsiString[k], "%02x", (unsigned char) dsi[i]);** //here use sprintf () trigger vulnerability
k+=2;
}
dsiString[k] = 0;
SDP_ADD_STR("config", dsiString);
}
```
### Impact
This is capable of causing crashes and allowing modification of stack memory which could lead to remote code execution. | stack-buffer-overflow in gf_rtp_builder_format_sdp | https://api.github.com/repos/gpac/gpac/issues/2320/comments | 0 | 2022-11-22T04:28:19Z | 2022-11-30T11:07:56Z | https://github.com/gpac/gpac/issues/2320 | 1,459,040,705 | 2,320 |
[
"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.
- [ ] 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,
After following the guide here https://github.com/gpac/gpac/wiki/HEVC-Tile-based-adaptation-guide i was able to produce a tiled hvc and was able to dash the video producing multiple m4s files etc. Using the following GPAC version: 2.1-DEV-rev492-gbd1a8e990-master
I then started a local http server in that folder and ran the following command:
gpac -gui http://{ip}:{port}/dash_tiled.mpd
however i immediately get this error and the video does not play
[DASH] Error in downloading new segment http://{ip}:{port}/video_tiled_360p_dash_track1_1.m4s: Connection to server closed
I then closed the http server and ran the following command:
gpac -gui dash_tiled.mpd
and the video played no problem. Would appreciate any help trying to debug this issue.
| HECV Tiling local server streaming server | https://api.github.com/repos/gpac/gpac/issues/2319/comments | 0 | 2022-11-21T22:22:27Z | 2022-11-22T00:48:29Z | https://github.com/gpac/gpac/issues/2319 | 1,458,671,172 | 2,319 |
[
"gpac",
"gpac"
] | Proof of Concept
poc download url: https://github.com/Janette88/test_pocs/blob/main/sbo2
```
Description
Stack-Based Buffer Overflow in gf_sg_proto_field_is_sftime_offset at vrml_proto.c:1295.
version
git log
commit 05eaac875354682942b70c790bcd62cb5f4cc825 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: Jean Le Feuvre <jeanlf@gpac.io>
Date: Mon Nov 14 18:07:45 2022 +0100
fixed msvc warnings
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-revUNKNOWN-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
reference: possible root cause
1) recursive call
code1:gf_node_get_field scenegraph/base_scenegraph.c:2043
GF_Err gf_node_get_field(GF_Node *node, u32 FieldIndex, GF_FieldInfo *info)
{
assert(node);
assert(info);
memset(info, 0, sizeof(GF_FieldInfo)); //here sizeof(GF_FieldInfo)=0x28
info->fieldIndex = FieldIndex;
if (node->sgprivate->tag==TAG_UndefinedNode) return GF_BAD_PARAM;
#ifndef GPAC_DISABLE_VRML
else if (node->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_get_field(NULL, node, info);
else if (node->sgprivate->tag == TAG_MPEG4_Script)
return gf_sg_script_get_field(node, info);
code 2:gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1293
Bool gf_sg_proto_field_is_sftime_offset(GF_Node *node, GF_FieldInfo *field)
{
u32 i;
GF_Route *r;
GF_ProtoInstance *inst;
GF_FieldInfo inf;
if (node->sgprivate->tag != TAG_ProtoNode) return 0;
if (field->fieldType != GF_SG_VRML_SFTIME) return 0;
inst = (GF_ProtoInstance *) node;
/*check in interface if this is ISed */
i=0;
while ((r = (GF_Route*)gf_list_enum(inst->proto_interface->sub_graph->Routes, &i))) {
if (!r->IS_route) continue;
/*only check eventIn/field/exposedField*/
if (r->FromNode || (r->FromField.fieldIndex != field->fieldIndex)) continue;
gf_node_get_field(r->ToNode, r->ToField.fieldIndex, &inf); // 0x100
/*IS to another proto*/
if (r->ToNode->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf); // Recursive call triggered SIGSEGV
/*IS to a startTime/stopTime field*/
if (!stricmp(inf.name, "startTime") || !stricmp(inf.name, "stopTime")) return 1;
}
return 0;
}
2、
when stack size of programe stack is too small , it triggered stack overflow and caused segmentation fault (core dumped).
Hope it's helpful for fix it.
./MP4Box -bt sbo2
[iso file] Unknown box type dCCf in parent minf
[iso file] Missing DataInformationBox
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[ODF] Descriptor size on more than 4 bytes
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Unknown box type dCCf in parent minf
[iso file] Missing DataInformationBox
[iso file] extra box maxr found in hinf, deleting
[iso file] extra box maxr found in hinf, deleting
[iso file] Unknown box type 80rak in parent moov
[ODF] Descriptor size on more than 4 bytes
[iso file] Incomplete box mdat - start 11495 size 853093
[iso file] Incomplete file while reading for dump - aborting parsing
MPEG-4 BIFS Scene Parsing
[ODF] Reading bifs config: shift in sizes (invalid descriptor)
AddressSanitizer:DEADLYSIGNAL
=================================================================
==6667==ERROR: AddressSanitizer: stack-overflow on address 0x7fff20958f18 (pc 0x7efda5e75e49 bp 0x7fff209597a0 sp 0x7fff20958f20 T0)
#0 0x7efda5e75e48 in __interceptor_memset ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:762
#1 0x7efda26e7f7a in memset /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71
#2 0x7efda26e7f7a in gf_node_get_field scenegraph/base_scenegraph.c:2043
#3 0x7efda2858b22 in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1293
#4 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#5 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#6 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#7 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#8 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#9 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#10 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#11 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#12 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#13 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#14 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#15 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#16 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#17 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#18 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#19 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#20 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#21 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#22 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#23 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#24 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#25 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#26 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#27 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#28 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#29 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#30 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#31 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#32 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#33 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#34 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#35 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#36 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#37 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#38 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#39 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#40 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#41 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#42 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#43 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#44 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#45 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#46 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#47 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#48 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#49 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#50 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#51 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#52 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#53 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#54 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#55 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#56 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#57 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#58 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#59 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#60 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#61 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#62 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#63 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#64 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#65 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#66 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#67 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#68 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#69 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#70 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#71 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#72 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#73 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#74 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#75 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#76 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#77 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#78 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#79 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#80 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#81 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#82 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#83 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#84 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#85 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#86 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#87 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#88 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#89 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#90 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#91 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#92 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#93 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#94 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#95 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#96 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#97 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#98 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#99 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#100 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#101 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#102 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#103 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#104 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#105 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#106 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#107 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#108 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#109 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#110 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#111 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#112 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#113 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#114 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#115 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#116 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#117 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#118 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#119 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#120 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#121 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#122 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#123 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#124 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#125 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#126 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#127 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#128 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#129 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#130 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#131 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#132 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#133 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#134 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#135 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#136 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#137 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#138 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#139 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#140 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#141 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#142 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#143 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#144 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#145 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#146 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#147 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#148 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#149 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#150 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#151 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#152 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#153 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#154 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#155 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#156 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#157 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#158 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#159 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#160 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#161 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#162 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#163 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#164 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#165 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#166 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#167 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#168 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#169 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#170 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#171 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#172 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#173 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#174 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#175 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#176 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#177 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#178 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#179 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#180 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#181 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#182 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#183 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#184 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#185 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#186 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#187 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#188 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#189 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#190 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#191 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#192 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#193 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#194 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#195 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#196 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#197 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#198 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#199 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#200 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#201 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#202 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#203 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#204 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#205 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#206 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#207 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#208 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#209 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#210 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#211 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#212 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#213 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#214 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#215 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#216 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#217 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#218 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#219 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#220 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#221 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#222 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#223 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#224 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#225 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#226 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#227 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#228 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#229 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#230 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#231 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#232 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#233 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#234 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#235 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#236 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#237 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#238 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#239 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#240 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#241 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#242 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#243 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#244 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#245 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#246 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#247 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#248 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
#249 0x7efda2858c1f in gf_sg_proto_field_is_sftime_offset scenegraph/vrml_proto.c:1295
SUMMARY: AddressSanitizer: stack-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:762 in __interceptor_memset
==6667==ABORTING
Impact
This is capable of causing crashes and allowing modification of stack memory which could lead to remote code execution.
Occurrences
vrml_proto.c L1295
``` | Stack-Based Buffer Overflow in gf_sg_proto_field_is_sftime_offset | https://api.github.com/repos/gpac/gpac/issues/2316/comments | 0 | 2022-11-16T17:40:26Z | 2022-11-23T15:23:55Z | https://github.com/gpac/gpac/issues/2316 | 1,452,016,635 | 2,316 |
[
"gpac",
"gpac"
] | # Description
Heap use after free in Q_IsTypeOn at gpac/src/bifs/unquantize.c:175:12
# System info
Ubuntu 20.04 lts
# Version info
```shell
MP4Box - GPAC version 2.1-DEV-rev478-g696e6f868-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration: --enable-sanitizer --enable-debug
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_FAAD GPAC_HAS_MAD GPAC_HAS_LIBA52 GPAC_HAS_JPEG GPAC_HAS_PNG GPAC_HAS_FFMPEG GPAC_HAS_THEORA GPAC_HAS_VORBIS GPAC_HAS_XVID GPAC_HAS_LINUX_DVB
```
# compile
```shell
./configure --enable-sanitizer --enable-debug
make
```
# crash command
```shell
MP4Box -bt poc
```
# POC
[POC-uaf](https://drive.google.com/file/d/1E3XcQkAlOWxENIQDDVOycrQT0JVje8HW/view?usp=sharing)
# Crash output
```shell
/home/zw/AFL_Fuzz_Datas/gpac/bin/gcc/MP4Box -bt poc
[iso file] Unknown box type vref in parent dinf
[iso file] Missing dref box in dinf
[iso file] Unknown box type vref in parent dinf
[iso file] Missing dref box in dinf
MPEG-4 BIFS Scene Parsing
=================================================================
==1578219==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000001ad4 at pc 0x7f8194636c1d bp 0x7fff91f55420 sp 0x7fff91f55418
READ of size 4 at 0x610000001ad4 thread T0
#0 0x7f8194636c1c in Q_IsTypeOn /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/unquantize.c:175:12
#1 0x7f8194643390 in gf_bifs_dec_unquant_field /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/unquantize.c:398:7
#2 0x7f81945890e1 in gf_bifs_dec_sf_field /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:84:7
#3 0x7f8194597e3f in BD_DecMFFieldList /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:327:8
#4 0x7f819459cd2f in gf_bifs_dec_field /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:564:9
#5 0x7f819459df3a in gf_bifs_dec_node_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:626:7
#6 0x7f81945965a8 in gf_bifs_dec_node /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:928:7
#7 0x7f8194598014 in BD_DecMFFieldList /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:330:15
#8 0x7f819459cd2f in gf_bifs_dec_field /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:564:9
#9 0x7f81945c0e7b in BM_ParseFieldReplace /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:734:21
#10 0x7f81945c4923 in BM_ParseReplace /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:847:10
#11 0x7f81945c7f12 in BM_ParseCommand /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:915:8
#12 0x7f81945c9706 in gf_bifs_flush_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:964:9
#13 0x7f81945cc012 in gf_bifs_decode_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:1044:3
#14 0x7f8195bc921f in gf_sm_load_run_isom /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/loader_isom.c:303:10
#15 0x7f8195a86732 in gf_sm_load_run /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/scene_manager.c:719:28
#16 0x577f50 in dump_isom_scene /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/filedump.c:207:14
#17 0x53949f in mp4box_main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6369:7
#18 0x549801 in main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6834:1
#19 0x7f8192985082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
#20 0x42ac5d in _start (/home/zw/AFL_Fuzz_Datas/gpac/bin/gcc/MP4Box+0x42ac5d)
0x610000001ad4 is located 148 bytes inside of 192-byte region [0x610000001a40,0x610000001b00)
freed by thread T0 here:
#0 0x4a5c52 in free (/home/zw/AFL_Fuzz_Datas/gpac/bin/gcc/MP4Box+0x4a5c52)
#1 0x7f8193259324 in gf_free /home/zw/AFL_Fuzz_Datas/gpac/src/utils/alloc.c:165:2
#2 0x7f819378d74a in gf_node_free /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/base_scenegraph.c:1622:2
#3 0x7f81938a38fc in QuantizationParameter_Del /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/mpeg4_nodes.c:11981:2
#4 0x7f81938962b1 in gf_sg_mpeg4_node_del /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/mpeg4_nodes.c:37743:3
#5 0x7f8193774108 in gf_node_del /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/base_scenegraph.c:1904:59
#6 0x7f8193763dc2 in gf_node_unregister /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/base_scenegraph.c:763:3
#7 0x7f8193772a1c in gf_node_try_destroy /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/base_scenegraph.c:669:9
#8 0x7f81937ce9cc in gf_sg_command_del /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/commands.c:72:7
#9 0x7f81945ca742 in gf_bifs_flush_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:990:5
#10 0x7f81945cc012 in gf_bifs_decode_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:1044:3
#11 0x7f8195bc921f in gf_sm_load_run_isom /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/loader_isom.c:303:10
#12 0x7f8195a86732 in gf_sm_load_run /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/scene_manager.c:719:28
#13 0x577f50 in dump_isom_scene /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/filedump.c:207:14
#14 0x53949f in mp4box_main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6369:7
#15 0x549801 in main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6834:1
#16 0x7f8192985082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
previously allocated by thread T0 here:
#0 0x4a5ebd in malloc (/home/zw/AFL_Fuzz_Datas/gpac/bin/gcc/MP4Box+0x4a5ebd)
#1 0x7f8193259214 in gf_malloc /home/zw/AFL_Fuzz_Datas/gpac/src/utils/alloc.c:150:9
#2 0x7f819381fc84 in QuantizationParameter_Create /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/mpeg4_nodes.c:12496:2
#3 0x7f819388ffa6 in gf_sg_mpeg4_node_new /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/mpeg4_nodes.c:36871:10
#4 0x7f8193796799 in gf_node_new /home/zw/AFL_Fuzz_Datas/gpac/src/scenegraph/base_scenegraph.c:1996:51
#5 0x7f8194595f4a in gf_bifs_dec_node /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:900:15
#6 0x7f8194598014 in BD_DecMFFieldList /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:330:15
#7 0x7f819459cd2f in gf_bifs_dec_field /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/field_decode.c:564:9
#8 0x7f81945c0e7b in BM_ParseFieldReplace /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:734:21
#9 0x7f81945c4923 in BM_ParseReplace /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:847:10
#10 0x7f81945c7f12 in BM_ParseCommand /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:915:8
#11 0x7f81945c9706 in gf_bifs_flush_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:964:9
#12 0x7f81945cc012 in gf_bifs_decode_command_list /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/memory_decoder.c:1044:3
#13 0x7f8195bc921f in gf_sm_load_run_isom /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/loader_isom.c:303:10
#14 0x7f8195a86732 in gf_sm_load_run /home/zw/AFL_Fuzz_Datas/gpac/src/scene_manager/scene_manager.c:719:28
#15 0x577f50 in dump_isom_scene /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/filedump.c:207:14
#16 0x53949f in mp4box_main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6369:7
#17 0x549801 in main /home/zw/AFL_Fuzz_Datas/gpac/applications/mp4box/mp4box.c:6834:1
#18 0x7f8192985082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: heap-use-after-free /home/zw/AFL_Fuzz_Datas/gpac/src/bifs/unquantize.c:175:12 in Q_IsTypeOn
Shadow bytes around the buggy address:
0x0c207fff8300: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c207fff8310: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
0x0c207fff8320: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c207fff8330: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa
0x0c207fff8340: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
=>0x0c207fff8350: fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd
0x0c207fff8360: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c207fff8370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
0x0c207fff8380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff8390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c207fff83a0: 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
==1578219==ABORTING
```
# Occurrences:
[gpac/src/bifs/unquantize.c:175:12 in Q_IsTypeOn](https://github.com/gpac/gpac/blob/696e6f868f9f3e69d63908d3e4d8c34aa51e9853/src/bifs/unquantize.c#L175)
# Impact
can cause a program to crash, use unexpected values, or execute code.
**Report of the Information Security Laboratory of Ocean University of China @OUC_ISLOUC @OUC_Blue_Whale** | Heap use after free in Q_IsTypeOn at gpac/src/bifs/unquantize.c | https://api.github.com/repos/gpac/gpac/issues/2315/comments | 0 | 2022-11-14T01:55:34Z | 2022-11-14T13:45:21Z | https://github.com/gpac/gpac/issues/2315 | 1,447,239,893 | 2,315 |
[
"gpac",
"gpac"
] | Hello,
I've been pounding my head with this issue and cannot find an appropriate resolution.
I have a file (called filename.alac) which contains the raw ALAC stream, specifically the mdat payload. (Equivalent to the output from ` mp4box -raw filename.m4a` where filename.m4a contains an alac stream)
I am trying to mux this raw stream into an m4a (M4A /mp42/isom) container. Is this possible with MP4Box?
I have tried the following command:
`mp4box -add filename.alac#audio filename_new.m4a`
But I received the following output:
```
[Importer] Cannot load filter for input file "filename.alac"
Failure while importing import: Requested URL is not valid or cannot be found
Error importing filename.alac#audio: Requested URL is not valid or cannot be found
```
| Muxing Raw ALAC Stream into M4A | https://api.github.com/repos/gpac/gpac/issues/2314/comments | 2 | 2022-11-12T17:16:42Z | 2022-11-14T13:33:29Z | https://github.com/gpac/gpac/issues/2314 | 1,446,531,287 | 2,314 |
[
"gpac",
"gpac"
] | this is code (DASH Client) use fs.http_max_rate = 1000 is not working is something mistaken
```
import time
import sys
import cv2
import types
import libgpac as gpac
class MyCustomDASHAlgo:
#get notifications when a DASH period starts or ends
def on_period_reset(self, type):
print('period reset type ' + str(type))
#get notification when a new group (i.e., set of adaptable qualities, `AdaptationSet` in DASH) is created. Some groups may be left unexposed by the DASH client
#the qualities are sorted from min bandwidth/quality to max bandwidth/quality
def on_new_group(self, group):
print('new group ' + str(group.idx) + ' qualities ' + str(len(group.qualities)) + ' codec ' + group.qualities[0].codec);
#perform adaptation logic - return value is the new quality index, or -1 to keep as current, -2 to discard (debug, segments won't be fetched/decoded)
def on_rate_adaptation(self, group, base_group, force_low_complexity, stats):
print('We are adapting on group ' + str(group.idx) )
print('' + str(stats))
# perform adaptation, check group.SRD to perform spatial adaptation, ...
#
#in this example we simply cycle through qualities
newq = stats.active_quality_idx + 1
if newq >= len(group.qualities):
newq = 0
return newq
# this callback is optional, use it only if your algo may abort a running transfer (this can be very costly as it will require closing and reopening the HTTP connection for HTTP 1.1 )
# -1 to continue download
# or -2 to abort download but without retrying to download a segment at lower quality for the same media time
# or the index of the new quality to download for the same media time
def on_download_monitor(self, group, stats):
print('download monitor group ' + str(group.idx) + ' stats ' + str(stats) );
return -1
#create an instance of the algo
mydash = MyCustomDASHAlgo()
#define a custom filter session monitoring the creation of new filters
class MyFilterSession(gpac.FilterSession):
def __init__(self, flags=0, blacklist=None, nb_threads=0, sched_type=0):
gpac.FilterSession.__init__(self, flags, blacklist, nb_threads, sched_type)
def on_filter_new(self, f):
print("new filter " + f.name);
#bind the dashin filter to our algorithm object
if f.name == "dashin":
f.bind(mydash);
def on_filter_del(self, f):
print("del filter " + f.name);
#create a session
fs = MyFilterSession()
fs.http_max_rate = 1000
#create a source, here to TelecomParis DASH test sequences
f1 = fs.load_src("https://download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/mp4-live-1s/mp4-live-1s-mpd-AV-BS.mpd")
if not f1:
raise Exception('Failed to load source')
#load a sink, here video out
f2 = fs.load("vout")
if not f2:
raise Exception('Failed to load sink')
#run the session in blocking mode
fs.run()
```
| call python api(session.http_max_rate=VALUE ) some question | https://api.github.com/repos/gpac/gpac/issues/2313/comments | 1 | 2022-11-11T08:31:00Z | 2022-11-15T16:59:44Z | https://github.com/gpac/gpac/issues/2313 | 1,445,125,201 | 2,313 |
[
"gpac",
"gpac"
] | I'm using `FFmpeg` with `gpac` to generate multiple resolutions from source video and package these segments to HLS respectively.
I've packaged hundreds of videos using the same commands without any issues.
You can find the original video [here](https://teachcamp.net/dashboard/download/storage/UTBSQk1ERWdMU0JUWlhOemFXOXVJREF4SUMwZ2RHVmhZMmhqWVcxd0lDaE5ZWGtnTWpBeU1pa3ViWEEw).
> Just for comparison, a perfectly working video [here](https://teachcamp.net/dashboard/download/storage/Wm1sdVpDQnpiMk5wWVd3Z2JXVmthV0VnWVdOamIzVnVkSE1nZDJsMGFDQlRhR1Z5Ykc5amF5QW9hVzRnTlNCTlNVNHBMbTF3TkE9PQ==).
> I'm only generating one resolution for now (144p) for testing only.
### Generating Audio
```bash
ffmpeg -y -i video.mp4 -c:a aac -b:a 126k -vn 1668036377967_audio.m4a
```
### Generating Video
```bash
ffmpeg -y -i video.mp4 -preset slow -tune film -vsync passthrough -an -c:v libx264 -crf 18 -b:v 200k -pix_fmt yuv420p -vf scale=256:144 -f mp4 1668035664380_144p.mp4
```
### Packaging
```bash
gpac -i 1668035664380_144p.mp4 -i 1668035664380_audio.m4a -o playlist.m3u8:segdur=10:profile=dashavc264.onDemand:m2ts
```
<details>
<summary>Error Logs</summary>
```bash
[IsoMedia] Track 2 is disabled, ignoring track - you may retry by specifying alltk option
[IsoMedia] Track 2 is disabled, ignoring track - you may retry by specifying alltk option
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
[MPEG2-TS Muxer] Not enough data to fill current PES (PID 101) - filling with 0xFF
gpac: media_tools/m2ts_mux.c:2026: gf_m2ts_mux_pes_get_next_packet: Assertion `stream->pes_data_remain >= copy_next' failed.
Aborted
```
</details>
I really do not know where is the issue, and how to read the error logs.
| Unexpected MPEG2-TS Muxer packaging HLS | https://api.github.com/repos/gpac/gpac/issues/2311/comments | 8 | 2022-11-09T23:28:56Z | 2022-11-15T15:32:00Z | https://github.com/gpac/gpac/issues/2311 | 1,442,928,752 | 2,311 |
[
"gpac",
"gpac"
] | Hi all,
Does anyone have any examples of reading and maybe queueing samples from MP4Box and creating an AudioBuffer from these?
Currently I have something that creates EncodedAudioChunks and it works great, but I'm having trouble using Web Codecs on the audio side to work well with AudioBuffers from elsewhere, so I'm thinking that I'd like to avoid using Web Codecs on the audio side. Unfortunately I fell short trying to process these samples without making the EncodedAudioChunks (other than decoding them all with Web Codecs)
Thanks!
| MP4 audio to AudioBuffer | https://api.github.com/repos/gpac/gpac/issues/2310/comments | 2 | 2022-11-08T19:44:40Z | 2022-11-09T17:23:48Z | https://github.com/gpac/gpac/issues/2310 | 1,440,802,751 | 2,310 |
[
"gpac",
"gpac"
] | HLS `#EXT-X-TARGETDURATION=3` written but segments are 3.84s, [specification talks about the EXTINF duration round to a nearest integer](https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.3.1) must be less than or equal to a target duration. Should target duration be `4` if segments were `3.84s` ?
**Question:** Is it possible to override the target duration value without a post-process scripting?
**Side question:** Also would like to set `DEFAULT=YES | DEFAULT=NO` attribute per audio EXT-X-MEDIA lines, possible?
Main manifest
```
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=700000,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=25,AUDIO="audio"
manifest_v1.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1500000,CODECS="avc1.4D4028,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=25,AUDIO="audio"
manifest_v2.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_eng",LANGUAGE="eng",AUTOSELECT=YES,URI="manifest_a1_eng.m3u8",CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="a1_ger",LANGUAGE="ger",AUTOSELECT=YES,URI="manifest_a1_ger.m3u8",CHANNELS="2"
```
Video v1 playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="v1/i.mp4"
#EXTINF:3.84,
v1/1.m4s
#EXTINF:3.84,
v1/2.m4s
..continue..
```
Audio a1_eng playlist
```
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="a1_eng/i.mp4"
#EXTINF:3.84,
a1_eng/1.m4s
#EXTINF:3.84,
a1_eng/2.m4s
#EXTINF:3.84,
a1_eng/3.m4s
..continue...
```
mp4box command line
```
MP4Box.exe ^
-dash 184320 -frag 46080 -dash-scale 48000 -mem-frags -rap -profile dashavc264:live ^
-profile-ext "urn:hbbtv:dash:profile:isoff-live:2012" -bs-switching no ^
-sample-groups-traf -single-traf --tfdt64 --tfdt_traf --noroll=yes --btrt=no ^
--truns_first=yes -subsegs-per-sidx 0 --cmaf=cmf2 ^
-segment-name "$RepresentationID$/$Number$$Init=i$" -segment-timeline ^
-out "manifest.mpd:dual" ^
temp-v1.mp4#trackID=1:id=v1:period=p0:dur=38.4:role=main:bandwidth=700000:#HLSPL=manifest_v1.m3u8 ^
temp-v2.mp4#trackID=1:id=v2:period=p0:dur=38.4:bandwidth=1500000:#HLSPL=manifest_v2.m3u8^
temp-a1.mp4#trackID=1:id=a1_eng:period=p0:dur=38.4:role=main:bandwidth=128000:#HLSPL=manifest_a1_eng.m3u8:#HLSGroup=audio ^
temp-a1_ger.mp4#trackID=1:id=a1_ger:period=p0:dur=38.4:role=alternate:bandwidth=128000:#HLSPL=manifest_a1_ger.m3u8:#HLSGroup=audio
```
| HLS playlist #EXT-X-TARGETDURATION=3 but segments are EXTINF:3.84 seconds | https://api.github.com/repos/gpac/gpac/issues/2309/comments | 1 | 2022-11-08T09:31:37Z | 2022-11-08T15:44:03Z | https://github.com/gpac/gpac/issues/2309 | 1,439,819,075 | 2,309 |
[
"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/
| How to remove a Tile?When I delete a tile, none of the subsequent tiles will play.In the guide you gave, what player is used after removing a tile?? | https://api.github.com/repos/gpac/gpac/issues/2308/comments | 5 | 2022-11-07T13:52:12Z | 2022-11-15T16:52:08Z | https://github.com/gpac/gpac/issues/2308 | 1,438,402,595 | 2,308 |
[
"gpac",
"gpac"
] | ### Description
Memory Leak in dimC_box_read at isomedia/box_code_3gpp.c:1060
### System info
ubuntu 20.04 lts
###
version info:
```
./MP4Box -version
MP4Box - GPAC version 2.1-DEV-rev460-g9d963dc62-master
(c) 2000-2022 Telecom Paris distributed under LGPL v2.1+ - http://gpac.io
Please cite our work in your research:
GPAC Filters: https://doi.org/10.1145/3339825.3394929
GPAC: https://doi.org/10.1145/1291233.1291452
GPAC Configuration:
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_DI
```
### compile
./configure --enable-sanitizer
make
### crash command:
./MP4Box -bt poc_ml
poc :
https://github.com/Janette88/test_pocs/blob/main/poc_ml
Here is output by ASAN:
```
[ISOBMFF] AV1ConfigurationBox: read only 4 bytes (expected 16).
[iso file] Box "av1C" (start 20) has 12 extra bytes
[isom] not enough bytes in box dimC: 0 left, reading 1 (file isomedia/box_code_3gpp.c, line 1082)
[iso file] Read Box "dimC" (start 44) failed (Invalid IsoMedia File) - skipping
Error opening file /home/fuzz/test/poc_ml: Invalid IsoMedia File
=================================================================
==71539==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 2566 byte(s) in 1 object(s) allocated from:
#0 0x7fe8c635f808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
#1 0x7fe8c2ef8d39 in dimC_box_read isomedia/box_code_3gpp.c:1060
#2 0x7fe8c2fb75c3 in gf_isom_box_read isomedia/box_funcs.c:1866
#3 0x7fe8c2fb75c3 in gf_isom_box_parse_ex isomedia/box_funcs.c:271
#4 0x7fe8c2fb8a15 in gf_isom_parse_root_box isomedia/box_funcs.c:38
#5 0x7fe8c2fe1a8c in gf_isom_parse_movie_boxes_internal isomedia/isom_intern.c:378
#6 0x7fe8c2fe7ca1 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:868
#7 0x7fe8c2fe7ca1 in gf_isom_open_file isomedia/isom_intern.c:988
#8 0x55c56a3e9139 in mp4box_main /home/fuzz/gpac/applications/mp4box/mp4box.c:6209
#9 0x7fe8c0558082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: 2566 byte(s) leaked in 1 allocation(s).
```
### code location:
```
GF_Err dimC_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 i, msize;
GF_DIMSSceneConfigBox *p = (GF_DIMSSceneConfigBox *)s;
ISOM_DECREASE_SIZE(p, 3);
p->profile = gf_bs_read_u8(bs);
p->level = gf_bs_read_u8(bs);
p->pathComponents = gf_bs_read_int(bs, 4);
p->fullRequestHost = gf_bs_read_int(bs, 1);
p->streamType = gf_bs_read_int(bs, 1);
p->containsRedundant = gf_bs_read_int(bs, 2);
char *str = gf_malloc(sizeof(char)*(p->size+1)); //line 1060 here p->size+1 = 2566
if (!str) return GF_OUT_OF_MEM;
msize = (u32) p->size;
str[msize] = 0;
i=0;
str[0]=0;
while (i < msize) {
ISOM_DECREASE_SIZE(p, 1);
str[i] = gf_bs_read_u8(bs);
if (!str[i]) break;
i++;
}
if (i == msize) {
gf_free(str);
return GF_ISOM_INVALID_FILE;
}
p->textEncoding = gf_strdup(str);
i=0;
str[0]=0;
while (i < msize) {
ISOM_DECREASE_SIZE(p, 1); //line :1082 not enough bytes in box dimC: 0 left, reading 1
str[i] = gf_bs_read_u8(bs);
if (!str[i]) break;
i++;
}
if (i == msize) {
gf_free(str);
return GF_ISOM_INVALID_FILE;
}
p->contentEncoding = gf_strdup(str);
gf_free(str);
if (!p->textEncoding || !p->contentEncoding)
return GF_OUT_OF_MEM;
return GF_OK;
}
```
ps: The issue could be verified using the poc in issue 2294 and 2296. The patch of issue 2294 and 2296 was not perfect because it still existed memory leak risk .
ref:
https://github.com/gpac/gpac/issues/2294
https://github.com/gpac/gpac/issues/2296
| Memory Leak in dimC_box_read at isomedia/box_code_3gpp.c:1060 | https://api.github.com/repos/gpac/gpac/issues/2307/comments | 1 | 2022-11-07T12:35:15Z | 2022-11-08T02:28:56Z | https://github.com/gpac/gpac/issues/2307 | 1,438,293,014 | 2,307 |
[
"gpac",
"gpac"
] | <img width="663" alt="Windows MP4Box" src="https://user-images.githubusercontent.com/40682277/200276320-161eb6bc-4485-4abf-9982-6b493270273d.png">
<img width="509" alt="Linux MP4Box" src="https://user-images.githubusercontent.com/40682277/200276336-0714bebf-e3bd-42a1-ac41-0256c1e1e8ea.png">
As you can see from the screenshot, it works fine on Windows, but not on Linux. | mkv to mp4 remux not working in MP4Box on Linux. | https://api.github.com/repos/gpac/gpac/issues/2306/comments | 18 | 2022-11-07T09:33:40Z | 2022-11-07T16:12:29Z | https://github.com/gpac/gpac/issues/2306 | 1,438,046,646 | 2,306 |
[
"gpac",
"gpac"
] | https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux
What command should I use to build a nightly build rather than a stable build?
https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ | What command should I use to build a nightly build rather than a stable build? | https://api.github.com/repos/gpac/gpac/issues/2305/comments | 1 | 2022-11-07T06:46:43Z | 2022-11-07T08:12:57Z | https://github.com/gpac/gpac/issues/2305 | 1,437,848,463 | 2,305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.