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"
] | - [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Hi,
i've noticed that gpac hardcodes in many places -L/usr/lib which is very wrong is case of x86_64,aarch64, riscv64 and many more 64 bit platforms where libraries are placed in /lib64, /usr/lib64
These hardcodes produces linking errors:
```
/usr/bin/clang -shared "-Wl,-soname,libgpac.so.7" -o ../bin/gcc/libgpac.so utils/os_divers.o utils/os_file.o utils/list.o utils/bitstream.o utils/error.o utils/alloc.o utils/url.o utils/configfile.o utils/sha1.o utils/base_encoding.o utils/os_net.o utils/os_thread.o utils/os_config_init.o utils/cache.o utils/downloader.o utils/xml_parser.o utils/utf.o utils/token.o utils/color.o utils/os_module.o utils/math.o utils/path2d.o utils/path2d_stroker.o utils/module.o utils/uni_bidi.o utils/ringbuffer.o utils/unicode.o utils/map.o mcrypt/cbc.o mcrypt/cfb.o mcrypt/ctr.o mcrypt/des.o mcrypt/ecb.o mcrypt/g_crypt.o mcrypt/ncfb.o mcrypt/nofb.o mcrypt/ofb.o mcrypt/rijndael-128.o mcrypt/rijndael-192.o mcrypt/rijndael-256.o mcrypt/stream.o mcrypt/tripledes.o scenegraph/base_scenegraph.o scenegraph/mpeg4_animators.o scenegraph/commands.o scenegraph/mpeg4_nodes.o scenegraph/mpeg4_valuator.o scenegraph/vrml_interpolators.o scenegraph/vrml_proto.o scenegraph/vrml_route.o scenegraph/vrml_script.o scenegraph/vrml_smjs.o scenegraph/vrml_tools.o scenegraph/x3d_nodes.o scenegraph/svg_attributes.o scenegraph/svg_types.o scenegraph/svg_smjs.o scenegraph/smil_anim.o scenegraph/smil_timing.o scenegraph/svg_properties.o scenegraph/dom_events.o scenegraph/dom_smjs.o scenegraph/xbl_process.o scenegraph/xml_ns.o scenegraph/html5_media_smjs.o scenegraph/html5_mse_smjs.o scenegraph/webvtt_smjs.o ietf/rtcp.o ietf/rtp.o ietf/rtp_packetizer.o ietf/rtp_pck_3gpp.o ietf/rtp_pck_mpeg12.o ietf/rtp_pck_mpeg4.o ietf/rtsp_command.o ietf/rtsp_common.o ietf/rtsp_response.o ietf/rtsp_session.o ietf/sdp.o ietf/rtp_depacketizer.o ietf/rtp_streamer.o bifs/arith_decoder.o bifs/bifs_codec.o bifs/bifs_node_tables.o bifs/com_dec.o bifs/com_enc.o bifs/conditional.o bifs/field_decode.o bifs/field_encode.o bifs/memory_decoder.o bifs/predictive_mffield.o bifs/quantize.o bifs/script_dec.o bifs/script_enc.o bifs/unquantize.o isomedia/avc_ext.o isomedia/box_code_3gpp.o isomedia/box_code_apple.o isomedia/box_code_base.o isomedia/box_code_drm.o isomedia/box_code_meta.o isomedia/box_dump.o isomedia/box_funcs.o isomedia/data_map.o isomedia/drm_sample.o isomedia/isom_intern.o isomedia/isom_read.o isomedia/isom_store.o isomedia/isom_write.o isomedia/media.o isomedia/media_odf.o isomedia/meta.o isomedia/movie_fragments.o isomedia/sample_descs.o isomedia/stbl_read.o isomedia/stbl_write.o isomedia/track.o isomedia/tx3g.o isomedia/iff.o isomedia/hint_track.o isomedia/hinting.o isomedia/box_code_adobe.o isomedia/ttml.o odf/desc_private.o odf/descriptors.o odf/odf_code.o odf/odf_codec.o odf/odf_command.o odf/qos.o odf/slc.o odf/ipmpx_code.o odf/oci_codec.o odf/ipmpx_dump.o odf/ipmpx_parse.o odf/odf_dump.o odf/odf_parse.o media_tools/isom_tools.o media_tools/dash_segmenter.o media_tools/av_parsers.o media_tools/img.o media_tools/media_import.o media_tools/mpegts.o media_tools/m3u8.o media_tools/mpd.o media_tools/dash_client.o media_tools/media_export.o media_tools/m2ts_mux.o media_tools/filestreamer.o media_tools/avilib.o media_tools/mpeg2_ps.o media_tools/ismacryp.o media_tools/isom_hinter.o media_tools/saf.o media_tools/vobsub.o media_tools/text_import.o media_tools/html5_media.o media_tools/html5_mse.o media_tools/webvtt.o scene_manager/scene_manager.o scene_manager/text_to_bifs.o scene_manager/loader_bt.o scene_manager/loader_xmt.o scene_manager/loader_isom.o scene_manager/loader_qt.o scene_manager/loader_svg.o scene_manager/swf_parse.o scene_manager/swf_bifs.o scene_manager/swf_svg.o scene_manager/scene_dump.o scene_manager/scene_stats.o scene_manager/scene_engine.o scene_manager/encode_isom.o terminal/channel.o terminal/clock.o terminal/decoder.o terminal/term_node_init.o terminal/input_sensor.o terminal/media_control.o terminal/media_manager.o terminal/media_memory.o terminal/media_object.o terminal/media_sensor.o terminal/mpeg4_inline.o terminal/network_service.o terminal/object_browser.o terminal/object_manager.o terminal/scene.o terminal/terminal.o terminal/svg_external.o compositor/audio_input.o compositor/audio_mixer.o compositor/audio_render.o compositor/bindable.o compositor/camera.o compositor/compositor.o compositor/compositor_2d.o compositor/compositor_3d.o compositor/compositor_node_init.o compositor/drawable.o compositor/events.o compositor/font_engine.o compositor/hc_flash_shape.o compositor/hardcoded_protos.o compositor/mesh.o compositor/mesh_collide.o compositor/mesh_tesselate.o compositor/mpeg4_animstream.o compositor/mpeg4_audio.o compositor/mpeg4_background.o compositor/mpeg4_background2d.o compositor/mpeg4_bitmap.o compositor/mpeg4_composite.o compositor/mpeg4_form.o compositor/mpeg4_geometry_2d.o compositor/mpeg4_geometry_3d.o compositor/mpeg4_geometry_ifs2d.o compositor/mpeg4_geometry_ils2d.o compositor/mpeg4_gradients.o compositor/mpeg4_grouping.o compositor/mpeg4_grouping_2d.o compositor/mpeg4_grouping_3d.o compositor/mpeg4_layer_2d.o compositor/mpeg4_layer_3d.o compositor/mpeg4_layout.o compositor/mpeg4_lighting.o compositor/mpeg4_path_layout.o compositor/mpeg4_sensors.o compositor/mpeg4_sound.o compositor/mpeg4_text.o compositor/mpeg4_textures.o compositor/mpeg4_timesensor.o compositor/mpeg4_viewport.o compositor/navigate.o compositor/offscreen_cache.o compositor/svg_base.o compositor/svg_filters.o compositor/svg_font.o compositor/svg_geometry.o compositor/svg_grouping.o compositor/svg_media.o compositor/svg_paint_servers.o compositor/svg_text.o compositor/texturing.o compositor/texturing_gl.o compositor/visual_manager.o compositor/visual_manager_2d.o compositor/visual_manager_2d_draw.o compositor/visual_manager_3d.o compositor/visual_manager_3d_gl.o compositor/x3d_geometry.o laser/lsr_enc.o laser/lsr_dec.o laser/lsr_tables.o -lm -L/usr/lib -lGL -lGLU -lX11 -lz -lssl -lcrypto -ljpeg -lpng -logg -lpthread -ldl -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Ofast -Wl,-O2 -Wl,--no-undefined -flto -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Ofast -Wl,-O2 -Wl,--no-undefined -flto -Wl,--warn-common -Wl,-z,defs
make[1]: Leaving directory '/builddir/build/BUILD/gpac-0.7.1/src'
BUILDSTDERR: ld: error: /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../lib64/crti.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/crtbeginS.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/crtfastmath.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/os_divers.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/os_file.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/list.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/bitstream.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/error.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/alloc.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/url.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/configfile.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/sha1.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/base_encoding.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/os_net.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/os_thread.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/os_config_init.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/cache.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/downloader.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/xml_parser.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: utils/utf.o is incompatible with elf_x86_64
BUILDSTDERR: ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
BUILDSTDERR: clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
BUILDSTDERR: make[1]: *** [Makefile:276: ../bin/gcc/libgpac.so] Error 1
RPM build errors:
BUILDSTDERR: make: *** [Makefile:9: all] Error 2
```
We had to hack your configure script and other files to get rid of these hardcodes.
Please add detection of lib place and use -L${libdir} which will point to ${prefix}/lib64 on 64bit platforms and to ${prefix}/lib on 32 bit platforms.
Our changes to make gpac-0.8.0 compile without errors:
https://github.com/OpenMandrivaAssociation/gpac/commit/715c05537b80b5afecddeacecada99c30f01b634
https://github.com/OpenMandrivaAssociation/gpac/commit/52eff3bae2907f7c05284dfc7118bd3b078d0868
https://github.com/OpenMandrivaAssociation/gpac/commit/195ee01ac5a9fa35938c0b1d9a556f38127d026c | Please do not hardcode -L/usr/lib | https://api.github.com/repos/gpac/gpac/issues/1417/comments | 10 | 2020-02-20T10:35:32Z | 2020-04-28T12:27:17Z | https://github.com/gpac/gpac/issues/1417 | 568,204,119 | 1,417 |
[
"gpac",
"gpac"
] | I haven't yet found a reliable way to reproduce this issue, and for that I deeply apologize.
I rip my DVD collections for personal use as mp4 with HEVC compression is much less cumbersome than watching directly from the discs. Although most of the playback software does not pay any attention to the name of the audio tracks, for commentaries and other features I name the track for reference purposes.
Sometimes, something odd happens (I've changed the names here to be generic ones) when doing `mp4box _file_ -name _tracknumber_ "Commentary with the Writer & Producer"`, the C in "Commentary" will be cut off. Oddly, if I use lowercase "commentary" it works fine - well other than having commentary be lower case. This happens fairly rarely (I've had this happen maybe... 4 times in the past year) and I have no idea what any of the affected files have had in common.
```
Audio #4
ID : 5
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 22 min 21 s
Source duration : 22 min 21 s
Bit rate mode : Constant
Bit rate : 160 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 25.6 MiB (9%)
Source stream size : 25.6 MiB (9%)
Title : ommentary with the Writer & Producer
```
Builds Tested:
```
GPAC version 0.8.0-rev177-g51a8ef87-master
GPAC version 0.8.0-rev95-g00dfc9336-ab-suite
``` | First Letter of -name Sometimes Gets Cut Off | https://api.github.com/repos/gpac/gpac/issues/1416/comments | 5 | 2020-02-19T22:25:45Z | 2020-09-21T20:40:50Z | https://github.com/gpac/gpac/issues/1416 | 567,886,753 | 1,416 |
[
"gpac",
"gpac"
] | Does gpac0.9 support http pipeline thanks | Does gpac0.9 support http pipeline | https://api.github.com/repos/gpac/gpac/issues/1415/comments | 1 | 2020-02-18T09:05:57Z | 2020-02-18T11:13:54Z | https://github.com/gpac/gpac/issues/1415 | 566,745,384 | 1,415 |
[
"gpac",
"gpac"
] | When using the combination of the -segment-timeline and -single-file we see that the SegmentList element is not closed, i.e. missing '>'
MP4Box -dash 1 -frag-rap -segment-timeline -single-file video.mp4
```
<Period duration="PT0H18M30.600S">
<AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="25" par="16:9" lang="und" startWithSAP="1">
<SegmentList timescale="1000"
<SegmentTimeline>
<S t="0" d="5000" r="221"/>
<S d="600"/>
</SegmentTimeline>
</SegmentList>
``` | The dash manifest is not not well-formed when using -segment-timeline and -single-file | https://api.github.com/repos/gpac/gpac/issues/1414/comments | 1 | 2020-02-17T12:22:10Z | 2020-02-17T13:09:07Z | https://github.com/gpac/gpac/issues/1414 | 566,264,387 | 1,414 |
[
"gpac",
"gpac"
] | The input file is 240 tilesοΌwhen I run hevcsplitοΌNULL pointer error occured, pid is NULL:

The stack info is as follows:

entryCount=152οΌbut tile num is 240, so gpac collapsed.
Is there any method to fix it?
| NULL pointer occured when split a big hevc file when use gpac-filter | https://api.github.com/repos/gpac/gpac/issues/1413/comments | 6 | 2020-02-17T09:23:27Z | 2020-02-18T12:18:09Z | https://github.com/gpac/gpac/issues/1413 | 566,163,577 | 1,413 |
[
"gpac",
"gpac"
] | Dear gpac community,
I want to perform a CMAF packaging, measuring the time that takes to do it.
I use GPAC 0.8.0 that has this CMAF feature as the description, but I cannot see any documentation about that.
Could you please tell me what command lines should I use to perform CMAF packaging?
Thank you, kind regards.
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/
| CMAF packaging | https://api.github.com/repos/gpac/gpac/issues/1412/comments | 2 | 2020-02-15T15:08:10Z | 2020-07-31T12:03:04Z | https://github.com/gpac/gpac/issues/1412 | 565,760,210 | 1,412 |
[
"gpac",
"gpac"
] | HiοΌI want to split a hevc file on win10οΌbut get errorsοΌcould you tell me the reason? Thanks a lot.
The command is "**gpac -i ./video/counter/counter_1280_720_I_25_tiled_qp20.hevc hevcsplit:FID=1 -o ./output/temp/high_0x0.hvc:SID=1#CropOrigin=*** "
The error is " **No filter chain found for PID PID1 in filter hevcsplit to any loaded filters - NOT CONNECTED** "
The info of registered filters:

| hevcsplit error on windowsοΌNo filter chain found for PID PID1 in filter hevcsplit to any loaded filters - NOT CONNECTED | https://api.github.com/repos/gpac/gpac/issues/1411/comments | 1 | 2020-02-15T06:19:08Z | 2020-02-15T14:58:11Z | https://github.com/gpac/gpac/issues/1411 | 565,704,757 | 1,411 |
[
"gpac",
"gpac"
] | I wanna to try to use MP4Client to playback the demo of tiling video on GPAC official website (https://gpac.wp.imt.fr/2016/05/25/srdtuto/), but the player display nothing.
The video URL:
http://download.tsi.telecom-paristech.fr/gpac/SRD/srd_hevc/multi_rate_p60/hevc_srd.mpd
| How to playback the demo of MPEG-DASH SRD and HEVC tiling VR videos? | https://api.github.com/repos/gpac/gpac/issues/1410/comments | 1 | 2020-02-12T09:27:50Z | 2020-07-31T11:15:28Z | https://github.com/gpac/gpac/issues/1410 | 563,864,727 | 1,410 |
[
"gpac",
"gpac"
] | Can play http url but not https url

| How to play https mpd url | https://api.github.com/repos/gpac/gpac/issues/1408/comments | 2 | 2020-02-10T03:40:10Z | 2020-03-24T17:53:48Z | https://github.com/gpac/gpac/issues/1408 | 562,305,528 | 1,408 |
[
"gpac",
"gpac"
] | Is there a way to speed up h264 to mp4 conversions? When I convert a long (around 20 minutes) HD video the process can take up to a minute, and if I convert even larger videos, then some of the video can be lost.
The situation can be really bad, as 1920x1080@25Hz videos that are 5 mins long take around 2-3mins. | MP4 conversion optimisation | https://api.github.com/repos/gpac/gpac/issues/1407/comments | 4 | 2020-02-09T15:06:28Z | 2020-04-20T19:50:41Z | https://github.com/gpac/gpac/issues/1407 | 562,190,200 | 1,407 |
[
"gpac",
"gpac"
] | Command-: MP4Box -crypt test.xml $POC -out test.mp4
Version-: MP4Box - GPAC version 0.8.0-rev177-g51a8ef874-master
Reproducer file-: [Reproducer](https://github.com/mannuJoshi/POCs/blob/master/POC)
GDB-:
```
IsoMedia import id:000034,sig:11,src:000003,op:flip4,pos:8995 - track ID 1 - media type "sdsm:mp4s"
[BS] Attempt to write 128 bits, when max is 32
Program received signal SIGSEGV, Segmentation fault.
[ Legend: Modified register | Code | Heap | Stack | String ]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ registers ββββ
$rax : 0x0
$rbx : 0x0
$rcx : 0x0
$rdx : 0x1
$rsp : 0x00007fffffff8fc0 β 0x0000000100000000
$rbp : 0x2153
$rsi : 0x1
$rdi : 0x00005555555bff20 β 0x0000000000000000
$rip : 0x00007ffff7b0e625 β <gf_media_update_bitrate+389> mov DWORD PTR [rax+0x14], ecx
$r8 : 0x2
$r9 : 0x1
$r10 : 0x0
$r11 : 0x00005555555c37c0 β 0x0000000000000001
$r12 : 0x2153
$r13 : 0x00005555555bff20 β 0x0000000000000000
$r14 : 0x1
$r15 : 0x00005555555c4460 β 0x0000000000010003
$eflags: [zero carry PARITY adjust sign trap INTERRUPT direction overflow RESUME virtualx86 identification]
$cs: 0x0033 $ss: 0x002b $ds: 0x0000 $es: 0x0000 $fs: 0x0000 $gs: 0x0000
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ stack ββββ
0x00007fffffff8fc0β+0x0000: 0x0000000100000000 β $rsp
0x00007fffffff8fc8β+0x0008: 0x0000000000000000
0x00007fffffff8fd0β+0x0010: 0x0000000000002153 ("S!"?)
0x00007fffffff8fd8β+0x0018: 0x00000000000003e8
0x00007fffffff8fe0β+0x0020: 0x00007fffffff9000 β 0x0000000000000000
0x00007fffffff8fe8β+0x0028: 0x00005555555c4460 β 0x0000000000010003
0x00007fffffff8ff0β+0x0030: 0x0000000000000000
0x00007fffffff8ff8β+0x0038: 0x0000000000000000
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ code:x86:64 ββββ
0x7ffff7b0e618 <gf_media_update_bitrate+376> sbb BYTE PTR [r9+r9*4-0x11], r9b
0x7ffff7b0e61d <gf_media_update_bitrate+381> mov edx, 0x1
0x7ffff7b0e622 <gf_media_update_bitrate+386> mov esi, r14d
β 0x7ffff7b0e625 <gf_media_update_bitrate+389> mov DWORD PTR [rax+0x14], ecx
0x7ffff7b0e628 <gf_media_update_bitrate+392> mov rax, QWORD PTR [r15+0x18]
0x7ffff7b0e62c <gf_media_update_bitrate+396> mov rcx, r15
0x7ffff7b0e62f <gf_media_update_bitrate+399> mov DWORD PTR [rax+0x10], ebx
0x7ffff7b0e632 <gf_media_update_bitrate+402> mov rax, QWORD PTR [r15+0x18]
0x7ffff7b0e636 <gf_media_update_bitrate+406> mov DWORD PTR [rax+0xc], ebp
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ threads ββββ
[#0] Id 1, Name: "MP4Box", stopped, reason: SIGSEGV
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ trace ββββ
[#0] 0x7ffff7b0e625 β gf_media_update_bitrate()
[#1] 0x7ffff7b13cd6 β gf_import_isomedia()
[#2] 0x7ffff7b211d5 β gf_media_import()
[#3] 0x55555556df0a β mp4boxMain()
[#4] 0x7ffff74b5b97 β __libc_start_main(main=0x5555555631e0 <main>, argc=0x6, argv=0x7fffffffdfe8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfd8)
[#5] 0x55555556321a β _start()
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
0x00007ffff7b0e625 in gf_media_update_bitrate () from /usr/local/lib/libgpac.so.8
gefβ€ bt
#0 0x00007ffff79d18fd in gf_isom_get_track_id () from /usr/local/lib/libgpac.so.8
#1 0x00007ffff7b45ef1 in gf_crypt_file () from /usr/local/lib/libgpac.so.8
#2 0x0000555555577575 in mp4boxMain (argc=0x6, argv=0x7fffffffdfb8) at main.c:5474
#3 0x00005555555796a3 in main (argc=0x6, argv=0x7fffffffdfb8) at main.c:5985
gefβ€ i r
rax 0x0 0x0
rbx 0x0 0x0
rcx 0x20 0x20
rdx 0x0 0x0
rsi 0x0 0x0
rdi 0x5555555d0650 0x5555555d0650
rbp 0x7ffffffbd660 0x7ffffffbd660
rsp 0x7ffffffbd640 0x7ffffffbd640
r8 0x0 0x0
r9 0x0 0x0
r10 0x19 0x19
r11 0x7ffff79d18b5 0x7ffff79d18b5
r12 0x555555562470 0x555555562470
r13 0x7fffffffdfb0 0x7fffffffdfb0
r14 0x0 0x0
r15 0x0 0x0
rip 0x7ffff79d18fd 0x7ffff79d18fd <gf_isom_get_track_id+72>
eflags 0x10202 [ IF RF ]
cs 0x33 0x33
ss 0x2b 0x2b
ds 0x0 0x0
es 0x0 0x0
fs 0x0 0x0
gs 0x0 0x0
gefβ€ exploitable
Description: Access violation near NULL on source operand
Short description: SourceAvNearNull (16/22)
Hash: a5cc92255fba44e928c1a0bb49438db1.a5cc92255fba44e928c1a0bb49438db1
Exploitability Classification: PROBABLY_NOT_EXPLOITABLE
Explanation: The target crashed on an access violation at an address matching the source operand of the current instruction. This likely indicates a read access violation, which may mean the application crashed on a simple NULL dereference to data structure that has no immediate effect on control of the processor.
Other tags: AccessViolation (21/22)
```
| Null pointer dereference in function gf_isom_get_track_id() | https://api.github.com/repos/gpac/gpac/issues/1406/comments | 1 | 2020-02-08T13:37:09Z | 2020-06-11T17:32:43Z | https://github.com/gpac/gpac/issues/1406 | 562,020,033 | 1,406 |
[
"gpac",
"gpac"
] | I have an mp4 with a 2021ms start offset added. When using the negctts flag I find that all elst information is removed and the stream reset to a 0s start. Is this the intended behavior? A media_time -1 (empty edits) indicates an offset on the entire track and should be kept to maintain audio and video sync.
Please correct me if I have this wrong.
Without negccts:
```
MP4Box -add "../1920x1080-vod_big_buck_bunny_48khz-e4537b7b-2e31-4ccb-8830-54a51b1d5833.mp4#trackID=1" -set-track-id 1:1080 -new BBB_video.mp4
Box Type 'mvhd', size 108, version 0, flags 000000
creation_time DA6192B6 => UTC: Thu Feb 6 09:53:58 2020
modification_time DA6192B6 => UTC: Thu Feb 6 09:53:58 2020
duration 61980 @ timescale 1000 => 61.980s
...
Box Type 'edts', size 48:
Box Type 'elst', size 40, version 0, flags 000000
entry_count 2
segment_duration 2021
media_time -1
media_rate_integer 1
media_rate_fraction 0
segment_duration 59959
media_time 1600
media_rate_integer 1
media_rate_fraction 0
Box Type 'mdia', size 17516:
Box Type 'mdhd', size 32, version 0, flags 000000
creation_time 00000000 => UTC: Fri Jan 1 00:00:00 1904
modification_time DA6192B6 => UTC: Thu Feb 6 09:53:58 2020
duration 1151200 @ timescale 19200 => 59.958s
language und
...
Box Type 'stts', size 32, version 0, flags 000000
entry_count 2
sample_count 1439
sample_delta 800
sample_count 1
sample_delta 0
(total_delta 1151200)
Box Type 'ctts', size 10768, version 0, flags 000000
entry_count 1344
sample_count 1
sample_offset 1600
sample_count 1
sample_offset 3200
sample_count 2
sample_offset 800
sample_count 1
sample_offset 2400
sample_count 1
sample_offset 800
sample_count 16
sample_offset 1600
```
With negctts:
```
MP4Box -add "../1920x1080-vod_big_buck_bunny_48khz-e4537b7b-2e31-4ccb-8830-54a51b1d5833.mp4#trackID=1:negctts" -set-track-id 1:1080 -new BBB_video_negctts.mp4
Box Type 'moov', size 17785:
Box Type 'mvhd', size 108, version 0, flags 000000
creation_time DA6192CB => UTC: Thu Feb 6 09:54:19 2020
modification_time DA6192CB => UTC: Thu Feb 6 09:54:19 2020
duration 59958 @ timescale 1000 => 59.958s
...
Box Type 'mdia', size 17548:
Box Type 'mdhd', size 32, version 0, flags 000000
creation_time 00000000 => UTC: Fri Jan 1 00:00:00 1904
modification_time DA6192CB => UTC: Thu Feb 6 09:54:19 2020
duration 1151200 @ timescale 19200 => 59.958s
language und
...
Box Type 'stts', size 32, version 0, flags 000000
entry_count 2
sample_count 1439
sample_delta 800
sample_count 1
sample_delta 0
(total_delta 1151200)
Box Type 'ctts', size 10768, version 1, flags 000000
entry_count 1344
sample_count 1
sample_offset 0
sample_count 1
sample_offset 1600
sample_count 2
sample_offset -800
sample_count 1
sample_offset 800
sample_count 1
sample_offset -800
sample_count 16
sample_offset 0
...
Box Type 'cslg', size 32, version 0, flags 000000
compositionToDTSShift 1600
leastDecodeToDisplayDelta -1600
greatestDecodeToDisplayDelta 2400
compositionStartTime 0
compositionEndTime 1151200
```
Regards,
Geir | Should negctts remove all elst offsets | https://api.github.com/repos/gpac/gpac/issues/1405/comments | 1 | 2020-02-06T13:45:56Z | 2020-09-04T12:35:13Z | https://github.com/gpac/gpac/issues/1405 | 561,022,878 | 1,405 |
[
"gpac",
"gpac"
] | Hi,
Can you tell me like why these tags are used in fragmented files and how I could I incorporate them in .m4s with the data. I have encrypted the data part by openssl but I think I these tags are necessary to decrypt the content.
Thanks in advance
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/
| Incorporate saio, saiz tags in .m4s encrypted file | https://api.github.com/repos/gpac/gpac/issues/1404/comments | 5 | 2020-02-06T07:12:10Z | 2020-02-18T07:58:47Z | https://github.com/gpac/gpac/issues/1404 | 560,822,500 | 1,404 |
[
"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/
PATH="/home/shikha/buildroot.old/output/host/bin:/home/shikha/buildroot.old/output/host/sbin:/home/shikha/buildroot.old/output/host/usr/bin:/home/shikha/buildroot.old/output/host/usr/sbin:/home/jemish/bin:/home/jemish/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jemish/Downloads/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin:/home/jemish/workspace/lu500/CodeSourcery/arm-2009q1/bin" /usr/bin/make -j5 CC=/home/shikha/buildroot.old/output/host/usr/bin/aarch64-linux-gnu-g++ CXX=/home/shikha/buildroot.old/output/host/usr/bin/aarch64-linux-gnu-g++ -C /home/shikha/buildroot.old/output/build/c2play-1.0.0 c2play
==== Building c2play (debug) ====
Creating obj/Debug/c2play
main.cpp
Image.cpp
Buffer.cpp
Mutex.cpp
AmlCodec.cpp
MediaPlayer.cpp
In file included from ../../src/Media/Buffer.cpp:17:0:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/Pin.h:19,
from ../../src/Media/AmlCodec.h:26,
from ../../src/Media/AmlCodec.cpp:17:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
MediaSourceElement.cpp
AudioCodec.cpp
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/MediaSourceElement.h:19,
from ../../src/Media/MediaPlayer.h:19,
from ../../src/main.cpp:39:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/MediaSourceElement.h:19,
from ../../src/Media/MediaPlayer.h:19,
from ../../src/Media/MediaPlayer.cpp:17:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
Thread.cpp
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/AudioCodec.h:25,
from ../../src/Media/AudioCodec.cpp:17:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/MediaSourceElement.h:19,
from ../../src/Media/MediaSourceElement.cpp:17:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/main.cpp: In function βint main(int, char**)β:
../../src/main.cpp:341:2: warning: βvoid av_register_all()β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavformat/avformat.h:2050) [-Wdeprecated-declarations]
av_register_all();
^
../../src/main.cpp:341:18: warning: βvoid av_register_all()β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavformat/avformat.h:2050) [-Wdeprecated-declarations]
av_register_all();
^
LockedQueue.cpp
../../src/Media/MediaSourceElement.cpp: In member function βvoid MediaSourceElement::SetupPins()β:
../../src/Media/MediaSourceElement.cpp:107:44: warning: βAVStream::codecβ is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavformat/avformat.h:885) [-Wdeprecated-declarations]
AVCodecContext* codecCtxPtr = streamPtr->codec;
^
../../src/Media/MediaSourceElement.cpp:107:44: warning: βAVStream::codecβ is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavformat/avformat.h:885) [-Wdeprecated-declarations]
../../src/Media/MediaSourceElement.cpp:163:11: error: βCODEC_ID_MPEG2VIDEOβ was not declared in this scope
case CODEC_ID_MPEG2VIDEO:
^
../../src/Media/MediaSourceElement.cpp:175:11: error: βCODEC_ID_MPEG4β was not declared in this scope
case CODEC_ID_MPEG4:
^
../../src/Media/MediaSourceElement.cpp:181:11: error: βCODEC_ID_H264β was not declared in this scope
case CODEC_ID_H264:
^
../../src/Media/MediaSourceElement.cpp:194:11: error: βCODEC_ID_VC1β was not declared in this scope
case CODEC_ID_VC1:
^
../../src/Media/MediaSourceElement.cpp:245:11: error: βCODEC_ID_MP2β was not declared in this scope
case CODEC_ID_MP2:
^
../../src/Media/MediaSourceElement.cpp:251:11: error: βCODEC_ID_MP3β was not declared in this scope
case CODEC_ID_MP3:
^
../../src/Media/MediaSourceElement.cpp:257:11: error: βCODEC_ID_AACβ was not declared in this scope
case CODEC_ID_AAC:
^
../../src/Media/MediaSourceElement.cpp:263:11: error: βCODEC_ID_AC3β was not declared in this scope
case CODEC_ID_AC3:
^
../../src/Media/MediaSourceElement.cpp:269:11: error: βCODEC_ID_DTSβ was not declared in this scope
case CODEC_ID_DTS:
^
../../src/Media/MediaSourceElement.cpp:346:12: error: βCODEC_ID_HDMV_PGS_SUBTITLEβ was not declared in this scope
case CODEC_ID_HDMV_PGS_SUBTITLE:
^
../../src/Media/MediaSourceElement.cpp:351:12: error: βCODEC_ID_DVB_SUBTITLEβ was not declared in this scope
case CODEC_ID_DVB_SUBTITLE:
^
../../src/Media/MediaSourceElement.cpp:356:12: error: βCODEC_ID_TEXTβ was not declared in this scope
case CODEC_ID_TEXT:
^
../../src/Media/MediaSourceElement.cpp:361:12: error: βCODEC_ID_XSUBβ was not declared in this scope
case CODEC_ID_XSUB:
^
../../src/Media/MediaSourceElement.cpp:365:12: error: βCODEC_ID_SSAβ was not declared in this scope
case CODEC_ID_SSA:
^
../../src/Media/MediaSourceElement.cpp:369:12: error: βCODEC_ID_MOV_TEXTβ was not declared in this scope
case CODEC_ID_MOV_TEXT:
^
../../src/Media/MediaSourceElement.cpp:374:12: error: βCODEC_ID_DVB_TELETEXTβ was not declared in this scope
case CODEC_ID_DVB_TELETEXT:
^
../../src/Media/MediaSourceElement.cpp:379:12: error: βCODEC_ID_SRTβ was not declared in this scope
case CODEC_ID_SRT:
^
../../src/Media/AudioCodec.cpp: In member function βvoid AudioCodecElement::ProcessBuffer(AVPacketBufferSPTR, AVFrameBufferSPTR)β:
../../src/Media/AudioCodec.cpp:128:13: warning: βint avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4779) [-Wdeprecated-declarations]
int len = avcodec_decode_audio4(soundCodecContext,
^
../../src/Media/AudioCodec.cpp:131:7: warning: βint avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4779) [-Wdeprecated-declarations]
pkt);
^
../../src/Media/AudioCodec.cpp:209:6: warning: βint64_t av_frame_get_best_effort_timestamp(const AVFrame*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavutil/frame.h:683) [-Wdeprecated-declarations]
av_frame_get_best_effort_timestamp(frame->GetAVFrame()) *
^
../../src/Media/AudioCodec.cpp:209:60: warning: βint64_t av_frame_get_best_effort_timestamp(const AVFrame*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavutil/frame.h:683) [-Wdeprecated-declarations]
av_frame_get_best_effort_timestamp(frame->GetAVFrame()) *
^
Codec.cpp
AmlVideoSink.cpp
c2play.make:181: recipe for target 'obj/Debug/c2play/MediaSourceElement.o' failed
make[3]: *** [obj/Debug/c2play/MediaSourceElement.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../../src/Media/Codec.h:32:0,
from ../../src/Media/AmlVideoSink.h:27,
from ../../src/Media/AmlVideoSink.cpp:17:
../../src/Media/Buffer.h: In destructor βvirtual AVPacketBuffer::~AVPacketBuffer()β:
../../src/Media/Buffer.h:429:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:429:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h: In member function βvoid AVPacketBuffer::Reset()β:
../../src/Media/Buffer.h:465:3: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
../../src/Media/Buffer.h:465:23: warning: βvoid av_free_packet(AVPacket*)β is deprecated (declared at /home/shikha/buildroot.old/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/include/libavcodec/avcodec.h:4473) [-Wdeprecated-declarations]
av_free_packet(avpkt);
^
Makefile:16: recipe for target 'c2play' failed
make[2]: *** [c2play] Error 2
package/pkg-generic.mk:195: recipe for target '/home/shikha/buildroot.old/output/build/c2play-1.0.0/.stamp_built' failed
make[1]: *** [/home/shikha/buildroot.old/output/build/c2play-1.0.0/.stamp_built] Error 2
Makefile:36: recipe for target '_all' failed
make: *** [_all] Error 2
| FFMPEG | https://api.github.com/repos/gpac/gpac/issues/1403/comments | 1 | 2020-02-06T06:05:48Z | 2020-02-07T11:53:35Z | https://github.com/gpac/gpac/issues/1403 | 560,799,789 | 1,403 |
[
"gpac",
"gpac"
] | For my purpose i need to use MKV instead mp4 to add wav inside the container instead mp3/aac
It is possible?
Thanks | does mp4box supports MKV for mpeg dash live? | https://api.github.com/repos/gpac/gpac/issues/1402/comments | 1 | 2020-01-27T23:17:38Z | 2020-01-28T16:52:37Z | https://github.com/gpac/gpac/issues/1402 | 555,891,457 | 1,402 |
[
"gpac",
"gpac"
] | Due to mp3/aac codec doesn't support that level of trim precision:
```
ffprobe -v error -show_entries format=duration \
> -of default=noprint_wrappers=1:nokey=1 output_audio.mp4
372.006000
```
```
[...]
Next generation scheduled in 3895 ms (DASH time 412006 ms)
```
My command:
MP4Box -dash-live 2000 -subdur 4000 -bound -segment-timeline -no-cache -profile dashavc264:live -subsegs-per-sidx -1 -mpd-refresh 4 -time-shift 16 -min-buffer 2000 -url-template -insert-utc -bs-switching no -run-for 86400000 -dash-ctx ../../live/log.txt -out ../../live/manifest.mpd ../current/output_1080.mp4:bandwidth=4800000#video ../current/output_720.mp4:bandwidth=2400000#video ../current/output_360.mp4:bandwidth=800000#video ../current/output_audio.mp4:bandwidth=384000#audio
after 50% of the advertised duration an error will occur (probably)
I say probably because the time for testing it is very long so may ask if the mp4box command provide for a stable loop or if the error will occur, and if yes, it will occur, may ask an help to debug my command line on mp4box to avoid this issue?
Im sorry but trial and error it's too long since every try is about 24 hours..
Dash.js web based purpose.
Thansk in advance! | mp3/aac trim precision issue | https://api.github.com/repos/gpac/gpac/issues/1401/comments | 2 | 2020-01-26T18:04:19Z | 2020-07-31T11:35:02Z | https://github.com/gpac/gpac/issues/1401 | 555,264,749 | 1,401 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ ] I looked for a similar issue and couldn't find any.
- [ ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Hi,
there is a streaming platform that I used to download everything from and it was easy downloading series and episodes with ffmpeg from it but while ago they updated their website and now the streaming platform is protected with mpd. I am kind of Newbie and I dont actually now if GPAC can convert m3u8 links to mpd or just files but I wanted to ask if there is anyway to convert mpd links to m3u8. I tried it using following command :
`MP4Box -mpd link.mpd -out output.m3u8`
and then I got this error :
`Error converting Smooth mpd link) to MPD (output.m3u8): Feature Not Supported`
So that is when I made sure that gpac converts only files and does not convert links but I wanted to ask for your help anyway so if there is anyone who can help me I will really appreciate it.
| Converting mpd links to m3u8 | https://api.github.com/repos/gpac/gpac/issues/1400/comments | 2 | 2020-01-24T12:05:42Z | 2020-07-31T11:36:21Z | https://github.com/gpac/gpac/issues/1400 | 554,699,435 | 1,400 |
[
"gpac",
"gpac"
] | I want to know whether segment based encryption is supported in fmp4. I tried doing it through MP4Box but was not successful. Any idea about how to do in GPAC?
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [1] I looked for a similar issue and couldn't find any.
- [1] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [1] 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/
| Segment based encryption in fmp4 | https://api.github.com/repos/gpac/gpac/issues/1398/comments | 14 | 2020-01-22T14:25:58Z | 2020-01-28T14:59:54Z | https://github.com/gpac/gpac/issues/1398 | 553,575,977 | 1,398 |
[
"gpac",
"gpac"
] | 1. I changed the dash thread mode to GF_DASH_THREAD_ALL in dashdmx_initialize method of dmx_dash.c file:
ctx->dash = gf_dash_new(&ctx->dash_io, GF_DASH_THREAD_ALL, 0, ctx->auto_switch, (ctx->store==2) ? GF_TRUE : GF_FALSE, (ctx->algo==GF_DASH_ALGO_NONE) ? GF_TRUE : GF_FALSE, ctx->start_with, ctx->timeshift);
2.Then I run the gpac play , and found the following Call chainοΌ
dash_setup_period_and_groups-->gf_dash_download_resource-->dashdmx_io_create
3.In the dashdmx_io_create method, show the hint,so it return null:
//we work in non-threaded mode, only MPD fetcher is allowed
if (group_idx>=0)
return NULL;
4. So finally gf_dash_download_resource return out memory errorοΌ
if (! *sess) {
*sess = dash_io->create(dash_io, persistent_mode ? 1 : 0, url, group_idx);
if (!(*sess)) {
if (dash->atsc_clock_state)
return GF_IP_NETWORK_EMPTY;
GF_LOG(GF_LOG_ERROR, GF_LOG_DASH, ("[DASH] Cannot try to download %s... out of memory ?\n", url));
return GF_OUT_OF_MEM;
}
}
Is it a bug ?
How to set the dash run in GF_DASH_THREAD_ALL mode?
Thanks! | Bug in GF_DASH_THREAD_ALL modeοΌout of memory errorοΌfilter branchοΌ | https://api.github.com/repos/gpac/gpac/issues/1396/comments | 5 | 2020-01-21T04:04:41Z | 2020-04-20T19:55:26Z | https://github.com/gpac/gpac/issues/1396 | 552,612,068 | 1,396 |
[
"gpac",
"gpac"
] | HbbTV 1.5 mandates ```@scanType``` (E2.3):
> The profile-specific MPD shall provide the following information for all Representations, whether defined as part of the Representation or inherited.
> - For video Representations: @width, @height, @frameRate and @scanType
For GPAC >= 0.9 (filters), the ```scanType``` is applied from the external ```interlaced``` attribute. This attribute is only displayed when content is interlaced.
The executor of this issue would have to (if still relevant):
- force the writing of the ```scanType``` also for progressive content when the HbbTV 1.5 profile is enabled, and
- detect the scanType properly from the DecoderConfigDescriptor | HbbTV 1.5: map scan type according to content | https://api.github.com/repos/gpac/gpac/issues/1395/comments | 1 | 2020-01-20T12:51:54Z | 2020-01-23T13:45:41Z | https://github.com/gpac/gpac/issues/1395 | 552,281,256 | 1,395 |
[
"gpac",
"gpac"
] | When trying to mux E-AC-3 file into mp4 with version "gpac-0.9.0-DEV-rev3136-g7b1805e3-filters-x64", I'm getting the following loop of errors on 64-bit Windows 10 v1909.
I'm not sure in which build was this broken, but the same command works on version "gpac-0.9.0-DEV-rev2882-g045c7de1-filters-x64" which I still have.
The loop just goes on and on unless I terminate the process manually.
```
C:\gpac-0.9.0-DEV-rev3136-g7b1805e3-filters-x64>mp4box -add "audio_ddp.eac3" "audio.mp4"
[AC3Dmx] 3071 bytes unrecovered before sync word
[AC3Dmx] 3070 bytes unrecovered before sync word
[AC3Dmx] 3069 bytes unrecovered before sync word
[AC3Dmx] 3068 bytes unrecovered before sync word
...
...
[AC3Dmx] 18 bytes unrecovered before sync word
[AC3Dmx] 17 bytes unrecovered before sync word
[AC3Dmx] 16 bytes unrecovered before sync word
[AC3Dmx] 15 bytes unrecovered before sync word
[AC3Dmx] 14 bytes unrecovered before sync word
[AC3Dmx] 13 bytes unrecovered before sync word
[AC3Dmx] 12 bytes unrecovered before sync word
[AC3Dmx] 11 bytes unrecovered before sync word
[AC3Dmx] 10 bytes unrecovered before sync word
[AC3Dmx] 9 bytes unrecovered before sync word
[AC3Dmx] 8 bytes unrecovered before sync word
[AC3Dmx] 7 bytes unrecovered before sync word
[AC3Dmx] 6 bytes unrecovered before sync word
[AC3Dmx] 5 bytes unrecovered before sync word
[AC3Dmx] 4 bytes unrecovered before sync word
[AC3Dmx] 3 bytes unrecovered before sync word
[AC3Dmx] 2 bytes unrecovered before sync word
[AC3Dmx] 1 bytes unrecovered before sync word
[AC3Dmx] 3071 bytes unrecovered before sync word
[AC3Dmx] 3070 bytes unrecovered before sync word
[AC3Dmx] 3069 bytes unrecovered before sync word
[AC3Dmx] 3068 bytes unrecovered before sync word
[AC3Dmx] 3067 bytes unrecovered before sync word
[AC3Dmx] 3066 bytes unrecovered before sync word
...
...
``` | Filters branch mp4box fails to mux .eac3 -file into .mp4 container | https://api.github.com/repos/gpac/gpac/issues/1394/comments | 12 | 2020-01-19T16:34:38Z | 2023-01-04T11:25:25Z | https://github.com/gpac/gpac/issues/1394 | 551,948,277 | 1,394 |
[
"gpac",
"gpac"
] | Hi,
- [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
While checking #1337 with the same environment, I noted that the PoC crashed (while it should cover memory leaks).
It appears there's a malloc of UINT_MAX at
https://github.com/gpac/gpac/blob/7ec96e7eaf2dd69a888e944449f0059ac86999b5/src/isomedia/box_code_base.c#L8446
https://github.com/gpac/gpac/blob/7ec96e7eaf2dd69a888e944449f0059ac86999b5/src/isomedia/box_code_base.c#L8447
which fails.
This consistently occurs with all versions I tested from master back to 0.5.0.
Without ASAN this results in a segfault.
```
$ MP4Box -diso -out /dev/null ../CVE-2019-20171/POC-new-memory-leak
ptr->size: 7
size: 4294967295
==4700==ERROR: AddressSanitizer failed to allocate 0x100002000 (4294975488) bytes of LargeMmapAllocator (errno: 12)
==4700==Process memory map follows:
0x000000400000-0x0000004bf000 /home/gpac/gpac_public-master/destdir/usr/local/bin/MP4Box
0x0000006be000-0x0000006bf000 /home/gpac/gpac_public-master/destdir/usr/local/bin/MP4Box
0x0000006bf000-0x000000769000 /home/gpac/gpac_public-master/destdir/usr/local/bin/MP4Box
0x000000769000-0x00000076c000
0x00007fff7000-0x00008fff7000
0x00008fff7000-0x02008fff7000
0x02008fff7000-0x10007fff8000
0x600000000000-0x602000000000
0x602000000000-0x602000010000
0x602000010000-0x604000000000
0x604000000000-0x604000010000
0x604000010000-0x606000000000
0x606000000000-0x606000010000
0x606000010000-0x607000000000
0x607000000000-0x607000010000
0x607000010000-0x608000000000
0x608000000000-0x608000010000
0x608000010000-0x60b000000000
0x60b000000000-0x60b000010000
0x60b000010000-0x60c000000000
0x60c000000000-0x60c000010000
0x60c000010000-0x60f000000000
0x60f000000000-0x60f000010000
0x60f000010000-0x612000000000
0x612000000000-0x612000010000
0x612000010000-0x616000000000
0x616000000000-0x616000020000
0x616000020000-0x619000000000
0x619000000000-0x619000020000
0x619000020000-0x621000000000
0x621000000000-0x621000020000
0x621000020000-0x624000000000
0x624000000000-0x624000020000
0x624000020000-0x631000000000
0x631000000000-0x631000030000
0x631000030000-0x640000000000
0x640000000000-0x640000003000
0x7f7f6fc87000-0x7f7f723cb000
0x7f7f723cb000-0x7f7f723d0000 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
0x7f7f723d0000-0x7f7f725cf000 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
0x7f7f725cf000-0x7f7f725d0000 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
0x7f7f725d0000-0x7f7f725d1000 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
0x7f7f725d1000-0x7f7f725d3000 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
0x7f7f725d3000-0x7f7f727d3000 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
0x7f7f727d3000-0x7f7f727d4000 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
0x7f7f727d4000-0x7f7f727d5000 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
0x7f7f727d5000-0x7f7f727e5000 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
0x7f7f727e5000-0x7f7f729e5000 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
0x7f7f729e5000-0x7f7f729e6000 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
0x7f7f729e6000-0x7f7f729e7000 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
0x7f7f729e7000-0x7f7f729ec000 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
0x7f7f729ec000-0x7f7f72beb000 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
0x7f7f72beb000-0x7f7f72bec000 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
0x7f7f72bec000-0x7f7f72bed000 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
0x7f7f72bed000-0x7f7f72c0e000 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
0x7f7f72c0e000-0x7f7f72e0d000 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
0x7f7f72e0d000-0x7f7f72e0e000 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
0x7f7f72e0e000-0x7f7f72e0f000 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
0x7f7f72e0f000-0x7f7f72e13000 /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
0x7f7f72e13000-0x7f7f73012000 /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
0x7f7f73012000-0x7f7f73013000 /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
0x7f7f73013000-0x7f7f73014000 /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
0x7f7f73014000-0x7f7f7302b000 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
0x7f7f7302b000-0x7f7f7322a000 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
0x7f7f7322a000-0x7f7f7322c000 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
0x7f7f7322c000-0x7f7f7322d000 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
0x7f7f7322d000-0x7f7f73362000 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
0x7f7f73362000-0x7f7f73562000 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
0x7f7f73562000-0x7f7f73563000 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
0x7f7f73563000-0x7f7f73567000 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
0x7f7f73567000-0x7f7f73568000 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
0x7f7f73568000-0x7f7f73767000 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
0x7f7f73767000-0x7f7f73768000 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
0x7f7f73768000-0x7f7f73769000 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
0x7f7f73769000-0x7f7f7376e000 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
0x7f7f7376e000-0x7f7f7396d000 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
0x7f7f7396d000-0x7f7f7396e000 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
0x7f7f7396e000-0x7f7f7396f000 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
0x7f7f7396f000-0x7f7f73971000 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
0x7f7f73971000-0x7f7f73b70000 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
0x7f7f73b70000-0x7f7f73b71000 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
0x7f7f73b71000-0x7f7f73b72000 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
0x7f7f73b72000-0x7f7f73b83000 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
0x7f7f73b83000-0x7f7f73d82000 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
0x7f7f73d82000-0x7f7f73d83000 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
0x7f7f73d83000-0x7f7f73d84000 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
0x7f7f73d84000-0x7f7f73db0000 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
0x7f7f73db0000-0x7f7f73faf000 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
0x7f7f73faf000-0x7f7f73fb3000 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
0x7f7f73fb3000-0x7f7f73fb4000 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
0x7f7f73fb4000-0x7f7f73fb5000
0x7f7f73fb5000-0x7f7f73fb6000 /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
0x7f7f73fb6000-0x7f7f741b6000 /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
0x7f7f741b6000-0x7f7f741b7000 /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
0x7f7f741b7000-0x7f7f741b8000 /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
0x7f7f741b8000-0x7f7f741bd000 /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
0x7f7f741bd000-0x7f7f743bd000 /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
0x7f7f743bd000-0x7f7f743be000 /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
0x7f7f743be000-0x7f7f743bf000 /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
0x7f7f743bf000-0x7f7f743c1000 /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
0x7f7f743c1000-0x7f7f745c0000 /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
0x7f7f745c0000-0x7f7f745c1000 /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
0x7f7f745c1000-0x7f7f745c2000 /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
0x7f7f745c2000-0x7f7f745c4000 /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
0x7f7f745c4000-0x7f7f747c3000 /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
0x7f7f747c3000-0x7f7f747c4000 /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
0x7f7f747c4000-0x7f7f747c5000 /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
0x7f7f747c5000-0x7f7f747eb000 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
0x7f7f747eb000-0x7f7f749eb000 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
0x7f7f749eb000-0x7f7f749ed000 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
0x7f7f749ed000-0x7f7f749ee000 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
0x7f7f749ee000-0x7f7f74b60000 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
0x7f7f74b60000-0x7f7f74d60000 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
0x7f7f74d60000-0x7f7f74d6a000 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
0x7f7f74d6a000-0x7f7f74d6c000 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
0x7f7f74d6c000-0x7f7f74d70000
0x7f7f74d70000-0x7f7f74d94000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7f7f74d94000-0x7f7f74f93000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7f7f74f93000-0x7f7f74f94000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7f7f74f94000-0x7f7f74f95000 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
0x7f7f74f95000-0x7f7f74fb9000 /usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
0x7f7f74fb9000-0x7f7f751b8000 /usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
0x7f7f751b8000-0x7f7f751b9000 /usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
0x7f7f751b9000-0x7f7f751ba000 /usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
0x7f7f751ba000-0x7f7f753d5000 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
0x7f7f753d5000-0x7f7f755d4000 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
0x7f7f755d4000-0x7f7f755f0000 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
0x7f7f755f0000-0x7f7f755fc000 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
0x7f7f755fc000-0x7f7f755ff000
0x7f7f755ff000-0x7f7f7565d000 /lib/x86_64-linux-gnu/libssl.so.1.0.0
0x7f7f7565d000-0x7f7f7585d000 /lib/x86_64-linux-gnu/libssl.so.1.0.0
0x7f7f7585d000-0x7f7f75861000 /lib/x86_64-linux-gnu/libssl.so.1.0.0
0x7f7f75861000-0x7f7f75868000 /lib/x86_64-linux-gnu/libssl.so.1.0.0
0x7f7f75868000-0x7f7f75881000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7f7f75881000-0x7f7f75a80000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7f7f75a80000-0x7f7f75a81000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7f7f75a81000-0x7f7f75a82000 /lib/x86_64-linux-gnu/libz.so.1.2.8
0x7f7f75a82000-0x7f7f75aef000 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
0x7f7f75aef000-0x7f7f75cef000 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
0x7f7f75cef000-0x7f7f75cf0000 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
0x7f7f75cf0000-0x7f7f75cf1000 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
0x7f7f75cf1000-0x7f7f75d61000 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
0x7f7f75d61000-0x7f7f75f60000 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
0x7f7f75f60000-0x7f7f75f63000 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
0x7f7f75f63000-0x7f7f75f64000 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
0x7f7f75f64000-0x7f7f75f65000
0x7f7f75f65000-0x7f7f75f7b000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f7f75f7b000-0x7f7f7617a000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f7f7617a000-0x7f7f7617b000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f7f7617b000-0x7f7f76283000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f7f76283000-0x7f7f76482000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f7f76482000-0x7f7f76483000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f7f76483000-0x7f7f76484000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f7f76484000-0x7f7f76487000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f7f76487000-0x7f7f76686000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f7f76686000-0x7f7f76687000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f7f76687000-0x7f7f76688000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f7f76688000-0x7f7f766a0000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f7f766a0000-0x7f7f7689f000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f7f7689f000-0x7f7f768a0000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f7f768a0000-0x7f7f768a1000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f7f768a1000-0x7f7f768a5000
0x7f7f768a5000-0x7f7f76a65000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f7f76a65000-0x7f7f76c65000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f7f76c65000-0x7f7f76c69000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f7f76c69000-0x7f7f76c6b000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f7f76c6b000-0x7f7f76c6f000
0x7f7f76c6f000-0x7f7f76ca9000 /usr/lib/x86_64-linux-gnu/libubsan.so.0.0.0
0x7f7f76ca9000-0x7f7f76ea8000 /usr/lib/x86_64-linux-gnu/libubsan.so.0.0.0
0x7f7f76ea8000-0x7f7f76eaa000 /usr/lib/x86_64-linux-gnu/libubsan.so.0.0.0
0x7f7f76eaa000-0x7f7f76eab000 /usr/lib/x86_64-linux-gnu/libubsan.so.0.0.0
0x7f7f76eab000-0x7f7f7797c000
0x7f7f7797c000-0x7f7f7a77c000 /home/gpac/gpac_public-master/destdir/usr/local/lib/libgpac.so.8.0.0
0x7f7f7a77c000-0x7f7f7a97b000 /home/gpac/gpac_public-master/destdir/usr/local/lib/libgpac.so.8.0.0
0x7f7f7a97b000-0x7f7f7a984000 /home/gpac/gpac_public-master/destdir/usr/local/lib/libgpac.so.8.0.0
0x7f7f7a984000-0x7f7f7c872000 /home/gpac/gpac_public-master/destdir/usr/local/lib/libgpac.so.8.0.0
0x7f7f7c872000-0x7f7f7c874000
0x7f7f7c874000-0x7f7f7c968000 /usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
0x7f7f7c968000-0x7f7f7cb68000 /usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
0x7f7f7cb68000-0x7f7f7cb6b000 /usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
0x7f7f7cb6b000-0x7f7f7cb6c000 /usr/lib/x86_64-linux-gnu/libasan.so.2.0.0
0x7f7f7cb6c000-0x7f7f7d7e1000
0x7f7f7d7e1000-0x7f7f7d807000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f7f7d807000-0x7f7f7d9f9000
0x7f7f7d9f9000-0x7f7f7da06000
0x7f7f7da06000-0x7f7f7da07000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f7f7da07000-0x7f7f7da08000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f7f7da08000-0x7f7f7da09000
0x7fffa2741000-0x7fffa2762000 [stack]
0x7fffa27ba000-0x7fffa27bd000 [vvar]
0x7fffa27bd000-0x7fffa27bf000 [vdso]
0xffffffffff600000-0xffffffffff601000 [vsyscall]
==4700==End of process memory map.
==4700==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_posix.cc:121 "(("unable to mmap" && 0)) != (0)" (0x0, 0x0)
#0 0x7f7f7c914631 (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa0631)
#1 0x7f7f7c9195e3 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xa55e3)
#2 0x7f7f7c921611 (/usr/lib/x86_64-linux-gnu/libasan.so.2+0xad611)
#3 0x7f7f7c896c0c (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x22c0c)
#4 0x7f7f7c90c5d2 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x985d2)
#5 0x7f7f7984da77 in metx_Read (destdir/usr/local/lib/libgpac.so.8+0x1ed1a77)
#6 0x7f7f798c4235 in gf_isom_box_parse_ex.constprop.5 (destdir/usr/local/lib/libgpac.so.8+0x1f48235)
#7 0x7f7f79a6e336 in abst_Read (destdir/usr/local/lib/libgpac.so.8+0x20f2336)
#8 0x7f7f798c4235 in gf_isom_box_parse_ex.constprop.5 (destdir/usr/local/lib/libgpac.so.8+0x1f48235)
#9 0x7f7f798c5034 in gf_isom_parse_root_box (destdir/usr/local/lib/libgpac.so.8+0x1f49034)
#10 0x7f7f798efa1f in gf_isom_parse_movie_boxes (destdir/usr/local/lib/libgpac.so.8+0x1f73a1f)
#11 0x7f7f798f52c8 in gf_isom_open_file (destdir/usr/local/lib/libgpac.so.8+0x1f792c8)
#12 0x42f469 in mp4boxMain /home/gpac/gpac_public-master/applications/mp4box/main.c:4818
#13 0x7f7f768c582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#14 0x410558 in _start (/home/gpac/gpac_public-master/destdir/usr/local/bin/MP4Box+0x410558)
``` | metx_Read: AddressSanitizer failed to allocate 0x100002000 (4294975488) bytes of LargeMmapAllocator | https://api.github.com/repos/gpac/gpac/issues/1393/comments | 2 | 2020-01-17T14:17:57Z | 2020-06-12T21:26:01Z | https://github.com/gpac/gpac/issues/1393 | 551,440,777 | 1,393 |
[
"gpac",
"gpac"
] | Dear all,
I found the install and cache paths are hard coded as `com.gpac.Osmo4` for Android. Code as bellow:
- in `DEFAULT_ANDROID_PATH_APP` macro:
https://github.com/gpac/gpac/blob/1d9c6805d930a22f9bb6c8ea44cc8520e8ad2400/src/utils/os_config_init.c#L63
- in `gf_get_default_cache_directory` function:
https://github.com/gpac/gpac/blob/1d9c6805d930a22f9bb6c8ea44cc8520e8ad2400/src/utils/os_divers.c#L1774
How can it be customzed, such as `com.abc.mytest`? Is there any way to set it from config or something else?
Thanks. | The install and cache paths are hard coded for Android, how can it be customzed? | https://api.github.com/repos/gpac/gpac/issues/1391/comments | 1 | 2020-01-17T02:20:21Z | 2020-07-31T11:41:34Z | https://github.com/gpac/gpac/issues/1391 | 551,160,356 | 1,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/
----
Hi. I recently updated to 0.9.0 (latest build), and it seems like character encoding has been broken:
```
E:\Videa>mp4box -info "ZpΔv na benzΓnce.avi"
Cannot create directory "C:\Users\Marek PolΓΕek": last error 5
Cannot create directory "C:\Users\Marek PolΓΕek\AppData": last error 5
Cannot create directory "C:\Users\Marek PolΓΕek\AppData\Roaming": last error 5
Cannot create directory "C:\Users\Marek PolΓΕek\AppData\Roaming\GPAC": last error 5
[Core] system failure for file opening of "C:\Users\Marek PolΓΕek\AppData\Roaming\GPAC\GPAC.cfg" in mode "wt": 0x00000005
[core] Cannot create config file GPAC.cfg in C:\Users\Marek PolΓΕek\AppData\Roaming\GPAC directory
Fatal error: failed to initialize GPAC global configuration
```
I have user name with space and accents, which made it quite problematic for it to work with. It didn't happen in previous version (0.8.0). Correct user folder name should be `Marek PolΓ‘Δek`. What went wrong? | GPAC assumes wrong character encoding | https://api.github.com/repos/gpac/gpac/issues/1390/comments | 6 | 2020-01-16T15:28:20Z | 2020-01-17T12:58:00Z | https://github.com/gpac/gpac/issues/1390 | 550,880,962 | 1,390 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ yes] I looked for a similar issue and couldn't find any.
- [ yes] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ yes] 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/
`MP4Box -bt $PoC`
ASAN output:
[UAF.zip](https://github.com/gpac/gpac/files/4069220/UAF.zip)
```
==63018==ERROR: AddressSanitizer: heap-use-after-free on address 0x603000000970 at pc 0x561b92b84666 bp 0x7ffe45c1e280 sp 0x7ffe45c1e270
READ of size 8 at 0x603000000970 thread T0
#0 0x561b92b84665 in gf_node_get_field_count scenegraph/base_scenegraph.c:1883
#1 0x561b92b87f63 in ReplaceDEFNode scenegraph/base_scenegraph.c:764
#2 0x561b92b87f63 in gf_sg_reset scenegraph/base_scenegraph.c:419
#3 0x561b92b88c97 in gf_sg_del scenegraph/base_scenegraph.c:138
#4 0x561b92acf80b in dump_isom_scene /home/sv/gpac-0.8.0/applications/mp4box/filedump.c:228
#5 0x561b92abf157 in mp4boxMain /home/sv/gpac-0.8.0/applications/mp4box/main.c:4913
#6 0x7f79fa559b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#7 0x561b92aa7db9 in _start (/home/sv/gpac-0.8.0/bin/gcc/MP4Box+0x771db9)
0x603000000970 is located 0 bytes inside of 24-byte region [0x603000000970,0x603000000988)
freed by thread T0 here:
#0 0x7f79fc8807b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
#1 0x561b92b83f4c in gf_node_unregister scenegraph/base_scenegraph.c:721
previously allocated by thread T0 here:
#0 0x7f79fc880b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x561b92c14488 in Shape_Create scenegraph/mpeg4_nodes.c:12961
#2 0x561b92c14488 in gf_sg_mpeg4_node_new scenegraph/mpeg4_nodes.c:36877
SUMMARY: AddressSanitizer: heap-use-after-free scenegraph/base_scenegraph.c:1883 in gf_node_get_field_count
Shadow bytes around the buggy address:
0x0c067fff80d0: fd fa fa fa fd fd fd fd fa fa fd fd fd fd fa fa
0x0c067fff80e0: fd fd fd fa fa fa fd fd fd fd fa fa fd fd fd fd
0x0c067fff80f0: fa fa fd fd fd fa fa fa fd fd fd fd fa fa fd fd
0x0c067fff8100: fd fa fa fa fd fd fd fd fa fa fd fd fd fa fa fa
0x0c067fff8110: fd fd fd fd fa fa fd fd fd fa fa fa fd fd fd fd
=>0x0c067fff8120: fa fa fd fd fd fd fa fa fd fd fd fa fa fa[fd]fd
0x0c067fff8130: fd fa fa fa fd fd fd fd fa fa fa fa fa fa fa fa
0x0c067fff8140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8150: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8170: 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
==63018==ABORTING
``` | heap-use-after-free bug | https://api.github.com/repos/gpac/gpac/issues/1389/comments | 0 | 2020-01-16T03:40:29Z | 2020-07-31T11:13:39Z | https://github.com/gpac/gpac/issues/1389 | 550,554,894 | 1,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/
-------
Hi. Here I am again. I am trying to convert AVI+SRT into MP4 with embedded subtitles, but MP4Box is giving me this error:
```
E:\Videa>mp4box -add "ZpΔv na benzΓnce.avi" "ZpΔv na benzΓnce.mp4"
Unsupported AVI audio format
Error importing ZpΔv na benzΓnce.avi: Feature Not Supported
```
However, according to VLC Media Player, the codec for the video is H.264 and audio is in AAC format, which should be supported:

Could it be that the MP4 file doesn't exist? But it should create the file, shouldn't it?
I'm on Windows 10 64bit | Unsupported AVI audio format | https://api.github.com/repos/gpac/gpac/issues/1387/comments | 6 | 2020-01-10T18:43:14Z | 2020-01-15T13:49:40Z | https://github.com/gpac/gpac/issues/1387 | 548,232,479 | 1,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/
-------------
Hi. I just installed latest version of GPAC and launching it does nothing. Only a console window appears for a glimpse of a second and quickly disappears. Nothing else. I've installed 64bit Windows binaries. I couldn't read what the console window had to say, it was way too fast, but it seems that it was just an empty console window, nothing else. I don't know where shall I look for error log, if any was created. It's like looking for a needle in a hay bale. I can narrow down the locations where could I find the error log, which is usually inside %appdata% or inside the program folder itself. However I do not know if that was how the program was constructed in case of error, it is possible that the error log is elsewhere, or does not exist at all.
Right now it seems like the program does nothing or doesn't work. | Cannot launch the program under Windows 10 64bit | https://api.github.com/repos/gpac/gpac/issues/1386/comments | 3 | 2020-01-10T16:14:31Z | 2020-01-10T16:46:40Z | https://github.com/gpac/gpac/issues/1386 | 548,165,751 | 1,386 |
[
"gpac",
"gpac"
] | Hi,
I am trying to use MP4Box to extract a dolby (ac-3/ec-3) track (from mp4 to mp4). What I have found is that the dac3 box is not copied to the new file.
MP4Box does this correctly when going from mp4->es->mp4, but direct mp4->mp4 is wrong.
The input has the following information:
```
Box Type 'stbl', size 327:
Box Type 'stsd', size 63, version 0, flags 000000
Data size 51
entry_count 1
Box Type 'ac-3', size 47:
reserved 00 00 00 00 00 00
data_reference_index 1
channelcount 2
samplesize 16
samplerate 48000
Box Type 'dac3', size 11:
fscod 0
bsid 6
bsmod 0
acmod 7
lfeon 1
bit_rate_code 15 => 448
reserved 0
```
but after extraction (MP4Box -add CosmosLaundromat_448k_dolby_5.1.m4a#audio -new test.mp4) I get:
```
Box Type 'stsd', size 72, version 0, flags 000000
Data size 60
entry_count 1
Box Type 'ac-3', size 56:
reserved 00 00 00 00 00 00
data_reference_index 1
channelcount 6
samplesize 16
samplerate 48000
Box Type 'btrt', size 20:
bufferSizeDB 1792
maxBitrate 473088
avgBitrate 448000
```
So I have gotten the bitrate information, but lost the codec/channel information.
I have tested this with the latest master from github as well as the latest released version.
Regards,
Geir | Dolby track extraction does not copy dac3 box | https://api.github.com/repos/gpac/gpac/issues/1385/comments | 4 | 2020-01-08T12:09:20Z | 2020-01-08T13:48:16Z | https://github.com/gpac/gpac/issues/1385 | 546,822,104 | 1,385 |
[
"gpac",
"gpac"
] | Hi there, i try get more clear,
This is my command line:
`MP4Box -dash-live 2000 -subdur 4000 -bound -profile dashavc264:live -mpd-refresh 4 -time-shift 16 -min-buffer 2000 -url-template -insert-utc -run-for 86400000 -dash-ctx /var/www/site.com/public/live/log.txt -out /var/www/site.com/public/live/manifest.mpd 1080set.mp4:bandwidth=4800000#video 720set.mp4:bandwidth=2400000#video 360set.mp4:bandwidth=800000#video 180set.mp4:bandwidth=400000#video audio.mp4:bandwidth=384000#audio`
I use it with video.js/dash.js on browsers
I use to concat more videos, to get a big one video with FFMPEG, but i get issues to obtain a video with the duration in seconds without any decimal, i need to stream this video over and over without no pauses, so the users can't understand when the loop start again. (and they don't need to refresh the player page every time the video restarts)
I try to get it more stable i can, so please may i ask you which config i need to choose? i think that -no-loop does not allow me to auto restart, and a little decimal's delta mulitplied over and over as the loop could involve in error.
May i ask which is the better strategy?
Thanks | Pseudo live loop encode settings | https://api.github.com/repos/gpac/gpac/issues/1384/comments | 1 | 2020-01-07T16:22:29Z | 2020-07-31T11:43:16Z | https://github.com/gpac/gpac/issues/1384 | 546,376,862 | 1,384 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ YES] I looked for a similar issue and couldn't find any.
- [ YES] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ YES] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/
Hello. I need to create live DASH stream from single mp4 file, that will be continuously played in a loop. Is it possible with GPAC?
| How to create live DASH stream from single mp4 file? | https://api.github.com/repos/gpac/gpac/issues/1383/comments | 1 | 2020-01-07T13:44:52Z | 2020-07-31T11:13:08Z | https://github.com/gpac/gpac/issues/1383 | 546,291,687 | 1,383 |
[
"gpac",
"gpac"
] | - [ YES ] I looked for a similar issue and couldn't find any.
- [ YES ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ YES ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...).
Hello. Is there a way to generate proper working DASH streams with manifests like that: https://live.unified-streaming.com/scte35/scte35.isml/.mpd?
Key features that I need:
1) availabilityStartTime="1970-01-01T00:00:00Z" (zero unix time)
2) segment template depending on representation id and time (not on index or so): media="scte35-$RepresentationID$-$Time$.dash"
P.S. I tried many ways with different software. The requirement (2) can be fulfilled with ffmpeg + rtmp plugin for nginx, but when I try to "move" all timings in manifest (renaming the files accordingly) - then it works only in VLC, most online players will not play. I suppose that there is some timecode inside the segments, that prevents them from being played if it does not match the actual time. For example, if I have generated stream with availabilityStartTime close to current time, then just setting it to 01.01.1970 and renaming the <SegmentTimeline> elements and files will not work. | How to set availabilityStartTime="1970-01-01T00:00:00Z"? | https://api.github.com/repos/gpac/gpac/issues/1382/comments | 1 | 2020-01-07T11:19:34Z | 2020-07-31T11:13:20Z | https://github.com/gpac/gpac/issues/1382 | 546,228,392 | 1,382 |
[
"gpac",
"gpac"
] | Hi there, i need to stream a loop with mp4box, mpeg dash, 3 adaption sets the higher 1080p and a stereo track too, do i need to get a video with a duration in seconds multiples of the dash segments duration?
To infinite stable loop purpose.
Thanks | Encoding for pseudo live loop | https://api.github.com/repos/gpac/gpac/issues/1381/comments | 2 | 2020-01-06T20:24:59Z | 2020-01-07T12:46:19Z | https://github.com/gpac/gpac/issues/1381 | 545,922,580 | 1,381 |
[
"gpac",
"gpac"
] |
Howdy,
In an attempt to fix an "unfinished" clip that no editing program or player was reading, I downloaded GPAC-Master.
I tried according to some instructions how to do it, but they didn't work. I do not know what was in my head, but I gave him "Clean" with "Run as administrator" and I let him clean, hoping that it will only touch on the temporary files resulting from numerous video edits.
Now I notice that I no longer have a functional program, I tried to recover the windows, and the restore points deleted them, everything .. Windows works, but I am afraid to restart that it will no longer work. and he.
What else could I do in this case?
Thanks in advance for the help! | GPAC-Master, recovering programs and windows? | https://api.github.com/repos/gpac/gpac/issues/1380/comments | 1 | 2020-01-06T17:44:31Z | 2020-06-11T12:07:48Z | https://github.com/gpac/gpac/issues/1380 | 545,851,949 | 1,380 |
[
"gpac",
"gpac"
] | Hello.
What I did:
wget https://download.tsi.telecom-paristech.fr/gpac/new_builds/linux64/gpac/gpac_0.8.0-rev95-g00dfc933-master_amd64.deb
apt install ./gpac_0.8.0-rev95-g00dfc933-master_amd64.deb
The result is:
The following packages have unmet dependencies:
--
gpac : Depends: libavcodec-ffmpeg56 (>= 7:2.4) but it is not installable or
libavcodec-ffmpeg-extra56 (>= 7:2.4) but it is not installable
Depends: libavdevice-ffmpeg56 (>= 7:2.4) but it is not installable
Depends: libavformat-ffmpeg56 (>= 7:2.4) but it is not installable
Depends: libavutil-ffmpeg54 (>= 7:2.4) but it is not installable
Depends: libmozjs185-1.0 (>= 1.8.5-1.0.0+dfsg) but it is not installable
Depends: libopenjpeg5 (>= 1.3+dfsg) but it is not installable
Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
Depends: libswresample-ffmpeg1 (>= 7:2.4) but it is not installable
Depends: libswscale-ffmpeg3 (>= 7:2.4) but it is not installable
Where to find the links for these packages? "apt install" does not work. Google does not help, it says only that in Ubuntu 18.04 "..56" was replaced with "..57" and they are completely different or so..
https://askubuntu.com/questions/852605/are-ffmpeg56-and-ffmpeg54-packages-discontinued/852608#852608 | How to install on Ubuntu 18.04? | https://api.github.com/repos/gpac/gpac/issues/1379/comments | 2 | 2020-01-03T16:27:44Z | 2020-03-05T14:17:51Z | https://github.com/gpac/gpac/issues/1379 | 545,062,669 | 1,379 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ yes] I looked for a similar issue and couldn't find any.
- [ yes] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ yes] 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/
MP42TS -src $POC -dst-file /dev/null
[count_video1.zip](https://github.com/gpac/gpac/files/4014702/count_video1.zip)
asan output
```
root@ubuntu:/home/tim/gpac# ../gpac-asan/MP42TS -src crashes/count_video.mp4-signalb-0x198 -dst-file /dev/null
Setting up program ID 1 - send rates: PSI 200 ms PCR 100 ms - PCR offset 0
AddressSanitizer:DEADLYSIGNAL
=================================================================
==115151==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x558236d3d311 bp 0x6080000008a0 sp 0x7ffd7d124a70 T0)
==115151==The signal is caused by a READ memory access.
==115151==Hint: address points to the zero page.
#0 0x558236d3d310 in gf_m2ts_stream_process_pmt media_tools/m2ts_mux.c:718
#1 0x558236d4dfd1 in gf_m2ts_mux_table_update_bitrate media_tools/m2ts_mux.c:256
#2 0x558236d4dfd1 in gf_m2ts_mux_update_config media_tools/m2ts_mux.c:2543
#3 0x558236bcfffd in main /home/tim/gpac-asan/applications/mp42ts/main.c:2684
#4 0x7ff116424b6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
#5 0x558236bd59c9 in _start (/home/tim/gpac-asan/MP42TS+0x1249c9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/m2ts_mux.c:718 in gf_m2ts_stream_process_pmt
==115151==ABORTING
```
| null pointer reference in gf_m2ts_stream_process_pmt | https://api.github.com/repos/gpac/gpac/issues/1378/comments | 2 | 2020-01-02T00:49:55Z | 2020-01-17T15:09:51Z | https://github.com/gpac/gpac/issues/1378 | 544,417,280 | 1,378 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ yes] I looked for a similar issue and couldn't find any.
- [ yes] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ yes] 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/
MP42TS -src $POC -dst-file /dev/null
[count_video.zip](https://github.com/gpac/gpac/files/4014701/count_video.zip)
asan output
```
root@ubuntu:/home/tim/gpac# ../gpac-asan/MP42TS -src crashes/count_video.mp4-signalb-0x0 -dst-file /dev/null
AddressSanitizer:DEADLYSIGNAL
=================================================================
==112791==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x55e4a53e12e4 bp 0x602000000370 sp 0x7fffdb37dbe0 T0)
==112791==The signal is caused by a READ memory access.
==112791==Hint: address points to the zero page.
#0 0x55e4a53e12e3 in gf_isom_get_media_data_size isomedia/isom_read.c:3312
#1 0x55e4a5391fdd in fill_isom_es_ifce /home/tim/gpac-asan/applications/mp42ts/main.c:620
#2 0x55e4a5391fdd in open_source /home/tim/gpac-asan/applications/mp42ts/main.c:1518
#3 0x55e4a53836c0 in parse_args /home/tim/gpac-asan/applications/mp42ts/main.c:2260
#4 0x55e4a53836c0 in main /home/tim/gpac-asan/applications/mp42ts/main.c:2465
#5 0x7f9a8b98ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
#6 0x55e4a53899c9 in _start (/home/tim/gpac-asan/MP42TS+0x1249c9)
```
| null pointer reference in gf_isom_get_media_data_size | https://api.github.com/repos/gpac/gpac/issues/1377/comments | 1 | 2020-01-02T00:45:04Z | 2020-01-08T15:42:17Z | https://github.com/gpac/gpac/issues/1377 | 544,416,874 | 1,377 |
[
"gpac",
"gpac"
] | Hello,
When using the **gpac_mp4box_mini.sln** (upgraded to last tools in VS2019) to build Mp4box.exe and then launching the .exe to check build number we see this :
`MP4Box - GPAC version 0.9.0-DEV-revUNKNOWN_REV
(c) 2000-2019 Telecom ParisTech distributed under LGPL v2.1+ - http://gpac.io`
The **revUNKNOWN_REV** seems to link to **"gf_gpac_version()"** that seems to links to the file :
`#include <gpac/revision.h>` called from \src\utils\os_divers.c and not finding the "GPAC_GIT_REVISION" stored in **revision.h**
Problem this file revision.h is not present in the include/gpac folder, used to there at least up to version 0.7.2 where i had a custom solution with additional .rc resources files so i could right click on the exe and have versions infos in the propriety > details window, just for this i mean :

Content of the **revision.h** file i still have stored on pc is only this :
`#define GPAC_GIT_REVISION "989-g637a1d0b3-master" `
Since it will be soon time to upgrade the "GPAC_COPYRIGHT" to year 2020 it might be possible to check on this too ;)
PS: problem seems to be the same in Master (0.8) and Filters (0.9) branches, master displays this :
`MP4Box - GPAC version 0.8.0-revrelease
(c) Telecom ParisTech 2000-2018 - Licence LGPL v2`
Thanks a lot. | gpac_mp4box_mini.sln : no GPAC_GIT_REVISION version on built MP4box , revision.h is missing | https://api.github.com/repos/gpac/gpac/issues/1376/comments | 1 | 2019-12-31T17:05:17Z | 2020-01-01T06:33:20Z | https://github.com/gpac/gpac/issues/1376 | 544,231,757 | 1,376 |
[
"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/
--
`MP4Box - GPAC version 0.8.0-rev95-g00dfc933-master`
`Windows 10 18363.535 x64`
Trying to use mp4box to extract chapter information from HandBrake encoded mp4 files.
If I use` -dump-chap` or `-dump-chap-ogg` I get an empty file.
If I try `-raw 5` I get errors and an unusable binary file.
I'm pretty sure HandBrake doesn't quite create chapters the way mp4box (and perhaps other software) like. That's actually why I'm trying to extract them so I can use mp4box -chap and have them added properly.
Currently I'm using GUI tools to do this but I'd rather this be more automated.
```
mp4box "Filename.mp4" -dump-chap
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
```
mp4box "Filename.mp4" -raw 5
```
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
[iso file] Found stts entry with sample_delta=0 - forbidden ! Fixing to 1
Extracting Track (type 'text') - Compressor Unknown
```
[Filename_track5.zip](https://github.com/gpac/gpac/files/4007614/Filename_track5.zip)
mp4box -info (Chapter Data in Track 5):
```
* Movie Info *
Timescale 1000 - 5 tracks
Computed Duration 00:25:35.424 - Indicated Duration 00:25:35.467
Fragmented File: no
File suitable for progressive download (moov before mdat)
File Brand mp42 - version 512
Compatible brands: isom iso2 mp41
Created: GMT Sat Dec 28 21:15:25 2019
Modified: GMT Sat Dec 28 21:15:25 2019
File has no MPEG4 IOD/OD
iTunes Info:
Encoder Software: HandBrake 1.3.0 2019112400
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 90000
Media Duration 00:25:35.367 - Indicated Duration 00:25:35.367
Track has 1 edit lists: track duration is 00:25:35.368
Media Info: Language "Undetermined (und)" - Type "vide:hvc1" - 36812 samples
Visual Info: width=720 height=480 (depth=24 bits)
Visual Track layout: x=0 y=0 width=640 height=480
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x23
HEVC Video - Visual Size 720 x 480
HEVC Info: Profile Main @ Level 3 - Chroma Format YUV 4:2:0
NAL Unit length bits: 32 - general profile compatibility 0x60000000
Parameter Sets: 1 VPS 1 SPS 1 PPS
SPS resolution 720x480 - Pixel Aspect Ratio 8:9 - Indicated track size 640 x 480
Bit Depth luma 8 - Chroma 8 - 1 temporal layers
VPS#1 hash: AC7A95FE5464AE184BC682C3E3E49B7F25A5C2D8
SPS#1 hash: C9C7EC6DC5B3AF54082C8D580C5D3A96B456F8A2
PPS#1 hash: A9C81C9127C8A170BF3C2F715BB374C875DF59DC
Self-synchronized
RFC6381 Codec Parameters: hvc1.1.6.L90.90
Average GOP length: 117 samples
Track # 2 Info - TrackID 2 - TimeScale 48000
Media Duration 00:25:35.466 - Indicated Duration 00:25:35.466
Track has 1 edit lists: track duration is 00:25:35.424
Media Info: Language "English (eng)" - Type "soun:mp4a" - 71975 samples
2 UDTA types: name (1) titl (1)
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
All samples are sync
Track # 3 Info - TrackID 3 - TimeScale 90000
Media Duration 00:25:33.289 - Indicated Duration 00:25:33.289
Track has 1 edit lists: track duration is 00:25:33.290
Media Info: Language "English (eng)" - Type "subp:mp4s" - 819 samples
MPEG-4 Config: NeroDigital Subpicture Stream - ObjectTypeIndication 0xe0
Synchronized on stream 1
RFC6381 Codec Parameters: mp4s.E0
Alternate Group ID 3
All samples are sync
Track # 4 Info - TrackID 4 - TimeScale 90000
Media Duration 00:25:33.097 - Indicated Duration 00:25:33.097
Track has 1 edit lists: track duration is 00:25:33.097
Track is disabled
Media Info: Language "English (eng)" - Type "sbtl:tx3g" - 821 samples
Unknown Text Stream
Size 640 x 72 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: tx3g
Alternate Group ID 3
All samples are sync
Track # 5 Info - TrackID 5 - TimeScale 1000
Media Duration 00:25:35.325 - Indicated Duration 00:25:35.325
Track has 1 edit lists: track duration is 00:25:35.325
Track is disabled
Media Info: Language "Undetermined (und)" - Type "text:text" - 10 samples
Unknown Text Stream
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
RFC6381 Codec Parameters: text
All samples are sync
``` | Dump Chapter Commands Not Working (Windows) | https://api.github.com/repos/gpac/gpac/issues/1374/comments | 9 | 2019-12-29T00:29:29Z | 2020-07-31T11:20:22Z | https://github.com/gpac/gpac/issues/1374 | 543,297,895 | 1,374 |
[
"gpac",
"gpac"
] | Hello,
With last version of MP4Box from the Filters Branch trying the following under windows console command leaves MP4Box in a sort of endless loop, stuck somehow :
```
MP4Box.exe -add video.mp4#video -add video.mp4#audio -itags cover="H:\cover.jpg" -new output.mp4
β[32mIsoMedia import video.mp4 - track ID 1 - Video (size 1280 x 720)
β[32mIsoMedia import video.mp4 - track ID 2 - Audio (SR 48000 - 2 channels)
-
```
The console stays with this displayed and stuck at this point, i have to close the command console to exit.
However this command with no path for the cover pic works :
`MP4Box.exe -add video.mp4#video -add video.mp4#audio -itags cover=cover.jpg -new output.mp4`
This works too with cover.jpeg encapsulated in " " symbols :
`MP4Box.exe -add video.mp4#video -add video.mp4#audio -itags cover="cover.jpg" -new output.mp4`
Not sure what is wrong with the full path for the cover but something seems to happen when using it.
Thanks a lot. | MP4Box Filters Problem when inserting cover using -itags cover="path" | https://api.github.com/repos/gpac/gpac/issues/1373/comments | 1 | 2019-12-26T19:12:08Z | 2020-01-06T15:54:02Z | https://github.com/gpac/gpac/issues/1373 | 542,647,788 | 1,373 |
[
"gpac",
"gpac"
] | In gpac-filter branchοΌif I put 10 AdaptationSets in one mpd file , Is there a way to download only the AdaptationSets in the field of view while playing?
For exampleοΌAdaptationSets 1 2 3 4 5 is in the field of view , so only 1 2 3 4 5 AdaptationSets will be downloaded, is it possible for this branchοΌ
Thanks. | Is there a way to download only the AdaptationSets in the field of view while playing? | https://api.github.com/repos/gpac/gpac/issues/1372/comments | 1 | 2019-12-24T08:41:46Z | 2020-01-06T15:16:55Z | https://github.com/gpac/gpac/issues/1372 | 542,047,042 | 1,372 |
[
"gpac",
"gpac"
] | Hi all,
In dashin filter `dashdmx_configure_pid` function, when figure out group for input pid, it always set group 0 (adaptation set 0) as the udata of opid. It call `dashdmx_group_idx_from_pid` function which only return its the parent's index.
https://github.com/gpac/gpac/blob/1de1f8d3b53f88bf0228f53f74cad6221701f1bd/src/filters/dmx_dash.c#L981
https://github.com/gpac/gpac/blob/1de1f8d3b53f88bf0228f53f74cad6221701f1bd/src/filters/dmx_dash.c#L693
I think it is a bug. `dashdmx_configure_pid` should set corresponding group index of each input pid. `dashdmx_group_idx_from_pid` function should return group index for the pid not its parent.
Whether my understand is correct or not?
Thanks. | one bug: dashin filter always set group 0 (adaptation set 0) as the udata of opid | https://api.github.com/repos/gpac/gpac/issues/1371/comments | 1 | 2019-12-23T11:27:09Z | 2020-01-06T15:32:28Z | https://github.com/gpac/gpac/issues/1371 | 541,713,246 | 1,371 |
[
"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 file which can reproduce the error has been uploaded to [here](https://www.mediafire.com/file/grn4dfzuca1zraa/id%3D000054%2Csig%3D11%2Csrc%3D000000%2Cop%3Dint32%2Cpos%3D13567%2Cval%3D-1/file).
ASAN outputs:
```
[iso file] Media header timescale is 0 - defaulting to 90000
[iso file] Media header timescale is 0 - defaulting to 90000
AddressSanitizer:DEADLYSIGNAL=========== | (83/100)
=================================================================
==231927==ERROR: AddressSanitizer: SEGV on unknown address 0x611100000403 (pc 0x55946a08d0cb bp 0x000000000003 sp 0x7ffce3537750 T0)
==231927==The signal is caused by a READ memory access.
#0 0x55946a08d0ca in read_nal_size_hdr /home/gpac_test/applications/mp4box/filedump.c:925
#1 0x55946a08d0ca in dump_isom_nal_ex /home/gpac_test/applications/mp4box/filedump.c:1459
#2 0x55946a0920df in dump_isom_xml /home/gpac_test/applications/mp4box/filedump.c:2131
#3 0x55946a074965 in mp4boxMain /home/gpac_test/applications/mp4box/main.c:5007
#4 0x55946a058c10 in main /home/gpac_test/applications/mp4box/main.c:5956
#5 0x7f47d7adbbba in __libc_start_main ../csu/libc-start.c:308
#6 0x55946a05af89 in _start (/home/gpac_test/bin/gcc/MP4Box+0x38af89)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/gpac_test/applications/mp4box/filedump.c:925 in read_nal_size_hdr
==231927==ABORTING
```
gdb info (may help):
```
pwndbg> r
Starting program: /home/gpac_fuzz/MP4Box_test interesting/output2/id\:000054\,sig\:11\,src\:000000\,op\:int32\,pos\:13567\,val\:-1 -dxml -out /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] Media header timescale is 0 - defaulting to 90000
[iso file] Media header timescale is 0 - defaulting to 90000
Breakpoint 1, read_nal_size_hdr (nalh_size=<optimized out>, ptr=0x627000000101 "") at filedump.c:925
925 if (v) nal_size <<= 8;
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ REGISTERS ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RAX 0x0
RBX 0x3178
RCX 0x0
RDX 0x0
RDI 0x3
RSI 0x0
R8 0x0
R9 0x1
R10 0x627000000100 ββ 0xffff0506af020000
R11 0x0
R12 0x0
R13 0x1
R14 0x1
R15 0x616000001280 ββ 0xbebebebefbad2c84
RBP 0x4
RSP 0x7ffffffc32a0 ββΈ 0x400000000 ββ 0x0
RIP 0x5555559110cf (dump_isom_nal_ex+6895) ββ test edi, edi
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ DISASM ]ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΊ 0x5555559110cf <dump_isom_nal_ex+6895> test edi, edi
0x5555559110d1 <dump_isom_nal_ex+6897> je dump_isom_nal_ex+6978 <0x555555911122>
0x5555559110d3 <dump_isom_nal_ex+6899> mov eax, dword ptr [rsp + 0x40]
0x5555559110d7 <dump_isom_nal_ex+6903> mov r8, r10
0x5555559110da <dump_isom_nal_ex+6906> lea rcx, [r10 + rax + 1]
0x5555559110df <dump_isom_nal_ex+6911> nop
0x5555559110e0 <dump_isom_nal_ex+6912> add r8, 1
0x5555559110e4 <dump_isom_nal_ex+6916> shl r12d, 8
0x5555559110e8 <dump_isom_nal_ex+6920> mov rax, r8
0x5555559110eb <dump_isom_nal_ex+6923> mov rdx, r8
0x5555559110ee <dump_isom_nal_ex+6926> shr rax, 3
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ SOURCE (CODE) ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
In file: /home/gpac_test/applications/mp4box/filedump.c
920 u32 v = nalh_size;
921 while (v) {
922 nal_size |= (u8) *ptr;
923 ptr++;
924 v-=1;
βΊ 925 if (v) nal_size <<= 8;
926 }
927 return nal_size;
928 }
929
930 #ifndef GPAC_DISABLE_AV_PARSERS
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ STACK ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
00:0000β rsp 0x7ffffffc32a0 ββΈ 0x400000000 ββ 0x0
01:0008β 0x7ffffffc32a8 ββΈ 0x604000000003 ββ 0x3002ffffff00
02:0010β 0x7ffffffc32b0 ββ 0x0
03:0018β 0x7ffffffc32b8 ββ 0x4
04:0020β 0x7ffffffc32c0 ββ 0x1
05:0028β 0x7ffffffc32c8 ββΈ 0x7fffffff1ae0 ββ 0x1
06:0030β 0x7ffffffc32d0 ββ 0x0
07:0038β 0x7ffffffc32d8 ββΈ 0xfffffff8672 ββ 0x0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ BACKTRACE ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΊ f 0 5555559110cf dump_isom_nal_ex+6895
f 1 5555559110cf dump_isom_nal_ex+6895
f 2 5555559160e0 dump_isom_xml+1520
f 3 5555558f8966 mp4boxMain+15990
f 4 5555558dcc11 main+17
f 5 7ffff7243bbb __libc_start_main+235
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Breakpoint filedump.c:924
pwndbg> p v
$1 = 3
pwndbg> p ptr
$2 = 0x627000000101 ""
pwndbg> p *ptr
$3 = 0 '\000'
pwndbg> n 2000
Breakpoint 1, read_nal_size_hdr (nalh_size=<optimized out>, ptr=0x6270000003b4 "") at filedump.c:925
925 if (v) nal_size <<= 8;
LEGEND: STACK | HEAP | CODE | DATA | RWX | RODATA
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ REGISTERS ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RAX 0x0
RBX 0x2ec5
RCX 0xa3e
RDX 0x3
RDI 0x3
RSI 0x3
R8 0x7ffff71eff00 ββ 0x0
R9 0x0
R10 0x6270000003b3 ββ 0x848865c12e0000
R11 0x7ffff467f470 ββ 0x0
R12 0x0
R13 0x2
R14 0x627000000104 ββ 0xe945dcabffff0506
R15 0x616000001280 ββ 0xbebebebefbad2c84
RBP 0x2b3
RSP 0x7ffffffc32a0 ββΈ 0x400000000 ββ 0x0
RIP 0x5555559110cf (dump_isom_nal_ex+6895) ββ test edi, edi
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ DISASM ]ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΊ 0x5555559110cf <dump_isom_nal_ex+6895> test edi, edi
0x5555559110d1 <dump_isom_nal_ex+6897> je dump_isom_nal_ex+6978 <0x555555911122>
0x5555559110d3 <dump_isom_nal_ex+6899> mov eax, dword ptr [rsp + 0x40]
0x5555559110d7 <dump_isom_nal_ex+6903> mov r8, r10
0x5555559110da <dump_isom_nal_ex+6906> lea rcx, [r10 + rax + 1]
0x5555559110df <dump_isom_nal_ex+6911> nop
0x5555559110e0 <dump_isom_nal_ex+6912> add r8, 1
0x5555559110e4 <dump_isom_nal_ex+6916> shl r12d, 8
0x5555559110e8 <dump_isom_nal_ex+6920> mov rax, r8
0x5555559110eb <dump_isom_nal_ex+6923> mov rdx, r8
0x5555559110ee <dump_isom_nal_ex+6926> shr rax, 3
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ SOURCE (CODE) ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
In file: /home/gpac_test/applications/mp4box/filedump.c
920 u32 v = nalh_size;
921 while (v) {
922 nal_size |= (u8) *ptr;
923 ptr++;
924 v-=1;
βΊ 925 if (v) nal_size <<= 8;
926 }
927 return nal_size;
928 }
929
930 #ifndef GPAC_DISABLE_AV_PARSERS
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ STACK ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
00:0000β rsp 0x7ffffffc32a0 ββΈ 0x400000000 ββ 0x0
01:0008β 0x7ffffffc32a8 ββΈ 0x604000000003 ββ 0x3002ffffff00
02:0010β 0x7ffffffc32b0 ββ 0x0
03:0018β 0x7ffffffc32b8 ββ 0x4
04:0020β 0x7ffffffc32c0 ββ 0x1
05:0028β 0x7ffffffc32c8 ββΈ 0x7fffffff1ae0 ββ 0x1
06:0030β 0x7ffffffc32d0 ββ 0x0
07:0038β 0x7ffffffc32d8 ββΈ 0xfffffff8672 ββ 0x0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ BACKTRACE ]βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΊ f 0 5555559110cf dump_isom_nal_ex+6895
f 1 5555559110cf dump_isom_nal_ex+6895
f 2 5555559160e0 dump_isom_xml+1520
f 3 5555558f8966 mp4boxMain+15990
f 4 5555558dcc11 main+17
f 5 7ffff7243bbb __libc_start_main+235
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Breakpoint filedump.c:924
pwndbg> p v
$4 = 3
pwndbg> p ptr
$5 = 0x6270000003b4 ""
pwndbg> p *ptr
$6 = 0 '\000'
``` | SEGV on read_nal_size_hdr in filedump.c | https://api.github.com/repos/gpac/gpac/issues/1370/comments | 2 | 2019-12-20T16:46:30Z | 2020-01-08T15:41:52Z | https://github.com/gpac/gpac/issues/1370 | 541,090,703 | 1,370 |
[
"gpac",
"gpac"
] | I found a stray broken MPD... because the path to it has an ampersand and the program info element inserts the path unfiltered.
```
<ProgramInformation moreInformationURL="http://gpac.io">
<Title>dash/1 T&D Systems Overview/video.mpd generated by GPAC</Title>
</ProgramInformation>
```
Workaround: `-mpd-title "TD PowerSkills Training Video"`
https://github.com/gpac/gpac/blob/451c1a87af5c99b98bb7d1b30812517d4c99e9f9/src/media_tools/dash_segmenter.c#L5639 | DASH MPD: characters are never escaped which leads to non-compliant XMLs | https://api.github.com/repos/gpac/gpac/issues/1368/comments | 3 | 2019-12-19T05:49:55Z | 2020-01-08T12:48:49Z | https://github.com/gpac/gpac/issues/1368 | 540,093,869 | 1,368 |
[
"gpac",
"gpac"
] | I use MP4client to play the mpd file and want to change the position of the tile, but modify the EssentialProperty and value of the mpd file does not work. What should I do? Thank you

| change the position of the tile | https://api.github.com/repos/gpac/gpac/issues/1367/comments | 1 | 2019-12-17T10:06:42Z | 2020-01-06T15:36:00Z | https://github.com/gpac/gpac/issues/1367 | 538,963,301 | 1,367 |
[
"gpac",
"gpac"
] | Hi,
I was trying to use mp4box to generate a dash descriptor with multiple hevc-tiles representations.
The command line I used was:
`mp4box.exe -dash 1000 -rap -frag-rap -profile live -out test/test.mpd high_quality.mp4 low_quality.mp4`
There is no initialization information in each hvt1 representation.
| No initialization specified in mpd when multiple hevc-tiles representation | https://api.github.com/repos/gpac/gpac/issues/1365/comments | 1 | 2019-12-13T21:05:40Z | 2020-09-02T16:09:16Z | https://github.com/gpac/gpac/issues/1365 | 537,777,413 | 1,365 |
[
"gpac",
"gpac"
] | Hello,
trying to build the gpac_mp4box_mini.sln (release> x64) from the filters branch using Visual Studio 2017 and having this error at the end :
> 1>libgpac.vcxproj -> H:\gpac\build\msvc14\../../bin/x64\Release - MP4Box_only/libgpac_static.lib
> 1>GΓ©nΓ©ration du projet "libgpac.vcxproj" terminΓ©e.
> 2>------ DΓ©but de la gΓ©nΓ©ration : Projet : mp4box, Configuration : Release - MP4Box_only x64 ------
> 2>filedump.c
> 2>fileimport.c
> 2>live.c
> 2>GΓ©nΓ©ration de code en cours...
> 2>main.c
> 2>libgpac_static.lib(isom_store.obj) : error LNK2019: symbole externe non rΓ©solu gf_gz_compress_payload_ex rΓ©fΓ©rencΓ© dans la fonction gf_isom_write_compressed_box
> 2>../../bin/x64\Release - MP4Box_only/mp4box.exe : fatal error LNK1120: 1 externes non rΓ©solus
> 2>GΓ©nΓ©ration du projet "mp4box.vcxproj" terminΓ©e -- ΓCHEC.
> ========== GΓ©nΓ©ration : 1 a rΓ©ussi, 1 a Γ©chouΓ©, 0 mis Γ jour, 0 a Γ©tΓ© ignorΓ© ==========
the .lib file seems to be created but the .exe fails, note sure if it's on my end or something incorrect in the code files and as there is no binaires to download from the site for now...
Also note that doing the following :
\>git clone -b filters https://github.com/gpac/gpac.git
Or downloading the zip file from the filter branch,
leaves the "testsuite @ 3e45092" folder empty, the local folder created from git command or the folder inside the downloaded zip is named only "testsuite" and empty, no files and no folders inside, not sure if the @ symbol breaks something here or if it's something else.
Probably not related to the build problem but better report it.
Wanted to play a bit with heic and see if the reframer for heic had been modified since this discussion among other things.
https://github.com/gpac/gpac/issues/1021#issuecomment-510362157
Thanks a lot | Impossible to build MP4Box.exe from the "Filters" branch | https://api.github.com/repos/gpac/gpac/issues/1363/comments | 7 | 2019-11-30T11:55:44Z | 2019-12-05T16:15:25Z | https://github.com/gpac/gpac/issues/1363 | 530,569,933 | 1,363 |
[
"gpac",
"gpac"
] | I am using MP4Box and FFMPEG to encode and generate DASH compatible video to be played on a commercial website.It uses S3(where all my files including init.mp4 and vv_1.mp4, vv_2.mp4 are stored) and CloudFront for asset hosting of videos. For videos encoded using FFMPEG(mp4/webm), the video player is able to play seamlessly using bitmovin player/dashjs.But when i try to dashify the files using MP4Box, it never works and giving the error shown below using dashjs, same error is being given by bitmovin for my mpd file here - https://d3mjcniiaj83ix.cloudfront.net/video/checking-and-go/video.mpd
**MY MPD FILE -**
```
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 0.8.0-revUNKNOWN_REV at 2019-11-28T00:49:13.069Z-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H0M37.542S" maxSegmentDuration="PT0H0M5.542S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
<ProgramInformation moreInformationURL="http://gpac.io">
<Title>1175</Title>
</ProgramInformation>
<Period duration="PT0H0M37.542S">
<AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="24" par="16:9" lang="und" startWithSAP="1">
<SegmentTemplate media="vv_$Number$.mp4" initialization="vv_init.mp4" timescale="24000" startNumber="1" duration="96000"/>
<Representation id="1" mimeType="video/mp4" codecs="avc1.4D401F" width="1280" height="720" frameRate="24" sar="1:1" bandwidth="2400176">
</Representation>
</AdaptationSet>
<AdaptationSet segmentAlignment="true" lang="und" startWithSAP="1">
<SegmentTemplate media="vv_$Number$.mp4" initialization="vv_init.mp4" timescale="48000" startNumber="1" duration="192000"/>
<Representation id="2" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="48000" bandwidth="2278">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
</MPD>
```
**ERROR GIVEN BY BITMOVIN PLAYER -**
`"CHUNK_DEMUXER_ERROR_APPEND_FAILED: Failure parsing MP4: Detected unfragmented MP4. Media Source Extensions require ISO BMFF moov to contain mvex to indicate that Movie Fragments are to be expected."`
**ERRORS GIVEN BY DASH.JS-**
```
////copying errors from console(f12)
SourceBufferSink error video
getAllBufferRanges exception: Failed to read the 'buffered' property from 'SourceBuffer': This SourceBuffer has been removed from the parent media source.
Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTED (CHUNK_DEMUXER_ERROR_APPEND_FAILED: Failure parsing MP4: Detected unfragmented MP4. Media Source Extensions require ISO BMFF moov to contain mvex to indicate that Movie Fragments are to be expected.)
```
**FFMPEG AND MP4Box versions**
```
ubuntu:~/environment/test (new_layout) $ MP4Box -version
MP4Box - GPAC version 0.8.0-revUNKNOWN_REV
(c) Telecom ParisTech 2000-2018 - Licence LGPL v2
GPAC Configuration:
Features: GPAC_64_BITS GPAC_HAS_SSL GPAC_DISABLE_3D
ubuntu:~/environment/test (new_layout) $ ffmpeg -version
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
```
To Encode -
I have referred the [bitmovin page to dashify using MP4Box ](https://bitmovin.com/mp4box-dash-content-generation-x264/)to get some help -
**My Commands**
```
###removed dynamic parameters to simplify
`MP4Box -dash 4000 -frag 4000 -profile dashavc264:live -subsegs-per-sidx 4 -mpd-title #{model.id} -segment-ext mp4 -segment-name vv_ -rap /tmp/dashing/test/output_2400k.mp4 /tmp/dashing/test/video_audio.mp4#audio -out /tmp/dashing/test/video.mpd`
```
The above command generates all files mpd, all segments like vv_1.mp4...vv_4.mp4, vv_init.mp4, video_audio.mp4.
I also get the audio file before dashifying using MP4Box -
``ffmpeg -y -i input_file_path -c:a aac -b:a 128k -vn /some/path `
What is that my mpd file is missing OR Am i using some wrong commands or missing some parameters to use during dashifying?
Kindly help me or let me know any suggestions. | MP4Box generates all segments but unable to play on dash.js | https://api.github.com/repos/gpac/gpac/issues/1362/comments | 7 | 2019-11-28T01:07:42Z | 2020-09-03T15:09:04Z | https://github.com/gpac/gpac/issues/1362 | 529,640,097 | 1,362 |
[
"gpac",
"gpac"
] | I use the following command to make a video with the same resolution and different bitrate as mpd, but I can't play it with MP4client, black screenοΌWhere am I doing it incorrectly?
Gpac0.8.0 can work, but 0.9.0 does not work.
1. MP4Box -add 2.hevc:split_tiles -new 2.mp4
2. MP4Box -add 8.hevc:split_tiles -new 8.mp4
3. MP4Box -dash 5000 -profile live 2.mp4 8.mp4 -out 2_8.mpd | gpac-0.9.0 Unable to play mpd | https://api.github.com/repos/gpac/gpac/issues/1361/comments | 2 | 2019-11-25T12:04:07Z | 2020-07-31T11:16:53Z | https://github.com/gpac/gpac/issues/1361 | 528,042,338 | 1,361 |
[
"gpac",
"gpac"
] | MP4client uses tileagg by default, can I replace it with hevcmerge, how to configure it, thank you | How to replace tileagg with hevcmerge | https://api.github.com/repos/gpac/gpac/issues/1360/comments | 3 | 2019-11-25T07:52:02Z | 2019-11-25T11:49:09Z | https://github.com/gpac/gpac/issues/1360 | 527,911,742 | 1,360 |
[
"gpac",
"gpac"
] |
When I play the testcase 'hevcsplit.sh' 's result file merge3.hvc,I get the screen as the below image:

The merged high resolution tile(448*208) and low resolution tile(192*128) were showed in different size.Is there someways to show merged different resolution hevc tiles in same size?
my gpac version is :**version 0.9.0-DEV-rev2882-g045c7de16-filters** | Is there someways to show merged different resolution hevc tiles in same size? | https://api.github.com/repos/gpac/gpac/issues/1358/comments | 1 | 2019-11-21T08:25:09Z | 2019-11-21T09:01:11Z | https://github.com/gpac/gpac/issues/1358 | 526,436,770 | 1,358 |
[
"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/
| tileagg | https://api.github.com/repos/gpac/gpac/issues/1357/comments | 1 | 2019-11-21T05:19:56Z | 2019-11-21T05:22:23Z | https://github.com/gpac/gpac/issues/1357 | 526,370,998 | 1,357 |
[
"gpac",
"gpac"
] | Hi experts, I newly read the code in gpac 0.9 branch and noticed two useful filters : tileagg and hevcmerge.
Would it be possible to provide more info about their differences?
From the WIKI document I can tell tileagg is to aggregate two tile streams to one stream; and hevcmerge is to merge more PIDs into single PID.
From the code I can see the tileagg mainly rewrite the NAL without changing the PS info, while hevcmerge did more validations and works in SPS/PPS etc to make sure same DTS etc. It seems hevcmerge needs to recalculate the height and width after the merge of the tiles, while tileagg doesn't care the position info of each tile stream, but why tileagg doesn't care, if more tile streams are aggregated to one stream, the spatial info still needs to be considered in the final stream so that the stream can present the whole picture after the aggregation of tile streams as I understood. But I'm sure I must missed some points or misunderstood.
From the test suite, I can see the tileagg is used to aggregate tile-based dash-srd; and hevcmerge is to merge more hevc tilebased files to one integral file.
Could anyone help give a hint what the core difference between them, or what the core scenarios of them? Thanks very much!
Wilson | What's the core difference between tileagg and hevcmerge in GPAC0.9 | https://api.github.com/repos/gpac/gpac/issues/1356/comments | 1 | 2019-11-21T03:21:38Z | 2019-11-21T09:15:45Z | https://github.com/gpac/gpac/issues/1356 | 526,340,586 | 1,356 |
[
"gpac",
"gpac"
] | Gpac0.9.0 version uses ffmpeg decoder by default, I want to use openhevc, please ask how to do it, thank you
I want to play video with MP4Client, use openhevc to decode | How to make gpac0.9.0 use openhevc decoder | https://api.github.com/repos/gpac/gpac/issues/1354/comments | 2 | 2019-11-20T08:58:04Z | 2019-11-20T09:24:15Z | https://github.com/gpac/gpac/issues/1354 | 525,663,257 | 1,354 |
[
"gpac",
"gpac"
] | Hello, whether GPAC support merging and display two **tiled-based HEVC streams** with **different resolution**? If not, is there any plan to support it in future?
Thanks! | Query about merging and display two tiled-based HEVC streams with different resolution | https://api.github.com/repos/gpac/gpac/issues/1353/comments | 3 | 2019-11-18T15:17:35Z | 2019-11-19T12:26:45Z | https://github.com/gpac/gpac/issues/1353 | 524,433,329 | 1,353 |
[
"gpac",
"gpac"
] | Hello.
I would like to pack h264 and AAC audio streams into a mp4 container using mp4box library (not CLI). I can't find any documentation on this and the comments found in the huge codebase are not really explicit. The only thing I found is the project https://github.com/Keemotion/TS2MP4 but it uses an old version of Mp4Box and is not maintained anymore.
Any help on how to use the Demuxer/muxer of mp4Box would be great. | remux h264 and AAC to mp4 using GPAC lib | https://api.github.com/repos/gpac/gpac/issues/1351/comments | 1 | 2019-11-15T11:52:16Z | 2019-11-18T15:13:31Z | https://github.com/gpac/gpac/issues/1351 | 523,427,206 | 1,351 |
[
"gpac",
"gpac"
] | Hi there, may someone help me to understand which is the best way to automate the video coding to get the right format, multiple video concatenation and the right duration to stream it without issues with mp4box? Currently im using ffmpeg with bash shell script that encode, concat and reduce the final video duration to get even second lenght to be able to stream a loop.
thanks you in advance!
| Best way to prepare videos for dash | https://api.github.com/repos/gpac/gpac/issues/1349/comments | 1 | 2019-11-13T13:20:56Z | 2019-11-18T16:40:05Z | https://github.com/gpac/gpac/issues/1349 | 522,218,904 | 1,349 |
[
"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/
A crafted input will lead to crash in box_code_3gpp.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[011-stack-dimC_Read1000](https://github.com/gutiniao/afltest/blob/master/011-stack-dimC_Read1000)
The ASAN information is as follows:
```
./MP4Box -diso 011-stack-dimC_Read1000 -out /dev/null
=================================================================
==3045==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff6e0d88d0 at pc 0x564b9b2d69fb bp 0x7fff6e0d8480 sp 0x7fff6e0d8470
WRITE of size 1 at 0x7fff6e0d88d0 thread T0
#0 0x564b9b2d69fa in dimC_Read isomedia/box_code_3gpp.c:1000
#1 0x564b9ae5bb35 in gf_isom_box_read isomedia/box_funcs.c:1528
#2 0x564b9ae5bb35 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#3 0x564b9ae5c1e4 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#4 0x564b9ae72f44 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#5 0x564b9ae75bca in gf_isom_open_file isomedia/isom_intern.c:615
#6 0x564b9abbe852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#7 0x7f4b5d817b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#8 0x564b9abafb19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
Address 0x7fff6e0d88d0 is located in stack of thread T0 at offset 1056 in frame
#0 0x564b9b2d641f in dimC_Read isomedia/box_code_3gpp.c:983
This frame has 1 object(s):
[32, 1056) 'str' <== Memory access at offset 1056 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow isomedia/box_code_3gpp.c:1000 in dimC_Read
Shadow bytes around the buggy address:
0x10006dc130c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc130d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc130e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc130f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc13100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10006dc13110: 00 00 00 00 00 00 00 00 00 00[f3]f3 f3 f3 00 00
0x10006dc13120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc13130: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 00 00
0x10006dc13140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc13150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006dc13160: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f2
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==3045==ABORTING
```
| There is a stack-buffer-overflow in the dimC_Read function of box_code_3gpp.c:1000 | https://api.github.com/repos/gpac/gpac/issues/1348/comments | 2 | 2019-11-13T07:25:13Z | 2020-01-08T12:45:44Z | https://github.com/gpac/gpac/issues/1348 | 522,010,451 | 1,348 |
[
"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/
A crafted input will lead to crash in box_code_base.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[010-memleak-dinf_New](https://github.com/gutiniao/afltest/blob/master/010-memleak-dinf_New)
The ASAN information is as follows:
```
./MP4Box -diso 010-memleak-dinf_New -out /dev/null
[iso file] Unknown box type io`s in parent moov
[iso file] Missing DataInformationBox
[iso file] Box "minf" (start 749) has 433 extra bytes
[iso file] Track with no sample table !
[iso file] Track with no sample description box !
[iso file] Unknown box type sch] in parent sinf
[iso file] Unknown box type 0000 in parent schi
[iso file] senc box without tenc, assuming MS smooth+piff
[isobmf] Failed to parse SENC box, invalid SAI size
[iso file] Unknown top-level box type 00303030
[iso file] Incomplete box 00303030 - start 3467 size 808453611
[iso file] Incomplete file while reading for dump - aborting parsing
=================================================================
==30567==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7f116e276b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x555d493a717a in dinf_New isomedia/box_code_base.c:945
Indirect leak of 80 byte(s) in 1 object(s) allocated from:
#0 0x7f116e276f40 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef40)
#1 0x555d48ccc059 in realloc_chain utils/list.c:622
#2 0x555d48ccc059 in gf_list_add utils/list.c:629
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x7f116e276b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x555d493a5f5a in url_New isomedia/box_code_base.c:575
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7f116e276b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x555d493a740a in dref_New isomedia/box_code_base.c:1005
Indirect leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f116e276b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x555d48ccbebd in gf_list_new utils/list.c:602
SUMMARY: AddressSanitizer: 224 byte(s) leaked in 5 allocation(s).
``` | There are memory leaks in the dinf_New function of box_code_base.c:945 | https://api.github.com/repos/gpac/gpac/issues/1347/comments | 1 | 2019-11-13T07:22:07Z | 2020-01-09T18:00:07Z | https://github.com/gpac/gpac/issues/1347 | 522,009,170 | 1,347 |
[
"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/
A crafted input will lead to crash in isom_intern.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[009-invalid-FixTrackID](https://github.com/gutiniao/afltest/blob/master/009-invalid-FixTrackID)
The ASAN information is as follows:
```
./MP4Box -diso 009-invalid-FixTrackID -out /dev/null
[iso file] Box "avcC" (start 939) has 34 extra bytes
[iso file] Unknown box type 0000 in parent sinf
[iso file] Unknown box type 74E8036B in parent moov
[iso file] Unknown box type tfhd in parent moof
[iso file] Box "UNKN" is larger than container box
[iso file] Box "moof" size 1463 (start 2004) invalid (read 7972)
ASAN:DEADLYSIGNAL
=================================================================
==13653==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x564b3322e701 bp 0x60d000000110 sp 0x7fff462fc3f0 T0)
==13653==The signal is caused by a READ memory access.
==13653==Hint: address points to the zero page.
#0 0x564b3322e700 in FixTrackID isomedia/isom_intern.c:133
#1 0x564b3322e700 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:372
#2 0x564b3322fbca in gf_isom_open_file isomedia/isom_intern.c:615
#3 0x564b32f78852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#4 0x7fd75e925b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#5 0x564b32f69b19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/isom_intern.c:133 in FixTrackID
==13653==ABORTING
``` | Segmentation fault (ASAN: SEGV on unknown address) in the FixTrackID function of isom_intern.c:133 | https://api.github.com/repos/gpac/gpac/issues/1346/comments | 1 | 2019-11-13T07:15:54Z | 2020-01-09T18:00:04Z | https://github.com/gpac/gpac/issues/1346 | 522,006,717 | 1,346 |
[
"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/
A crafted input will lead to crash in box_code_base.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[007-memleak-sgpd_parse_entry](https://github.com/gutiniao/afltest/blob/master/007-memleak-sgpd_parse_entry)
The ASAN information is as follows:
```
./MP4Box -diso 007-memleak-sgpd_parse_entry -out /dev/null
[iso file] Unknown box type gods in parent moov
[iso file] Box "avcC" (start 939) has 34 extra bytes
[iso file] Unknown box type 0000 in parent sinf
[iso file] Invalid descriptor tag 0xc1 in esds
[iso file] Read Box "esds" (start 1491) failed (Invalid IsoMedia File) - skipping
[iso file] Invalid descriptor tag 0xc1 in esds
[iso file] Read Box "esds" (start 0) failed (Invalid IsoMedia File) - skipping
[isom] not enough bytes in box sgpd: 20 left, reading 63 (file isomedia/box_code_base.c, line 9926)
[iso file] Read Box "sgpd" (start 1678) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "stbl" (start 1431) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "minf" (start 1371) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "mdia" (start 1298) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "trak" (start 1198) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "moov" (start 351) failed (Invalid IsoMedia File) - skipping
Error opening file 007-memleak-sgpd_parse_entry: Invalid IsoMedia File
=================================================================
==6751==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 37 byte(s) in 1 object(s) allocated from:
#0 0x7f25e0370b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x55e8ff099553 in sgpd_parse_entry isomedia/box_code_base.c:9656
#2 0x55e8ff099553 in sgpd_Read isomedia/box_code_base.c:9922
SUMMARY: AddressSanitizer: 37 byte(s) leaked in 1 allocation(s)
```
| There are memory leaks in the sgpd_parse_entry function of box_code_base.c:9656 | https://api.github.com/repos/gpac/gpac/issues/1345/comments | 1 | 2019-11-13T05:25:14Z | 2020-01-09T18:00:00Z | https://github.com/gpac/gpac/issues/1345 | 521,967,985 | 1,345 |
[
"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/
A crafted input will lead to crash in stbl_read.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[006GetGhostNum-heap](https://github.com/gutiniao/afltest/blob/master/006GetGhostNum-heap)
The ASAN information is as follows:
```
./MP4Box -diso 006GetGhostNum-heap -out /dev/null
[iso file] Box "avcC" (start 939) has 34 extra bytes
[iso file] Unknown box type 0000 in parent sinf
[iso file] Box "dref" (start 1403) has 4 extra bytes
[iso file] Missing DataInformationBox
[iso file] Box "minf" (start 1371) has 291 extra bytes
[iso file] Track with no sample table !
[iso file] Track with no sample description box !
=================================================================
==7153==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000454 at pc 0x5572c94aafff bp 0x7fff10f02f50 sp 0x7fff10f02f40
READ of size 4 at 0x602000000454 thread T0
#0 0x5572c94aaffe in GetGhostNum isomedia/stbl_read.c:369
#1 0x5572c94aaffe in stbl_GetSampleInfos isomedia/stbl_read.c:436
#2 0x5572c943e253 in gf_isom_get_sample_cenc_info_ex isomedia/isom_read.c:4153
#3 0x5572c98c8c2f in senc_Parse isomedia/box_code_drm.c:1353
#4 0x5572c94203e6 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:399
#5 0x5572c9422bca in gf_isom_open_file isomedia/isom_intern.c:615
#6 0x5572c916b852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#7 0x7f0e00306b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#8 0x5572c915cb19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
0x602000000454 is located 3 bytes to the right of 1-byte region [0x602000000450,0x602000000451)
allocated by thread T0 here:
#0 0x7f0e00f8fb50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x5572c98a424a in stsc_Read isomedia/box_code_base.c:5734
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/stbl_read.c:369 in GetGhostNum
Shadow bytes around the buggy address:
0x0c047fff8030: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff8040: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8050: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8060: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8070: fa fa 00 00 fa fa 00 00 fa fa fd fd fa fa fd fd
=>0x0c047fff8080: fa fa 00 00 fa fa 01 fa fa fa[01]fa fa fa 00 00
0x0c047fff8090: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff80a0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80b0: fa fa 00 fa fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff80c0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 01 fa
0x0c047fff80d0: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 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
==7153==ABORTING
``` | There is a heap-buffer-overflow in the GetGhostNum function of stbl_read.c:369 | https://api.github.com/repos/gpac/gpac/issues/1344/comments | 1 | 2019-11-13T05:18:43Z | 2020-01-09T17:59:57Z | https://github.com/gpac/gpac/issues/1344 | 521,966,021 | 1,344 |
[
"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/
A crafted input will lead to crash in ipmpx_code.c at gpac 0.8.0.it is similar to issue(https://github.com/gpac/gpac/issues/1328) ,but this poc can cause UAF issue.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[005GF_IPMPX_AUTH_Delete-uaf](https://github.com/gutiniao/afltest/blob/master/005GF_IPMPX_AUTH_Delete-uaf)
The ASAN information is as follows:
```
./MP4Box -diso 005GF_IPMPX_AUTH_Delete-uaf -out /dev/null
[ODF] Error reading descriptor (tag 11 size 25): Invalid MPEG-4 Descriptor
=================================================================
==31813==ERROR: AddressSanitizer: heap-use-after-free on address 0x603000000070 at pc 0x55cf025106c0 bp 0x7fff3dfc0c60 sp 0x7fff3dfc0c50
READ of size 1 at 0x603000000070 thread T0
#0 0x55cf025106bf in GF_IPMPX_AUTH_Delete odf/ipmpx_code.c:115
#1 0x55cf025106bf in delete_algo_list odf/ipmpx_code.c:363
#2 0x55cf025106bf in DelGF_IPMPX_MutualAuthentication odf/ipmpx_code.c:370
#3 0x55cf025106bf in gf_ipmpx_data_del odf/ipmpx_code.c:1853
#4 0x55cf024fdd32 in gf_odf_del_ipmp odf/odf_code.c:2390
#5 0x55cf024e9aa3 in gf_odf_parse_descriptor odf/descriptors.c:176
#6 0x55cf025046da in gf_odf_desc_read odf/odf_codec.c:302
#7 0x55cf0289c0fb in esds_Read isomedia/box_code_base.c:1256
#8 0x55cf0240fb35 in gf_isom_box_read isomedia/box_funcs.c:1528
#9 0x55cf0240fb35 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#10 0x55cf024101e4 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#11 0x55cf02426f44 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#12 0x55cf02429bca in gf_isom_open_file isomedia/isom_intern.c:615
#13 0x55cf02172852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#14 0x7fd392e3db96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#15 0x55cf02163b19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
0x603000000070 is located 0 bytes inside of 24-byte region [0x603000000070,0x603000000088)
freed by thread T0 here:
#0 0x7fd393ac67b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
#1 0x55cf0250f799 in GF_IPMPX_AUTH_Delete odf/ipmpx_code.c:128
#2 0x55cf0250f799 in delete_algo_list odf/ipmpx_code.c:363
#3 0x55cf0250f799 in DelGF_IPMPX_MutualAuthentication odf/ipmpx_code.c:370
#4 0x55cf0250f799 in gf_ipmpx_data_del odf/ipmpx_code.c:1853
previously allocated by thread T0 here:
#0 0x7fd393ac6b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x55cf0250d829 in GF_IPMPX_AUTH_Parse odf/ipmpx_code.c:236
SUMMARY: AddressSanitizer: heap-use-after-free odf/ipmpx_code.c:115 in GF_IPMPX_AUTH_Delete
Shadow bytes around the buggy address:
0x0c067fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c067fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c067fff8000: fa fa 00 00 00 04 fa fa fd fd fd fd fa fa[fd]fd
0x0c067fff8010: fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8050: 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
==31813==ABORTING
```
| There is a heap-use-after-free in the GF_IPMPX_AUTH_Delete function of ipmpx_code.c:115 | https://api.github.com/repos/gpac/gpac/issues/1343/comments | 1 | 2019-11-13T05:08:27Z | 2020-01-09T17:59:55Z | https://github.com/gpac/gpac/issues/1343 | 521,963,183 | 1,343 |
[
"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/
A crafted input will lead to crash in box_code_drm.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[004-memleak-senc1349](https://github.com/gutiniao/afltest/blob/master/004-memleak-senc1349)
The ASAN information is as follows:
```
./MP4Box -diso 004-memleak-senc1349 -out /dev/null
[iso file] Box "avcC" (start 939) has 34 extra bytes
[iso file] Unknown box type 0000 in parent sinf
[iso file] Unknown box type 75876C20 in parent dref
[iso file] Unknown box type 0000 in parent schi
[iso file] Unknown box type stts in parent stsd
[iso file] Unknown box type stsc in parent stsd
[iso file] Unknown box type stsz in parent stsd
[iso file] Unknown box type stco in parent stsd
[iso file] Unknown box type sgpd in parent stsd
[iso file] Unknown box type udta in parent stsd
[iso file] Box "stsd" (start 1439) has 8825 extra bytes
[iso file] Box "stsd" is larger than container box
[iso file] Box "stbl" size 291 (start 1431) invalid (read 9139)
[ISO file] dataReferenceIndex set to 0 in sample entry, overriding to 1
[ISO file] dataReferenceIndex set to 0 in sample entry, overriding to 1
[ISO file] dataReferenceIndex set to 0 in sample entry, overriding to 1
[ISO file] dataReferenceIndex set to 0 in sample entry, overriding to 1
[iso file] senc box without tenc, assuming MS smooth+piff
[isobmf] Failed to parse SENC box, invalid SAI size
[isobmf] could not get cenc info for sample 1: Invalid IsoMedia File
Error opening file 004-memleak-senc1349: Invalid IsoMedia File
=================================================================
==2371==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7f0fc2519b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x564665fcabe9 in senc_Parse isomedia/box_code_drm.c:1349
SUMMARY: AddressSanitizer: 32 byte(s) leaked in 1 allocation(s).
```
about code:
```
#endif
count = gf_bs_read_u32(bs);
if (!senc->samp_aux_info) senc->samp_aux_info = gf_list_new();
for (i=0; i<count; i++) {
u32 is_encrypted;
---------->GF_CENCSampleAuxInfo *sai = (GF_CENCSampleAuxInfo *)gf_malloc(sizeof(GF_CENCSampleAuxInfo));
memset(sai, 0, sizeof(GF_CENCSampleAuxInfo));
``` | There are memory leaks in the senc_Parse function of box_code_drm.c:1349 | https://api.github.com/repos/gpac/gpac/issues/1342/comments | 1 | 2019-11-13T04:06:43Z | 2020-01-09T17:59:51Z | https://github.com/gpac/gpac/issues/1342 | 521,946,411 | 1,342 |
[
"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/
A crafted input will lead to crash in box_dump.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[003-heep-dump_data51](https://github.com/gutiniao/afltest/blob/master/003-heep-dump_data51)
The ASAN information is as follows:
```
./MP4Box -diso 003-heep-dump_data51 -out /dev/null
[iso file] Box "avcC" (start 939) has 34 extra bytes
[iso file] Unknown box type 0000 in parent sinf
[iso file] Unknown box type 0000 in parent schi
[iso file] Box "tfhd" size 20 (start 2642) invalid (read 28)
[iso file] senc box without tenc, assuming MS smooth+piff
[isobmf] Failed to parse SENC box, invalid SAI size
[isobmf] Failed to parse SENC box, invalid SAI size
[iso file] Unknown top-level box type 00303030
[iso file] Incomplete box 00303030 - start 3467 size 808453500
[iso file] Incomplete file while reading for dump - aborting parsing
=================================================================
==5711==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000990 at pc 0x563f30697440 bp 0x7ffd8a7496b0 sp 0x7ffd8a7496a0
READ of size 1 at 0x603000000990 thread T0
#0 0x563f3069743f in dump_data_hex isomedia/box_dump.c:51
#1 0x563f3069743f in senc_dump isomedia/box_dump.c:4823
#2 0x563f306a06ad in gf_isom_box_dump_ex isomedia/box_funcs.c:1738
#3 0x563f3067c5bc in gf_isom_box_dump isomedia/box_dump.c:97
#4 0x563f3067c5bc in gf_isom_box_array_dump isomedia/box_dump.c:107
#5 0x563f306a07cf in gf_isom_box_dump_done isomedia/box_funcs.c:1747
#6 0x563f3068b939 in traf_dump isomedia/box_dump.c:2461
#7 0x563f306a06ad in gf_isom_box_dump_ex isomedia/box_funcs.c:1738
#8 0x563f3067c5bc in gf_isom_box_dump isomedia/box_dump.c:97
#9 0x563f3067c5bc in gf_isom_box_array_dump isomedia/box_dump.c:107
#10 0x563f306a07cf in gf_isom_box_dump_done isomedia/box_funcs.c:1747
#11 0x563f3068b389 in moof_dump isomedia/box_dump.c:2431
#12 0x563f306a06ad in gf_isom_box_dump_ex isomedia/box_funcs.c:1738
#13 0x563f3067c7f3 in gf_isom_box_dump isomedia/box_dump.c:97
#14 0x563f3067c7f3 in gf_isom_dump isomedia/box_dump.c:139
#15 0x563f3041b734 in dump_isom_xml /home/liuz/gpac-master/applications/mp4box/filedump.c:1930
#16 0x563f30405c92 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4982
#17 0x7f6e421e6b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#18 0x563f303f2b19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
0x603000000990 is located 0 bytes to the right of 32-byte region [0x603000000970,0x603000000990)
allocated by thread T0 here:
#0 0x7f6e42e6fb50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x563f30b5ebe9 in senc_Parse isomedia/box_code_drm.c:1349
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/box_dump.c:51 in dump_data_hex
Shadow bytes around the buggy address:
0x0c067fff80e0: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff80f0: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
0x0c067fff8100: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa
0x0c067fff8110: 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa
0x0c067fff8120: fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa 00 00
=>0x0c067fff8130: 00 00[fa]fa 00 00 00 00 fa fa fd fd fd fd fa fa
0x0c067fff8140: 00 00 00 00 fa fa fd fd fd fd fa fa fa fa fa fa
0x0c067fff8150: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8170: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c067fff8180: 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
==5711==ABORTING
```
| There is a heap-buffer-overflow in the dump_data_hex function of box_dump.c:51 | https://api.github.com/repos/gpac/gpac/issues/1341/comments | 1 | 2019-11-13T03:49:59Z | 2020-01-09T17:59:47Z | https://github.com/gpac/gpac/issues/1341 | 521,942,076 | 1,341 |
[
"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/
A crafted input will lead to crash in av_parsers.c at gpac 0.8.0.it is similar to issue(https://github.com/gpac/gpac/issues/1332) ,but this poc can cause UAF issue.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[002-gf_isom_box_del-uaf1500](https://github.com/gutiniao/afltest/blob/master/002-gf_isom_box_del-uaf1500)
The ASAN information is as follows:
```
./MP4Box -diso 002-gf_isom_box_del-uaf1500 -out /dev/null
[ODF] Error reading descriptor (tag 2 size 35): Invalid MPEG-4 Descriptor
[iso file] Read Box "esds" (start 770) failed (Invalid MPEG-4 Descriptor) - skipping
[iso file] Box "stco" (start 3368) has 4 extra bytes
[iso file] Box "ctts" is larger than container box
[iso file] Box "stbl" size 12337 (start 1159) invalid (read 14373)
[iso file] Read Box type 00303030 (0x00303030) at position 13496 has size 0 but is not at root/file level, skipping
[iso file] Missing MediaHeaderBox
=================================================================
==23401==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060000004b8 at pc 0x562734e8e048 bp 0x7ffce997be90 sp 0x7ffce997be80
READ of size 8 at 0x6060000004b8 thread T0
#0 0x562734e8e047 in gf_isom_box_del isomedia/box_funcs.c:1500
#1 0x562734e8df96 in gf_isom_box_array_del isomedia/box_funcs.c:270
#2 0x562734e8df96 in gf_isom_box_del isomedia/box_funcs.c:1516
#3 0x562734e8df96 in gf_isom_box_array_del isomedia/box_funcs.c:270
#4 0x562734e8df96 in gf_isom_box_del isomedia/box_funcs.c:1516
#5 0x562734e8df96 in gf_isom_box_array_del isomedia/box_funcs.c:270
#6 0x562734e8df96 in gf_isom_box_del isomedia/box_funcs.c:1516
#7 0x562734e8e416 in gf_isom_box_parse_ex isomedia/box_funcs.c:219
#8 0x562734e8ee10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#9 0x562735330906 in trak_Read isomedia/box_code_base.c:7129
#10 0x562734e8e3d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#11 0x562734e8e3d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#12 0x562734e8ee10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#13 0x562735323f64 in moov_Read isomedia/box_code_base.c:3745
#14 0x562734e8fb35 in gf_isom_box_read isomedia/box_funcs.c:1528
#15 0x562734e8fb35 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#16 0x562734e901e4 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#17 0x562734ea6f44 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#18 0x562734ea9bca in gf_isom_open_file isomedia/isom_intern.c:615
#19 0x562734bf2852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#20 0x7f9e595d8b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#21 0x562734be3b19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
0x6060000004b8 is located 24 bytes inside of 56-byte region [0x6060000004a0,0x6060000004d8)
freed by thread T0 here:
#0 0x7f9e5a2617b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
#1 0x562734e8dfc6 in gf_isom_box_del isomedia/box_funcs.c:1508
previously allocated by thread T0 here:
#0 0x7f9e5a261b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x56273532aa6a in stco_New isomedia/box_code_base.c:5616
SUMMARY: AddressSanitizer: heap-use-after-free isomedia/box_funcs.c:1500 in gf_isom_box_del
Shadow bytes around the buggy address:
0x0c0c7fff8040: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
0x0c0c7fff8050: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 03
0x0c0c7fff8060: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0c7fff8070: 00 00 00 00 00 00 00 fa fa fa fa fa fd fd fd fd
0x0c0c7fff8080: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd
=>0x0c0c7fff8090: fa fa fa fa fd fd fd[fd]fd fd fd fa fa fa fa fa
0x0c0c7fff80a0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
0x0c0c7fff80b0: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff80c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff80d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff80e0: 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
==23401==ABORTING
```
| There is a heap-use-after-free in the gf_isom_box_del function of box_funcs.c:1500 | https://api.github.com/repos/gpac/gpac/issues/1340/comments | 1 | 2019-11-13T03:32:22Z | 2020-01-09T17:59:43Z | https://github.com/gpac/gpac/issues/1340 | 521,937,160 | 1,340 |
[
"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/
A crafted input will lead to crash in av_parsers.c at gpac 0.8.0.
Triggered by
./MP4Box -diso POC -out /dev/null
Poc
[001gf_media_nalu_remove_emulation_bytes](https://github.com/gutiniao/afltest/blob/master/001gf_media_nalu_remove_emulation_bytes)
The ASAN information is as follows:
```
./MP4Box -diso 001gf_media_nalu_remove_emulation_bytes -out /dev/null
[iso file] Media header timescale is 0 - defaulting to 90000
=================================================================
==23148==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000002d1 at pc 0x5632845c98b0 bp 0x7ffdce21c4e0 sp 0x7ffdce21c4d0
READ of size 1 at 0x6020000002d1 thread T0
#0 0x5632845c98af in gf_media_nalu_remove_emulation_bytes media_tools/av_parsers.c:4722
#1 0x5632845c991b in gf_media_avc_read_sps media_tools/av_parsers.c:4737
#2 0x5632843ea9a9 in avcc_Read isomedia/avc_ext.c:2371
#3 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#4 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#5 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#6 0x5632848afbf1 in video_sample_entry_Read isomedia/box_code_base.c:4405
#7 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#8 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#9 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#10 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#11 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#12 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#13 0x5632848b38a4 in stbl_Read isomedia/box_code_base.c:5381
#14 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#15 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#16 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#17 0x5632848ad40b in minf_Read isomedia/box_code_base.c:3500
#18 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#19 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#20 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#21 0x5632848ab73f in mdia_Read isomedia/box_code_base.c:3021
#22 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#23 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#24 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#25 0x5632848ba906 in trak_Read isomedia/box_code_base.c:7129
#26 0x5632844183d4 in gf_isom_box_read isomedia/box_funcs.c:1528
#27 0x5632844183d4 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#28 0x563284418e10 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#29 0x5632848adf64 in moov_Read isomedia/box_code_base.c:3745
#30 0x563284419b35 in gf_isom_box_read isomedia/box_funcs.c:1528
#31 0x563284419b35 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#32 0x56328441a1e4 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#33 0x563284430f44 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#34 0x563284433bca in gf_isom_open_file isomedia/isom_intern.c:615
#35 0x56328417c852 in mp4boxMain /home/liuz/gpac-master/applications/mp4box/main.c:4767
#36 0x7f0252bccb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#37 0x56328416db19 in _start (/usr/local/gpac-asan3/bin/MP4Box+0x163b19)
0x6020000002d1 is located 0 bytes to the right of 1-byte region [0x6020000002d0,0x6020000002d1)
allocated by thread T0 here:
#0 0x7f0253855b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
#1 0x5632843ea263 in avcc_Read isomedia/avc_ext.c:2343
SUMMARY: AddressSanitizer: heap-buffer-overflow media_tools/av_parsers.c:4722 in gf_media_nalu_remove_emulation_bytes
Shadow bytes around the buggy address:
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8010: fa fa fd fd fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8020: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8030: fa fa 00 00 fa fa 00 00 fa fa 00 05 fa fa 00 00
0x0c047fff8040: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8050: fa fa 00 00 fa fa 00 00 fa fa[01]fa fa fa 01 fa
0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff80a0: 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
==23148==ABORTING
```
| There is a heap-buffer-overflow in the gf_media_nalu_remove_emulation_bytes function of av_parsers.c:4722 | https://api.github.com/repos/gpac/gpac/issues/1339/comments | 1 | 2019-11-13T03:14:38Z | 2020-01-09T17:59:39Z | https://github.com/gpac/gpac/issues/1339 | 521,931,348 | 1,339 |
[
"gpac",
"gpac"
] | Hello, I found a similar issue but I am not sure they are the same.
https://github.com/gpac/gpac/issues/1263
System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-ilst_item_Read
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-ilst_item_Read
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x00000000006c499d in ilst_item_Read ()
(gdb) bt
#0 0x00000000006c499d in ilst_item_Read ()
#1 0x00000000005137e1 in gf_isom_box_parse_ex.constprop ()
#2 0x0000000000513e15 in gf_isom_parse_root_box ()
#3 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#4 0x000000000051c48c in gf_isom_open_file ()
#5 0x000000000041c082 in mp4boxMain ()
#6 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#7 0x000000000040eba9 in _start ()
```
ASAN info:
```C
ASAN:SIGSEGV
=================================================================
==27902==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x000000ac4185 bp 0x7fffffff8230 sp 0x7fffffff8220 T0)
#0 0xac4184 in ilst_item_Read isomedia/box_code_apple.c:119
#1 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#2 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#3 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#4 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#5 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#6 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#7 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#8 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#9 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/box_code_apple.c:119 ilst_item_Read
==27902==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | ERROR: AddressSanitizer: NULL pointer dereference in ilst_item_Read isomedia/box_code_apple.c:119 | https://api.github.com/repos/gpac/gpac/issues/1338/comments | 4 | 2019-11-09T12:06:24Z | 2020-01-08T12:45:38Z | https://github.com/gpac/gpac/issues/1338 | 520,405,629 | 1,338 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-memory-leak
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-memory-leak
gdb info:
```C
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] Box "metx" size 15 (start 89) invalid (read 25)
[iso file] Box "abst" size 24 (start 0) invalid (read 104)
[iso file] Incomplete box abst - start 0 size 24
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Box "metx" size 15 (start 89) invalid (read 25)
[iso file] Box "abst" size 24 (start 0) invalid (read 104)
Truncated file - missing 24 bytes
[Inferior 1 (process 6276) exited with code 01]
```
ASAN info:
```C
==26041==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 224 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xaefada in metx_New isomedia/box_code_base.c:8367
Direct leak of 8 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x792106 in abst_Read isomedia/box_code_adobe.c:95
#2 0xb62c63 (/bin/MP4Box+0xb62c63)
Indirect leak of 32 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x46c27d in gf_list_new utils/list.c:602
Indirect leak of 16 byte(s) in 4 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7ffff63eb489 in __strdup (/lib/x86_64-linux-gnu/libc.so.6+0x8b489)
```
SUMMARY: AddressSanitizer: 280 byte(s) leaked in 10 allocation(s).
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: 2 memory leaks of metx_New(), abst_Read() | https://api.github.com/repos/gpac/gpac/issues/1337/comments | 3 | 2019-11-09T12:00:28Z | 2020-01-08T13:26:12Z | https://github.com/gpac/gpac/issues/1337 | 520,403,921 | 1,337 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (master 6ada10e)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-memory-leak
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-memory-leak
gdb info:
```C
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[iso file] Box "metx" size 15 (start 89) invalid (read 25)
[iso file] Box "abst" size 24 (start 0) invalid (read 104)
[iso file] Incomplete box abst - start 0 size 24
[iso file] Incomplete file while reading for dump - aborting parsing
[iso file] Box "metx" size 15 (start 89) invalid (read 25)
[iso file] Box "abst" size 24 (start 0) invalid (read 104)
Truncated file - missing 24 bytes
[Inferior 1 (process 6276) exited with code 01]
```
ASAN info:
```C
==26041==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 224 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xaefada in metx_New isomedia/box_code_base.c:8367
Direct leak of 8 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x792106 in abst_Read isomedia/box_code_adobe.c:95
#2 0xb62c63 (/bin/MP4Box+0xb62c63)
Indirect leak of 32 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x46c27d in gf_list_new utils/list.c:602
Indirect leak of 16 byte(s) in 4 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7ffff63eb489 in __strdup (/lib/x86_64-linux-gnu/libc.so.6+0x8b489)
```
SUMMARY: AddressSanitizer: 280 byte(s) leaked in 10 allocation(s).
```
| AddressSanitizer: 2 memory leaks of metx_New(), abst_Read() | https://api.github.com/repos/gpac/gpac/issues/1336/comments | 1 | 2019-11-09T11:56:19Z | 2019-11-09T12:02:16Z | https://github.com/gpac/gpac/issues/1336 | 520,403,324 | 1,336 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-gf_odf_avc_cfg_write_bs
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_odf_avc_cfg_write_bs
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x000000000055aeee in gf_odf_avc_cfg_write_bs ()
(gdb) bt
#0 0x000000000055aeee in gf_odf_avc_cfg_write_bs ()
#1 0x000000000055b1ff in gf_odf_avc_cfg_write ()
#2 0x00000000004f9ba1 in AVC_RewriteESDescriptorEx ()
#3 0x00000000006cf2a8 in video_sample_entry_Read ()
#4 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#5 0x000000000051333b in gf_isom_box_array_read_ex ()
#6 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#7 0x000000000051333b in gf_isom_box_array_read_ex ()
#8 0x00000000006d09d0 in stbl_Read ()
#9 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#10 0x000000000051333b in gf_isom_box_array_read_ex ()
#11 0x00000000006ce02b in minf_Read ()
#12 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#13 0x000000000051333b in gf_isom_box_array_read_ex ()
#14 0x00000000006cd2f0 in mdia_Read ()
#15 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#16 0x000000000051333b in gf_isom_box_array_read_ex ()
#17 0x00000000006d351d in trak_Read ()
#18 0x0000000000512ce5 in gf_isom_box_parse_ex ()
#19 0x000000000051333b in gf_isom_box_array_read_ex ()
#20 0x00000000006ce545 in moov_Read ()
#21 0x00000000005137e1 in gf_isom_box_parse_ex.constprop ()
#22 0x0000000000513e15 in gf_isom_parse_root_box ()
#23 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#24 0x000000000051c48c in gf_isom_open_file ()
#25 0x000000000041c082 in mp4boxMain ()
#26 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#27 0x000000000040eba9 in _start ()
```
ASAN info:
```C
ASAN:SIGSEGV
=================================================================
==25871==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x000000797a2b bp 0x60200000ed98 sp 0x7fffffff7230 T0)
#0 0x797a2a in gf_odf_avc_cfg_write_bs odf/descriptors.c:567
#1 0x79821e in gf_odf_avc_cfg_write odf/descriptors.c:631
#2 0x68b393 in AVC_RewriteESDescriptorEx isomedia/avc_ext.c:1063
#3 0xaddd66 in video_sample_entry_Read isomedia/box_code_base.c:4408
#4 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#5 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#6 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#7 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#8 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#9 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#10 0xae19df in stbl_Read isomedia/box_code_base.c:5381
#11 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#12 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#13 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#14 0xadb4fe in minf_Read isomedia/box_code_base.c:3500
#15 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#16 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#17 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#18 0xad96ef in mdia_Read isomedia/box_code_base.c:3021
#19 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#20 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#21 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#22 0xae8ad8 in trak_Read isomedia/box_code_base.c:7129
#23 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#24 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#25 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#26 0xadc064 in moov_Read isomedia/box_code_base.c:3745
#27 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#28 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#29 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#30 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#31 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#32 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#33 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#34 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#35 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV odf/descriptors.c:567 gf_odf_avc_cfg_write_bs
==25871==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: NULL pointer dereference in gf_odf_avc_cfg_write_bs odf/descriptors.c:567 | https://api.github.com/repos/gpac/gpac/issues/1335/comments | 2 | 2019-11-09T11:23:01Z | 2020-01-08T12:45:23Z | https://github.com/gpac/gpac/issues/1335 | 520,395,160 | 1,335 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-av1_parse_tile_group
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-av1_parse_tile_group
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x00000000005a375b in av1_parse_tile_group ()
(gdb) bt
#0 0x00000000005a375b in av1_parse_tile_group ()
#1 0x00000000005ad18b in gf_media_aom_av1_parse_obu ()
#2 0x00000000004fe4ce in av1c_Read ()
#3 0x000000010000100a in ?? ()
#4 0x000000010000100b in ?? ()
#5 0x000000010000100c in ?? ()
#6 0x000000010000100d in ?? ()
#7 0x000000010000100e in ?? ()
#8 0x000000010000100f in ?? ()
#9 0x0000000100001010 in ?? ()
#10 0x0000000100001011 in ?? ()
#11 0x0000000100001012 in ?? ()
#12 0x0000000100001013 in ?? ()
#13 0x0000000100001014 in ?? ()
```
ASAN info:
```C
[33m[iso file] Box "dinf" (start 773) has 20 extra bytes
[0m[31m[iso file] Missing DataInformationBox
[0m[33m[iso file] Box "minf" (start 745) has 458 extra bytes
[0m[33m[iso file] Box "mdia" is larger than container box
[0m[33m[iso file] Track with no sample table !
[0m[33m[iso file] Track with no sample description box !
[0m[33m[iso file] Box "trak" size 264 (start 553) invalid (read 714)
[0m[33m[iso file] Box "svcC" size 60 (start 919) invalid (read 126)
[0m[33m[iso file] Box "avcC" (start 979) has 9 extra bytes
[0m[33m[iso file] Box "avcC" (start 1003) has 81 extra bytes
[0m[33m[iso file] extra box avcC found in avc1, deleting
[0m[32m[iso file] Unknown box type av1C in parent avc1
[0m[32m[iso file] Unknown box type stsz in parent avc1
[0m[32m[iso file] Unknown box type stco in parent avc1
[0m[33m[iso file] Box "UNKN" is larger than container box
[0m[33m[iso file] Box "avc1" size 402 (start 833) invalid (read 414)
[0m[33m[iso file] Box "avc1" is larger than container box
[0m[33m[iso file] Box "stsd" size 162 (start 817) invalid (read 418)
[0m[33m[iso file] Box "avcC" (start 979) has 9 extra bytes
[0m[33m[iso file] Box "avcC" (start 1003) has 81 extra bytes
[0m=================================================================
==25824==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffffff8278 at pc 0x00000082ff06 bp 0x7ffffffef7a0 sp 0x7ffffffef790
WRITE of size 4 at 0x7fffffff8278 thread T0
#0 0x82ff05 in av1_parse_tile_group media_tools/av_parsers.c:3845
#1 0x840f2f in av1_parse_frame media_tools/av_parsers.c:3882
#2 0x840f2f in gf_media_aom_av1_parse_obu media_tools/av_parsers.c:3969
#3 0x69909c in av1c_Read isomedia/avc_ext.c:2651
#4 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#5 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#6 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#7 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#8 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#9 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#10 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#11 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#12 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
Address 0x7fffffff8278 is located in stack of thread T0 at offset 35160 in frame
#0 0x69889f in av1c_Read isomedia/avc_ext.c:2608
This frame has 3 object(s):
[32, 36) 'obu_type'
[96, 104) 'obu_size'
[160, 35112) 'state' <== Memory access at offset 35160 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow media_tools/av_parsers.c:3845 av1_parse_tile_group
Shadow bytes around the buggy address:
0x10007fff6ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10007fff7040: 00 00 00 00 00 00 00 00 00 f4 f4 f4 f3 f3 f3[f3]
0x10007fff7050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1
0x10007fff7060: f1 f1 00 00 f4 f4 f3 f3 f3 f3 00 00 00 00 00 00
0x10007fff7070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7090: 00 00 f1 f1 f1 f1 04 f4 f4 f4 f2 f2 f2 f2 04 f4
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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==25824==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: stack-buffer-overflow in av1_parse_tile_group media_tools/av_parsers.c:3845 | https://api.github.com/repos/gpac/gpac/issues/1334/comments | 2 | 2019-11-09T11:22:06Z | 2020-01-08T12:45:14Z | https://github.com/gpac/gpac/issues/1334 | 520,394,957 | 1,334 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-gf_isom_box_dump_ex
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_isom_box_dump_ex
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x0000000000505aee in stco_dump ()
(gdb) bt
#0 0x0000000000505aee in stco_dump ()
#1 0x0000000000514918 in gf_isom_box_dump_ex ()
#2 0x0000000000502e15 in gf_isom_box_array_dump ()
#3 0x00000000005149dc in gf_isom_box_dump_done ()
#4 0x0000000000503a1b in stbl_dump ()
#5 0x0000000000514918 in gf_isom_box_dump_ex ()
#6 0x0000000000502e15 in gf_isom_box_array_dump ()
#7 0x00000000005149dc in gf_isom_box_dump_done ()
#8 0x000000000050615d in minf_dump ()
#9 0x0000000000514918 in gf_isom_box_dump_ex ()
#10 0x0000000000502f10 in gf_isom_dump ()
#11 0x0000000000425faa in dump_isom_xml ()
#12 0x000000000041c69a in mp4boxMain ()
#13 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#14 0x000000000040eba9 in _start ()
```
ASAN info:
```C
[33m[iso file] Box "mvhd" (start 445) has 8 extra bytes
[0m[32m[iso file] Unknown box type tkhd in parent moov
[0m[32m[iso file] Unknown box type mdia in parent moov
[0m[33m[iso file] Box "UNKN" is larger than container box
[0m[33m[iso file] Box "moov" size 256 (start 437) invalid (read 830)
[0m[31m[iso file] Read Box type 00000000 (0x00000000) at position 851 has size 0 but is not at root/file level, skipping
[0m[33m[iso file] Box "stsd" (start 817) has 120 extra bytes
[0m[33m[iso file] Box "stco" (start 1003) has 40 extra bytes
[0m=================================================================
==27857==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000ee50 at pc 0x0000006c6f5d bp 0x7fffffff7db0 sp 0x7fffffff7da0
READ of size 8 at 0x60600000ee50 thread T0
#0 0x6c6f5c in gf_isom_box_dump_ex isomedia/box_funcs.c:1734
#1 0x6a370c in gf_isom_box_dump isomedia/box_dump.c:97
#2 0x6a370c in gf_isom_box_array_dump isomedia/box_dump.c:107
#3 0x6c6faf in gf_isom_box_dump_done isomedia/box_funcs.c:1747
#4 0x6a4f3e in stbl_dump isomedia/box_dump.c:379
#5 0x6c6e7d in gf_isom_box_dump_ex isomedia/box_funcs.c:1738
#6 0x6a370c in gf_isom_box_dump isomedia/box_dump.c:97
#7 0x6a370c in gf_isom_box_array_dump isomedia/box_dump.c:107
#8 0x6c6faf in gf_isom_box_dump_done isomedia/box_funcs.c:1747
#9 0x6aa69a in minf_dump isomedia/box_dump.c:1291
#10 0x6c6e7d in gf_isom_box_dump_ex isomedia/box_funcs.c:1738
#11 0x6a3937 in gf_isom_box_dump isomedia/box_dump.c:97
#12 0x6a3937 in gf_isom_dump isomedia/box_dump.c:139
#13 0x443b9a in dump_isom_xml /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/filedump.c:1930
#14 0x43246d in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4982
#15 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#16 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
0x60600000ee50 is located 16 bytes inside of 56-byte region [0x60600000ee40,0x60600000ee78)
freed by thread T0 here:
#0 0x7ffff6f022ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x6c393f in gf_isom_box_del isomedia/box_funcs.c:1508
previously allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xae2b8d in stco_New isomedia/box_code_base.c:5616
SUMMARY: AddressSanitizer: heap-use-after-free isomedia/box_funcs.c:1734 gf_isom_box_dump_ex
Shadow bytes around the buggy address:
0x0c0c7fff9d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9d90: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff9da0: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
0x0c0c7fff9db0: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00
=>0x0c0c7fff9dc0: 00 00 00 04 fa fa fa fa fd fd[fd]fd fd fd fd fa
0x0c0c7fff9dd0: fa fa fa fa 00 00 00 00 00 00 00 04 fa fa fa fa
0x0c0c7fff9de0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
0x0c0c7fff9df0: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9e10: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==27857==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: heap-use-after-free in gf_isom_box_dump_ex isomedia/box_funcs.c:1734 | https://api.github.com/repos/gpac/gpac/issues/1333/comments | 4 | 2019-11-09T11:21:05Z | 2020-01-16T22:33:39Z | https://github.com/gpac/gpac/issues/1333 | 520,394,786 | 1,333 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-gf_isom_box_del
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_isom_box_del
gdb info:
```C
Error in /bin/MP4Box: free(): invalid next size (fast): 0x00000000009cc5a0
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ffff73447e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ffff734d37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ffff735153c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ffff72ed830]
======= Memory map: ========
009c8000-009ec000 rw-p 00000000 00:00 0 [heap]
7ffff0000000-7ffff0021000 rw-p 00000000 00:00 0
7ffff0021000-7ffff4000000 ---p 00000000 00:00 0
7ffff70b7000-7ffff70cd000 r-xp 00000000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff70cd000-7ffff72cc000 ---p 00016000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cc000-7ffff72cd000 rw-p 00015000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cd000-7ffff748d000 r-xp 00000000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff748d000-7ffff768d000 ---p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff768d000-7ffff7691000 r--p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7691000-7ffff7693000 rw-p 001c4000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7693000-7ffff7697000 rw-p 00000000 00:00 0
7ffff7697000-7ffff76b0000 r-xp 00000000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff76b0000-7ffff78af000 ---p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78af000-7ffff78b0000 r--p 00018000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b0000-7ffff78b1000 rw-p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b1000-7ffff79b9000 r-xp 00000000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff79b9000-7ffff7bb8000 ---p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb8000-7ffff7bb9000 r--p 00107000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb9000-7ffff7bba000 rw-p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bba000-7ffff7bd2000 r-xp 00000000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7bd2000-7ffff7dd1000 ---p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd1000-7ffff7dd2000 r--p 00017000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd2000-7ffff7dd3000 rw-p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd3000-7ffff7dd7000 rw-p 00000000 00:00 0
7ffff7dd7000-7ffff7dfd000 r-xp 00000000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7fdf000-7ffff7fe4000 rw-p 00000000 00:00 0
7ffff7ff7000-7ffff7ff8000 rw-p 00000000 00:00 0
7ffff7ff8000-7ffff7ffa000 r--p 00000000 00:00 0 [vvar]
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00025000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffd000-7ffff7ffe000 rw-p 00026000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Program received signal SIGABRT, Aborted.
0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff730402a in __GI_abort () at abort.c:89
#2 0x00007ffff73447ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff745ded8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff734d37a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7ffff745df50 "free(): invalid next size (fast)", action=3) at malloc.c:5006
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5 0x00007ffff735153c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6 0x0000000000512a7d in gf_isom_box_del ()
#7 0x0000000000513810 in gf_isom_box_parse_ex.constprop ()
#8 0x0000000000513e15 in gf_isom_parse_root_box ()
#9 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#10 0x000000000051c48c in gf_isom_open_file ()
#11 0x000000000041c082 in mp4boxMain ()
#12 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#13 0x000000000040eba9 in _start ()
```
ASAN info:
```C
ASAN:SIGSEGV
=================================================================
==27733==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000006c3869 bp 0x60200000eff0 sp 0x7fffffff8560 T0)
#0 0x6c3868 in gf_isom_box_del isomedia/box_funcs.c:1500
#1 0x6c3a06 in gf_isom_box_array_del isomedia/box_funcs.c:270
#2 0x6dce18 in gf_isom_delete_movie isomedia/isom_intern.c:657
#3 0x6dd32b in gf_isom_open_file isomedia/isom_intern.c:624
#4 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#5 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#6 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/box_funcs.c:1500 gf_isom_box_del
==27733==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
asan
```
[33m[iso file] Movie fragment but no moov (yet) - possibly broken parsing!
[0m[31m[isom] not enough bytes in box tenc: 0 left, reading 139 (file isomedia/box_code_drm.c, line 1001)
[0m[31m[iso file] Read Box "tenc" (start 8) failed (Invalid IsoMedia File) - skipping
[0mASAN:SIGSEGV
=================================================================
==7918==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000006c45d9 bp 0x60200000eff0 sp 0x7fffffff8530 T0)
#0 0x6c45d8 in gf_isom_box_del isomedia/box_funcs.c:1501
#1 0x6c4776 in gf_isom_box_array_del isomedia/box_funcs.c:270
#2 0x6de7d8 in gf_isom_delete_movie isomedia/isom_intern.c:657
#3 0x6deceb in gf_isom_open_file isomedia/isom_intern.c:624
#4 0x42f93d in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_1de1f8d-0.9/applications/mp4box/main.c:4789
#5 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#6 0x41e278 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan_1de1f8d-0.9/bin/MP4Box+0x41e278)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/box_funcs.c:1501 gf_isom_box_del
```
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com)
asan:
```
==23293==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000eeb8 at pc 0x0000006d2f36 bp 0x7ffc000b4c30 sp 0x7ffc000b4c20
READ of size 8 at 0x60600000eeb8 thread T0
#0 0x6d2f35 in gf_isom_box_del isomedia/box_funcs.c:1501
#1 0x6d2e5e in gf_isom_box_array_del isomedia/box_funcs.c:270
#2 0x6d2e5e in gf_isom_box_del isomedia/box_funcs.c:1517
#3 0x6d2e5e in gf_isom_box_array_del isomedia/box_funcs.c:270
#4 0x6d2e5e in gf_isom_box_del isomedia/box_funcs.c:1517
#5 0x6d2e5e in gf_isom_box_array_del isomedia/box_funcs.c:270
#6 0x6d2e5e in gf_isom_box_del isomedia/box_funcs.c:1517
#7 0x6d2e5e in gf_isom_box_array_del isomedia/box_funcs.c:270
#8 0x6d2e5e in gf_isom_box_del isomedia/box_funcs.c:1517
#9 0x6d4300 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1422
#10 0xb17c35 in moov_Read isomedia/box_code_base.c:3745
#11 0x6d4817 in gf_isom_box_read isomedia/box_funcs.c:1529
#12 0x6d4817 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#13 0x6d51c7 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#14 0x6eb4fb in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#15 0x6ee2a2 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#16 0x6ee2a2 in gf_isom_open_file isomedia/isom_intern.c:615
#17 0x431899 in mp4boxMain /home/aota05/yyp/fuzzsequence/test/gpac_4c19ae5/SRC_asan/applications/mp4box/main.c:4789
#18 0x7f49dcbd882f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#19 0x41f648 in _start (/home/aota05/yyp/fuzzsequence/test/gpac_4c19ae5/SRC_asan/build/bin/MP4Box+0x41f648)
0x60600000eeb8 is located 24 bytes inside of 56-byte region [0x60600000eea0,0x60600000eed8)
freed by thread T0 here:
#0 0x7f49dd75a2ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x6d2ea7 in gf_isom_box_del isomedia/box_funcs.c:1509
#2 0xb052ef in stbl_AddBox isomedia/box_code_base.c:5314
#3 0x6d3f11 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1472
#4 0xb1d707 in stbl_Read isomedia/box_code_base.c:5381
#5 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#6 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#7 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#8 0xb1701a in minf_Read isomedia/box_code_base.c:3500
#9 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#10 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#11 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#12 0xb15187 in mdia_Read isomedia/box_code_base.c:3021
#13 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#14 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#15 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#16 0xb249cd in trak_Read isomedia/box_code_base.c:7134
#17 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#18 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#19 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#20 0xb17c35 in moov_Read isomedia/box_code_base.c:3745
#21 0x6d4817 in gf_isom_box_read isomedia/box_funcs.c:1529
#22 0x6d4817 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#23 0x6d51c7 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#24 0x6eb4fb in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#25 0x6ee2a2 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#26 0x6ee2a2 in gf_isom_open_file isomedia/isom_intern.c:615
#27 0x431899 in mp4boxMain /home/aota05/yyp/fuzzsequence/test/gpac_4c19ae5/SRC_asan/applications/mp4box/main.c:4789
#28 0x7f49dcbd882f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
previously allocated by thread T0 here:
#0 0x7f49dd75a602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xb1e93d in stco_New isomedia/box_code_base.c:5616
#2 0x6d28d8 in gf_isom_box_new_ex isomedia/box_funcs.c:1385
#3 0x6d31ae in gf_isom_box_parse_ex isomedia/box_funcs.c:182
#4 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#5 0xb1d707 in stbl_Read isomedia/box_code_base.c:5381
#6 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#7 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#8 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#9 0xb1701a in minf_Read isomedia/box_code_base.c:3500
#10 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#11 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#12 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#13 0xb15187 in mdia_Read isomedia/box_code_base.c:3021
#14 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#15 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#16 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#17 0xb249cd in trak_Read isomedia/box_code_base.c:7134
#18 0x6d333e in gf_isom_box_read isomedia/box_funcs.c:1529
#19 0x6d333e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#20 0x6d3e2a in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#21 0xb17c35 in moov_Read isomedia/box_code_base.c:3745
#22 0x6d4817 in gf_isom_box_read isomedia/box_funcs.c:1529
#23 0x6d4817 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#24 0x6d51c7 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#25 0x6eb4fb in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#26 0x6ee2a2 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#27 0x6ee2a2 in gf_isom_open_file isomedia/isom_intern.c:615
#28 0x431899 in mp4boxMain /home/aota05/yyp/fuzzsequence/test/gpac_4c19ae5/SRC_asan/applications/mp4box/main.c:4789
#29 0x7f49dcbd882f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
``` | AddressSanitizer: NULL pointer dereference (use-after-free ) in gf_isom_box_del isomedia/box_funcs.c:1500 | https://api.github.com/repos/gpac/gpac/issues/1332/comments | 2 | 2019-11-09T11:19:52Z | 2022-01-26T08:36:22Z | https://github.com/gpac/gpac/issues/1332 | 520,394,510 | 1,332 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-gf_isom_dump
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_isom_dump
gdb info:
```C
Error in bin/MP4Box: free(): invalid next size (fast): 0x00000000009cc600
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ffff73447e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ffff734d37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ffff735153c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ffff72ed830]
======= Memory map: ========
009c8000-009ec000 rw-p 00000000 00:00 0 [heap]
7ffff0000000-7ffff0021000 rw-p 00000000 00:00 0
7ffff0021000-7ffff4000000 ---p 00000000 00:00 0
7ffff70b7000-7ffff70cd000 r-xp 00000000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff70cd000-7ffff72cc000 ---p 00016000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cc000-7ffff72cd000 rw-p 00015000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cd000-7ffff748d000 r-xp 00000000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff748d000-7ffff768d000 ---p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff768d000-7ffff7691000 r--p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7691000-7ffff7693000 rw-p 001c4000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7693000-7ffff7697000 rw-p 00000000 00:00 0
7ffff7697000-7ffff76b0000 r-xp 00000000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff76b0000-7ffff78af000 ---p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78af000-7ffff78b0000 r--p 00018000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b0000-7ffff78b1000 rw-p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b1000-7ffff79b9000 r-xp 00000000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff79b9000-7ffff7bb8000 ---p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb8000-7ffff7bb9000 r--p 00107000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb9000-7ffff7bba000 rw-p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bba000-7ffff7bd2000 r-xp 00000000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7bd2000-7ffff7dd1000 ---p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd1000-7ffff7dd2000 r--p 00017000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd2000-7ffff7dd3000 rw-p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd3000-7ffff7dd7000 rw-p 00000000 00:00 0
7ffff7dd7000-7ffff7dfd000 r-xp 00000000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7fdf000-7ffff7fe4000 rw-p 00000000 00:00 0
7ffff7ff7000-7ffff7ff8000 rw-p 00000000 00:00 0
7ffff7ff8000-7ffff7ffa000 r--p 00000000 00:00 0 [vvar]
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00025000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffd000-7ffff7ffe000 rw-p 00026000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Program received signal SIGABRT, Aborted.
0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff730402a in __GI_abort () at abort.c:89
#2 0x00007ffff73447ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff745ded8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff734d37a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7ffff745df50 "free(): invalid next size (fast)", action=3) at malloc.c:5006
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5 0x00007ffff735153c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6 0x0000000000512a7d in gf_isom_box_del ()
#7 0x0000000000513eae in gf_isom_parse_root_box ()
#8 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#9 0x000000000051c48c in gf_isom_open_file ()
#10 0x000000000041c082 in mp4boxMain ()
#11 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe328, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe318) at ../csu/libc-start.c:291
#12 0x000000000040eba9 in _start ()
```
ASAN info:
```C
[33m[iso file] Movie fragment but no moov (yet) - possibly broken parsing!
[0m[33m[iso file] Box "tenc" (start 8) has 389 extra bytes
[0m[32m[iso file] Unknown top-level box type ffff
[0m[31m[iso file] Incomplete box ffff - start 532 size 1717986903
[0m[31m[iso file] Incomplete file while reading for dump - aborting parsing
[0m
ASAN:SIGSEGV
=================================================================
==26000==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000006a3968 bp 0x61600000ea80 sp 0x7fffffff8080 T0)
#0 0x6a3967 in gf_isom_dump isomedia/box_dump.c:133
#1 0x443b9a in dump_isom_xml /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/filedump.c:1930
#2 0x43246d in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4982
#3 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/box_dump.c:133 gf_isom_dump
==26000==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: NULL pointer dereference in gf_isom_dump isomedia/box_dump.c:133 | https://api.github.com/repos/gpac/gpac/issues/1331/comments | 2 | 2019-11-09T11:18:44Z | 2020-01-08T12:44:45Z | https://github.com/gpac/gpac/issues/1331 | 520,394,250 | 1,331 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-senc_Parse
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-senc_Parse
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x00000000006e1112 in senc_Parse ()
(gdb) bt
#0 0x00000000006e1112 in senc_Parse ()
#1 0x000000000051b7b2 in gf_isom_parse_movie_boxes.part ()
#2 0x000000000051c48c in gf_isom_open_file ()
#3 0x000000000041c082 in mp4boxMain ()
#4 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe328, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe318) at ../csu/libc-start.c:291
#5 0x000000000040eba9 in _start ()
```
ASAN info:
```C
[32m[iso file] Unknown box type tfhd in parent moof
[0m[32m[iso file] Unknown box type mvhd in parent moof
[0m[33m[iso file] Box "tfhd" (start 561) has 68 extra bytes
[0m[33m[iso file] Box "tfhd" (start 653) has 594 extra bytes
[0m[33m[iso file] extra box tfhd found in traf, deleting
[0m[33m[iso file] Box "tfhd" (start 1275) has 68 extra bytes
[0m[32m[iso file] Unknown box type VOID in parent moof
[0m[33m[iso file] Box "tfhd" (start 1993) has 68 extra bytes
[0m[33m[iso file] Box "sgpd" (start 2085) has 373 extra bytes
[0m[33m[iso file] Box "traf" is larger than container box
[0m[33m[iso file] Box "moof" size 2056 (start 24) invalid (read 2675)
[0m[33m[iso file] Movie fragment but no moov (yet) - possibly broken parsing!
[0m[33m[isobmf] no moov found, cannot get cenc default info, assuming isEncrypted, IV size 16
[0m
ASAN:SIGSEGV
=================================================================
==27812==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000058 (pc 0x000000b0801d bp 0x000000000003 sp 0x7fffffff82c0 T0)
#0 0xb0801c in senc_Parse isomedia/box_code_drm.c:1378
#1 0x6dc006 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:407
#2 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#3 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#4 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#5 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#6 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/box_code_drm.c:1378 senc_Parse
==27812==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com)
| AddressSanitizer: NULL pointer dereference in senc_Parse isomedia/box_code_drm.c:1378 | https://api.github.com/repos/gpac/gpac/issues/1330/comments | 2 | 2019-11-09T11:17:12Z | 2020-01-08T12:44:20Z | https://github.com/gpac/gpac/issues/1330 | 520,393,923 | 1,330 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-trak_Read
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-trak_Read
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x0000000000505aee in stco_dump ()
(gdb) bt
#0 0x0000000000505aee in stco_dump ()
#1 0x0000000000514918 in gf_isom_box_dump_ex ()
#2 0x0000000000502e15 in gf_isom_box_array_dump ()
#3 0x00000000005149dc in gf_isom_box_dump_done ()
#4 0x0000000000503a1b in stbl_dump ()
#5 0x0000000000514918 in gf_isom_box_dump_ex ()
#6 0x0000000000502e15 in gf_isom_box_array_dump ()
#7 0x00000000005149dc in gf_isom_box_dump_done ()
#8 0x000000000050615d in minf_dump ()
#9 0x0000000000514918 in gf_isom_box_dump_ex ()
#10 0x0000000000502e15 in gf_isom_box_array_dump ()
#11 0x00000000005149dc in gf_isom_box_dump_done ()
#12 0x000000000050644d in mdia_dump ()
#13 0x0000000000514918 in gf_isom_box_dump_ex ()
#14 0x0000000000502e15 in gf_isom_box_array_dump ()
#15 0x00000000005149dc in gf_isom_box_dump_done ()
#16 0x000000000050435f in trak_dump ()
#17 0x0000000000514918 in gf_isom_box_dump_ex ()
#18 0x0000000000502e15 in gf_isom_box_array_dump ()
#19 0x00000000005149dc in gf_isom_box_dump_done ()
#20 0x000000000050337a in moov_dump ()
#21 0x0000000000514918 in gf_isom_box_dump_ex ()
#22 0x0000000000502f10 in gf_isom_dump ()
#23 0x0000000000425faa in dump_isom_xml ()
#24 0x000000000041c69a in mp4boxMain ()
#25 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe328, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe318) at ../csu/libc-start.c:291
#26 0x000000000040eba9 in _start ()
```
ASAN info:
```C
==27939==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000eea0 at pc 0x000000aea883 bp 0x7fffffff7f90 sp 0x7fffffff7f80
READ of size 4 at 0x60600000eea0 thread T0
#0 0xaea882 in trak_Read isomedia/box_code_base.c:7148
#1 0x6c3d6e in gf_isom_box_read isomedia/box_funcs.c:1528
#2 0x6c3d6e in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#3 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#4 0xadc064 in moov_Read isomedia/box_code_base.c:3745
#5 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#6 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#7 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#8 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#9 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#10 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#11 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#12 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#13 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
0x60600000eea0 is located 0 bytes inside of 56-byte region [0x60600000eea0,0x60600000eed8)
freed by thread T0 here:
#0 0x7ffff6f022ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x6c393f in gf_isom_box_del isomedia/box_funcs.c:1508
previously allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xae2b8d in stco_New isomedia/box_code_base.c:5616
SUMMARY: AddressSanitizer: heap-use-after-free isomedia/box_code_base.c:7148 trak_Read
Shadow bytes around the buggy address:
0x0c0c7fff9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9d90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9da0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0c7fff9db0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
0x0c0c7fff9dc0: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 04
=>0x0c0c7fff9dd0: fa fa fa fa[fd]fd fd fd fd fd fd fa fa fa fa fa
0x0c0c7fff9de0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
0x0c0c7fff9df0: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9e20: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==27939==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
asan
```
[33m[iso file] Box "stco" (start 817) has 142 extra bytes
[0m[33m[iso file] Track with no sample description box !
[0m=================================================================
==11412==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600000eea0 at pc 0x000000aee083 bp 0x7fffffff7f70 sp 0x7fffffff7f60
READ of size 4 at 0x60600000eea0 thread T0
#0 0xaee082 in trak_Read isomedia/box_code_base.c:7153
#1 0x6c4ade in gf_isom_box_read isomedia/box_funcs.c:1529
#2 0x6c4ade in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#3 0x6c552c in gf_isom_box_array_read_ex isomedia/box_funcs.c:1420
#4 0xadf844 in moov_Read isomedia/box_code_base.c:3745
#5 0x6c5e84 in gf_isom_box_read isomedia/box_funcs.c:1529
#6 0x6c5e84 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#7 0x6c66e4 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#8 0x6dc060 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#9 0x6decb3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#10 0x6decb3 in gf_isom_open_file isomedia/isom_intern.c:615
#11 0x42f93d in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_1de1f8d-0.9/applications/mp4box/main.c:4789
#12 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#13 0x41e278 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan_1de1f8d-0.9/bin/MP4Box+0x41e278)
0x60600000eea0 is located 0 bytes inside of 56-byte region [0x60600000eea0,0x60600000eed8)
freed by thread T0 here:
#0 0x7ffff6f022ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x6c46af in gf_isom_box_del isomedia/box_funcs.c:1509
previously allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xae636d in stco_New isomedia/box_code_base.c:5616
SUMMARY: AddressSanitizer: heap-use-after-free isomedia/box_code_base.c:7153 trak_Read
Shadow bytes around the buggy address:
0x0c0c7fff9d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9d90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9da0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
0x0c0c7fff9db0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
0x0c0c7fff9dc0: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 04
=>0x0c0c7fff9dd0: fa fa fa fa[fd]fd fd fd fd fd fd fa fa fa fa fa
0x0c0c7fff9de0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
0x0c0c7fff9df0: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0c7fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c7fff9e20: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==11412==ABORTING
```
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: heap-use-after-free in trak_Read isomedia/box_code_base.c:7153 | https://api.github.com/repos/gpac/gpac/issues/1329/comments | 2 | 2019-11-09T11:15:44Z | 2020-01-08T12:44:04Z | https://github.com/gpac/gpac/issues/1329 | 520,393,655 | 1,329 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-GF_IPMPX_AUTH_Delete
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-GF_IPMPX_AUTH_Delete
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
0x000000000056907e in gf_ipmpx_data_del ()
(gdb) bt
#0 0x000000000056907e in gf_ipmpx_data_del ()
#1 0x000000000056aa7c in gf_ipmpx_data_parse ()
#2 0x000000000056274a in gf_odf_read_ipmp ()
#3 0x000000000055a076 in gf_odf_parse_descriptor ()
#4 0x000000000056503b in gf_odf_desc_read ()
#5 0x00000000006ca7b4 in esds_Read ()
#6 0x00000000005137e1 in gf_isom_box_parse_ex.constprop ()
#7 0x0000000000513e15 in gf_isom_parse_root_box ()
#8 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#9 0x000000000051c48c in gf_isom_open_file ()
#10 0x000000000041c082 in mp4boxMain ()
#11 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#12 0x000000000040eba9 in _start ()
```
ASAN info:
```C
ASAN:SIGSEGV
=================================================================
==27770==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000000a (pc 0x0000007bacbf bp 0x00000000000a sp 0x7fffffff8020 T0)
#0 0x7bacbe in GF_IPMPX_AUTH_Delete odf/ipmpx_code.c:115
#1 0x7bacbe in delete_algo_list odf/ipmpx_code.c:363
#2 0x7bacbe in DelGF_IPMPX_MutualAuthentication odf/ipmpx_code.c:371
#3 0x7bacbe in gf_ipmpx_data_del odf/ipmpx_code.c:1853
#4 0x7bec88 in gf_ipmpx_data_parse odf/ipmpx_code.c:295
#5 0x7a9969 in gf_odf_read_ipmp odf/odf_code.c:2426
#6 0x795ce3 in gf_odf_parse_descriptor odf/descriptors.c:159
#7 0x7afc16 in gf_odf_desc_read odf/odf_codec.c:302
#8 0xad3fb3 in esds_Read isomedia/box_code_base.c:1256
#9 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#10 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#11 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#12 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#13 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#14 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#15 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#16 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#17 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV odf/ipmpx_code.c:115 GF_IPMPX_AUTH_Delete
==27770==ABORTING
```
Edit
---
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: heap-use-after-free in GF_IPMPX_AUTH_Delete odf/ipmpx_code.c:115 | https://api.github.com/repos/gpac/gpac/issues/1328/comments | 2 | 2019-11-09T11:14:15Z | 2020-01-08T12:43:51Z | https://github.com/gpac/gpac/issues/1328 | 520,393,299 | 1,328 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (latest master 00dfc93)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-new-gf_isom_box_parse_ex
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_isom_box_parse_ex
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/gpac-00dfc93-crashes/POC-new-gf_isom_box_parse_ex-2
For POC-new-gf_isom_box_parse_ex
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x6a06e81bf20d02) at malloc.c:2951
2951 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_free (mem=0x6a06e81bf20d02) at malloc.c:2951
#1 0x00000000006d4ab7 in reftype_del ()
#2 0x0000000000512a7d in gf_isom_box_del ()
#3 0x00000000005135fe in gf_isom_box_array_read_ex ()
#4 0x00000000005137e1 in gf_isom_box_parse_ex.constprop ()
#5 0x0000000000513e15 in gf_isom_parse_root_box ()
#6 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#7 0x000000000051c48c in gf_isom_open_file ()
#8 0x000000000041c082 in mp4boxMain ()
#9 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#10 0x000000000040eba9 in _start ()
```
For POC-new-gf_isom_box_parse_ex-2
gdb info:
```C
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x1c1c1c1c1c1c1c1c) at malloc.c:2951
2951 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_free (mem=0x1c1c1c1c1c1c1c1c) at malloc.c:2951
#1 0x00000000006d4ab7 in reftype_del ()
#2 0x0000000000512a7d in gf_isom_box_del ()
#3 0x00000000005135fe in gf_isom_box_array_read_ex ()
#4 0x00000000005137e1 in gf_isom_box_parse_ex.constprop ()
#5 0x0000000000513e15 in gf_isom_parse_root_box ()
#6 0x000000000051b4fe in gf_isom_parse_movie_boxes.part ()
#7 0x000000000051c48c in gf_isom_open_file ()
#8 0x000000000041c082 in mp4boxMain ()
#9 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:291
#10 0x000000000040eba9 in _start ()
```
For POC-new-gf_isom_box_parse_ex
ASAN info:
```C
==25783==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60400000df80 at pc 0x0000006c4392 bp 0x7fffffff8090 sp 0x7fffffff8080
WRITE of size 4 at 0x60400000df80 thread T0
#0 0x6c4391 in gf_isom_box_parse_ex isomedia/box_funcs.c:189
#1 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#2 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#3 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#4 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#5 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#6 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#7 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#8 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#9 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#10 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
0x60400000df80 is located 0 bytes to the right of 48-byte region [0x60400000df50,0x60400000df80)
allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xaec17d in reftype_New isomedia/box_code_base.c:7521
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/box_funcs.c:189 gf_isom_box_parse_ex
Shadow bytes around the buggy address:
0x0c087fff9ba0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9be0: fa fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00
=>0x0c087fff9bf0:[fa]fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff9c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c40: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==25783==ABORTING
```
For POC-new-gf_isom_box_parse_ex-2
```C
ASAN infoοΌ
==25917==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60400000e000 at pc 0x0000006c4392 bp 0x7fffffff8090 sp 0x7fffffff8080
WRITE of size 4 at 0x60400000e000 thread T0
#0 0x6c4391 in gf_isom_box_parse_ex isomedia/box_funcs.c:189
#1 0x6c47bc in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#2 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#3 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#4 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#5 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#6 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#7 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#8 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan_00dfc93/applications/mp4box/main.c:4767
#9 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#10 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
0x60400000e000 is located 0 bytes to the right of 48-byte region [0x60400000dfd0,0x60400000e000)
allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xaec17d in reftype_New isomedia/box_code_base.c:7521
SUMMARY: AddressSanitizer: heap-buffer-overflow isomedia/box_funcs.c:189 gf_isom_box_parse_ex
Shadow bytes around the buggy address:
0x0c087fff9bb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9be0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9bf0: fa fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00
=>0x0c087fff9c00:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff9c50: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==25917==ABORTING
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | ERROR: AddressSanitizer: heap-buffer-overflow in gf_isom_box_parse_ex isomedia/box_funcs.c:189 | https://api.github.com/repos/gpac/gpac/issues/1327/comments | 2 | 2019-11-09T11:12:14Z | 2020-01-08T12:43:37Z | https://github.com/gpac/gpac/issues/1327 | 520,392,881 | 1,327 |
[
"gpac",
"gpac"
] | Starting from a clean ubuntu, the following does not work:
```
./configure --static-mp4box --use-ffmpeg=no
In file included from filters/ff_rescale.c:26:0:
filters/ff_common.h:30:10: fatal error: libavformat/avformat.h: No such file or directory
#include <libavformat/avformat.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
../config.mak:141: recipe for target 'filters/ff_rescale.o' failed
make[1]: *** [filters/ff_rescale.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/root/gpac_public/src'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
``` | filters branch does not compile in static mp4box mode without ffmpeg | https://api.github.com/repos/gpac/gpac/issues/1326/comments | 1 | 2019-11-08T19:48:36Z | 2019-11-14T07:38:26Z | https://github.com/gpac/gpac/issues/1326 | 520,202,218 | 1,326 |
[
"gpac",
"gpac"
] | When I upgraded iOS13, I wrote MP4. This code suddenly had a problem, often caused by memory management problems. But it was very stable in ios12. I checked it and found that as long as I commented out WriteH264Nalu or WriteFrameToFile, There will be no problems. Can you help me see if there is memory management problem in these two pieces of code, if not, I can continue to find other places.
`
int CRecWriterMP4::WriteFrameToFile(unsigned char *pData, int nSize, bool bKey, long nTimeStamp)
{
if (m_TimeStamp == -1 && bKey)
{
m_TimeStamp = nTimeStamp;
}
if (m_TimeStamp != -1)
{
GF_ISOSample *pISOSample = gf_isom_sample_new();
pISOSample->IsRAP = (SAPType)bKey;
pISOSample->dataLength = nSize;
pISOSample->data = (char *)pData;
pISOSample->DTS = nTimeStamp - m_TimeStamp;
pISOSample->CTS_Offset = 0;
GF_Err gferr = gf_isom_add_sample(m_pFile, m_nTrackID, m_nStreamIndex, pISOSample);
if (gferr == -1)
{
pISOSample->DTS = nTimeStamp - m_TimeStamp + 1000 / (m_nFps * 2);
gf_isom_add_sample(m_pFile, m_nTrackID, m_nStreamIndex, pISOSample);
}
pISOSample->data = NULL;
pISOSample->dataLength = 0;
gf_isom_sample_del(&pISOSample);
pISOSample = NULL;
}
return TTX_S_OK;
}
int CRecWriterMP4::WriteH264Nalu(unsigned char **ppNaluData, int *pNaluLength)
{
m_nTrackID = gf_isom_new_track(m_pFile, 0, GF_ISOM_MEDIA_VISUAL, 1000);
gf_isom_set_track_enabled(m_pFile, m_nTrackID, 1);
GF_AVCConfig *pstAVCConfig = gf_odf_avc_cfg_new();
gf_isom_avc_config_new(m_pFile, m_nTrackID, pstAVCConfig, NULL, NULL, &m_nStreamIndex);
gf_isom_set_visual_info(m_pFile, m_nTrackID, m_nStreamIndex, m_nWidth, m_nHeight);
pstAVCConfig->configurationVersion = 1;
pstAVCConfig->AVCProfileIndication = ppNaluData[AF_NALU_SPS][1];
pstAVCConfig->profile_compatibility = ppNaluData[AF_NALU_SPS][2];
pstAVCConfig->AVCLevelIndication = ppNaluData[AF_NALU_SPS][3];
GF_AVCConfigSlot stAVCConfig[AF_NALU_MAX];
memset(stAVCConfig, 0, sizeof(stAVCConfig));
for (int i = 0; i < AF_NALU_MAX; i++)
{
if (i == AF_NALU_VPS)
continue;
stAVCConfig[i].size = pNaluLength[i];
stAVCConfig[i].data = (char *)ppNaluData[i];
if (i == AF_NALU_SPS)
{
gf_list_add(pstAVCConfig->sequenceParameterSets, &stAVCConfig[i]);
}
else if (i == AF_NALU_PPS)
{
gf_list_add(pstAVCConfig->pictureParameterSets, &stAVCConfig[i]);
}
}
gf_isom_avc_config_update(m_pFile, m_nTrackID, 1, pstAVCConfig);
pstAVCConfig->pictureParameterSets = NULL;
pstAVCConfig->sequenceParameterSets = NULL;
gf_odf_avc_cfg_del(pstAVCConfig);
pstAVCConfig = NULL;
return 0;
}
` | H264WriteMp4 File error in ios13 | https://api.github.com/repos/gpac/gpac/issues/1325/comments | 1 | 2019-11-08T10:49:10Z | 2019-11-11T06:39:05Z | https://github.com/gpac/gpac/issues/1325 | 519,945,564 | 1,325 |
[
"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 am trying to decrypt an audio file encrypted with the cbcs encryption scheme, it is eac3 / ec3 audio. I do have the correct key as i can decrypt the AC3 and AAC tracks however the eac3 track will not decrypt. they are all cbcs, I tried mp4decrypt from the bento4 axiom tools and after decryption the track still remained encrypted with no change.
the audio is segmented so the moov / initialization is supplied separately and the moof data fragments are separate also. I will link the initialization segment with a few moof fragments alongside the key below. I merged the moov / initialization fragment by using the linux cat command: cat init.mp4 $(ls -vx segment-*.mp4) > encrypted_audio.mp4.
This returned the file to decrypt, i checked its boxes with mp4dump and they seemed fine and were similar to the AC3 initialization as they were encrypted using the same key. I tried merging the AC3 initialization with the EAC3 segments however the same thing happened, it would not decrypt. From there i tried using mp4box and i passed it the command: mp4box.exe -decrypt crypt.xml encrypted_audio.mp4 -out decrypted_audio.mp4 and it returned this warning and error:
[iso file] Unknown box type dec3 in parent enca
[iso file] senc box without tenc, assuming MS smooth+piff
Error: I/O Error
the file isn't ism smooth or piff, it is known as mp41, mp42, isom and hlsf. the crypt.xml is also attached below. I don't know what is wrong with the file as i have tried everything i can, does anyone know what the issue could be?
crypt.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
-<GPACDRM type="cbcs">
-<CrypTrack saiSavedBox="senc" first_IV="0x00000000000000000000000000000001" IV_size="16" IsEncrypted="1" trackID="1">
<key value="0x33b54799efeae9dd0771313eca516e24" KID="00000000000000000000000000000000"/>
</CrypTrack>
</GPACDRM>
audios - https://mega.nz/#!fmZBCQLB!wmzCi_ZFU6GicFIFWO3JT6kiK4uxaXHjekQjS_w1yXI
crypt.xml - https://mega.nz/#!SqRHlAaK!lGRO3wZVw-g1yAcOLkaZolqxuxbiQQLio-pD6iTwkPw
Is there anything that can be done to decrypt the audio file?
| CBCS Encrypted Audio will not decrypt. senc without tenc box error assuming microsoft piff | https://api.github.com/repos/gpac/gpac/issues/1324/comments | 1 | 2019-11-04T14:34:40Z | 2019-11-27T23:27:31Z | https://github.com/gpac/gpac/issues/1324 | 517,192,475 | 1,324 |
[
"gpac",
"gpac"
] | Trying to demux sample mp4 for futher decoding and converting to cv::Mat gives me zero `bytesRead` in code modified from ['bmp4demux' ](https://github.com/gpac/gpac/blob/master/applications/testapps/bmp4demux/main.c) :
#include <iostream>
#include <boost/filesystem.hpp>
#include <gpac/internal/isomedia_dev.h>
#include <gpac/isomedia.h>
#include <gpac/bitstream.h>
void readVideo(const boost::filesystem::path& i_filename)
{
GF_ISOFile* movie = gf_isom_open(i_filename.string().c_str(), GF_ISOM_OPEN_READ, nullptr);
GF_Err err_open = gf_isom_last_error(movie);
if (err_open != 0)
std::cout << "open err " << err_open << std::endl;
GF_BitStream* bitstream = movie->movieFileMap->bs;
u64 bufSize = gf_bs_get_size(bitstream);
char* pDemuxedBuf = (char*)malloc(sizeof(char) * bufSize);
memset(pDemuxedBuf, 0, sizeof(sizeof(char) * bufSize));
u32 bytesRead = gf_bs_read_data(bitstream, pDemuxedBuf, bufSize);
if (bytesRead == 0 || pDemuxedBuf == nullptr)
std::cout << "nothing read\n";
gf_isom_close(movie);
}
int main() {
readVideo("name.mp4");
return 0;
}
Could you please tell me what am I doing wrong? | extracting bitstream | https://api.github.com/repos/gpac/gpac/issues/1323/comments | 6 | 2019-10-29T17:37:11Z | 2019-11-01T14:57:14Z | https://github.com/gpac/gpac/issues/1323 | 514,099,420 | 1,323 |
[
"gpac",
"gpac"
] | Tried two versions:
```
MP4Box - GPAC version 0.8.0-revrelease
(c) Telecom ParisTech 2000-2018 - Licence LGPL v2
GPAC Configuration: --disable-wx --disable-pulseaudio --prefix=/usr/local/Cellar/gpac/0.8.0_1 --mandir=/usr/local/Cellar/gpac/0.8.0_1/share/man --disable-x11
Features: GPAC_64_BITS GPAC_HAS_SSL
```
also present in older version
```
MP4Box - GPAC version 0.6.1-revrelease
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration: --disable-wx --disable-pulseaudio --prefix=/usr/local/Cellar/gpac/0.6.1 --mandir=/usr/local/Cellar/gpac/0.6.1/share/man --disable-x11
Features: GPAC_64_BITS GPAC_HAS_SSL
```
Using this command to create chaptered audio for iOS players:
`MP4Box input.m4a -itags cover=cover.jpg -lang eng -add chapters.ttxt:chap:name="Chapter Titles":dur=14002.160000 -add cover.jpg:name="Chapter Images":dur=14002.160000 -out output.m4a
`
All tracks should be the same duration (14002.16s = 3:53:22h), but output actually is longer, resulting in two minutes of silence after the actual audio track finishes.
```
ffprobe input.m4a
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.m4a':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
creation_time : 2019-10-28T15:43:32.000000Z
iTunSMPB : 00000000 00000840 000000E8 0000000024CE3AD8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Duration: 03:53:22.21, start: 0.047891, bitrate: 68 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 67 kb/s (default)
Metadata:
creation_time : 2019-10-28T15:43:32.000000Z
```
```
ffprobe output.m4a
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7feca700e000] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.m4a':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4A mp42isomM4V
creation_time : 2019-10-28T15:43:32.000000Z
Duration: 03:55:16.80, start: 0.000000, bitrate: 68 kb/s
Chapter #0:0: start 0.000000, end 2276.960000
Metadata:
title : Foo
Chapter #0:1: start 2276.960000, end 2324.800000
Metadata:
title : Foo
Chapter #0:2: start 2324.800000, end 3384.040000
Metadata:
title : Foo
Chapter #0:3: start 3384.040000, end 4233.960000
Metadata:
title : Foo
Chapter #0:4: start 4233.960000, end 5032.280000
Metadata:
title : Foo
Chapter #0:5: start 5032.280000, end 5776.360000
Metadata:
title : Foo
Chapter #0:6: start 5776.360000, end 6152.960000
Metadata:
title : Foo
Chapter #0:7: start 6152.960000, end 7168.040000
Metadata:
title : Foo
Chapter #0:8: start 7168.040000, end 7871.240000
Metadata:
title : Foo
Chapter #0:9: start 7871.240000, end 9151.880000
Metadata:
title : Foo
Chapter #0:10: start 9151.880000, end 9784.440000
Metadata:
title : Foo
Chapter #0:11: start 9784.440000, end 10185.960000
Metadata:
title : Foo
Chapter #0:12: start 10185.960000, end 10757.240000
Metadata:
title : Foo
Chapter #0:13: start 10757.240000, end 11107.200000
Metadata:
title : Foo
Chapter #0:14: start 11107.200000, end 11711.880000
Metadata:
title : Foo
Chapter #0:15: start 11711.880000, end 11768.040000
Metadata:
title : Foo
Chapter #0:16: start 11768.040000, end 13411.560000
Metadata:
title : Foo
Chapter #0:17: start 13411.560000, end 13664.080000
Metadata:
title : Foo
Chapter #0:18: start 13664.080000, end 13890.440000
Metadata:
title : Foo
Chapter #0:19: start 13890.440000, end 14116.800000
Metadata:
title : Foo
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 67 kb/s (default)
Metadata:
creation_time : 2019-10-28T15:43:32.000000Z
Stream #0:1(eng): Data: bin_data (tx3g / 0x67337874)
Metadata:
creation_time : 2019-10-28T15:50:43.000000Z
handler_name : Chapter Titles
Stream #0:2(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj444p(pc, bt470bg/unknown/unknown), 1400x1400, 0 kb/s, 0.0001 fps, 0.0001 tbr, 1k tbn, 1k tbc (default)
Metadata:
creation_time : 2019-10-28T15:50:43.000000Z
handler_name : Chapter Images
encoder : JPEG
Stream #0:3: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1400x1400, 90k tbr, 90k tbn, 90k tbc
Unsupported codec with id 100359 for input stream 1
```
timed text:
```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.1">
<TextStreamHeader width="0" height="0" layer="65535" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="1f 1f 1f 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Sans-Serif" fontID="1"></FontTableEntry>
</FontTable>
<TextBox top="0" left="0" bottom="0" right="0"></TextBox>
<Style styles="Bold " fontID="1" fontSize="18" color="0 0 0 ff"></Style>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000">Foo</TextSample>
<TextSample sampleTime="00:37:56.960">Foo</TextSample>
<TextSample sampleTime="00:38:44.800">Foo</TextSample>
<TextSample sampleTime="00:56:24.040">Foo</TextSample>
<TextSample sampleTime="01:10:33.960">Foo</TextSample>
<TextSample sampleTime="01:23:52.280">Foo</TextSample>
<TextSample sampleTime="01:36:16.360">Foo</TextSample>
<TextSample sampleTime="01:42:32.960">Foo</TextSample>
<TextSample sampleTime="01:59:28.040">Foo</TextSample>
<TextSample sampleTime="02:11:11.240">Foo</TextSample>
<TextSample sampleTime="02:32:31.880">Foo</TextSample>
<TextSample sampleTime="02:43:04.440">Foo</TextSample>
<TextSample sampleTime="02:49:45.960">Foo</TextSample>
<TextSample sampleTime="02:59:17.240">Foo</TextSample>
<TextSample sampleTime="03:05:07.200">Foo</TextSample>
<TextSample sampleTime="03:15:11.880">Foo</TextSample>
<TextSample sampleTime="03:16:08.040">Foo</TextSample>
<TextSample sampleTime="03:43:31.560">Foo</TextSample>
<TextSample sampleTime="03:47:44.080">Foo</TextSample>
<TextSample sampleTime="03:51:30.440">Foo</TextSample>
</TextStream>
``` | Audio Output adds silence at end of file - iOS Chapters - Timed Text | https://api.github.com/repos/gpac/gpac/issues/1322/comments | 1 | 2019-10-28T16:06:20Z | 2020-07-31T11:18:20Z | https://github.com/gpac/gpac/issues/1322 | 513,402,387 | 1,322 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (master 6ada10e)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-memory-leak
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/POC-memory-leak
ASAN info:
```C
==26273==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 80 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xad2eed in dinf_New isomedia/box_code_base.c:945
Indirect leak of 160 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
#1 0x46c43a in realloc_chain utils/list.c:622
#2 0x46c43a in gf_list_add utils/list.c:629
Indirect leak of 96 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xad1d0d in url_New isomedia/box_code_base.c:575
Indirect leak of 80 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0xad318d in dref_New isomedia/box_code_base.c:1005
Indirect leak of 32 byte(s) in 2 object(s) allocated from:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x46c27d in gf_list_new utils/list.c:602
SUMMARY: AddressSanitizer: 448 byte(s) leaked in 10 allocation(s).
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: a memory leak of dinf_New() | https://api.github.com/repos/gpac/gpac/issues/1321/comments | 2 | 2019-10-28T16:03:11Z | 2020-01-08T12:43:28Z | https://github.com/gpac/gpac/issues/1321 | 513,400,465 | 1,321 |
[
"gpac",
"gpac"
] | System info:
Ubuntu 16.04.6 LTS, X64, gcc 5.4.0, gpac (master 6ada10e)
Compile Command:
```
$ CC="gcc -fsanitize=address -g" CXX="g++ -fsanitize=address -g" ./configure --static-mp4box
$ make
```
Run Command:
```
$ MP4Box -diso -out /dev/null $POC-ReadGF_IPMPX_WatermarkingInit
```
POC file:
https://github.com/Clingto/POC/blob/master/gpac-MP4Box/POC-ReadGF_IPMPX_WatermarkingInit
ASAN info:
```C
==26293==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000efb1 at pc 0x7ffff6ef6904 bp 0x7fffffff7e90 sp 0x7fffffff7638
WRITE of size 40 at 0x60200000efb1 thread T0
#0 0x7ffff6ef6903 in __asan_memcpy (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c903)
#1 0x4709b5 in memcpy /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2 0x4709b5 in gf_bs_read_data utils/bitstream.c:461
#3 0x7bc40d in ReadGF_IPMPX_WatermarkingInit odf/ipmpx_code.c:1517
#4 0x7bc40d in GF_IPMPX_ReadData odf/ipmpx_code.c:2020
#5 0x7beab7 in gf_ipmpx_data_parse odf/ipmpx_code.c:293
#6 0x7a97c9 in gf_odf_read_ipmp odf/odf_code.c:2426
#7 0x795b43 in gf_odf_parse_descriptor odf/descriptors.c:159
#8 0x7afa76 in gf_odf_desc_read odf/odf_codec.c:302
#9 0xad3e13 in esds_Read isomedia/box_code_base.c:1256
#10 0x6c5114 in gf_isom_box_read isomedia/box_funcs.c:1528
#11 0x6c5114 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#12 0x6c5974 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#13 0x6da6a0 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#14 0x6dd2f3 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:194
#15 0x6dd2f3 in gf_isom_open_file isomedia/isom_intern.c:615
#16 0x42f88a in mp4boxMain /home/aota09/yyp/fuzzcompare/test/gpac/test-crash/build_asan/applications/mp4box/main.c:4767
#17 0x7ffff638082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#18 0x41e228 in _start (/home/aota09/yyp/fuzzcompare/test/gpac/test-crash/bin_asan/bin/MP4Box+0x41e228)
0x60200000efb1 is located 0 bytes to the right of 1-byte region [0x60200000efb0,0x60200000efb1)
allocated by thread T0 here:
#0 0x7ffff6f02602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7bc3bf in ReadGF_IPMPX_WatermarkingInit odf/ipmpx_code.c:1516
#2 0x7bc3bf in GF_IPMPX_ReadData odf/ipmpx_code.c:2020
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 __asan_memcpy
Shadow bytes around the buggy address:
0x0c047fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c047fff9df0: fa fa fa fa fa fa[01]fa fa fa 00 00 fa fa 00 00
0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff9e40: 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
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
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
==26293==ABORTING
```
gdb info:
```C
7ffff70cd000-7ffff72cc000 ---p 00016000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cc000-7ffff72cd000 rw-p 00015000 08:02 67633677 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff72cd000-7ffff748d000 r-xp 00000000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff748d000-7ffff768d000 ---p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff768d000-7ffff7691000 r--p 001c0000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7691000-7ffff7693000 rw-p 001c4000 08:02 67637542 /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7693000-7ffff7697000 rw-p 00000000 00:00 0
7ffff7697000-7ffff76b0000 r-xp 00000000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff76b0000-7ffff78af000 ---p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78af000-7ffff78b0000 r--p 00018000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b0000-7ffff78b1000 rw-p 00019000 08:02 67633774 /lib/x86_64-linux-gnu/libz.so.1.2.8
7ffff78b1000-7ffff79b9000 r-xp 00000000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff79b9000-7ffff7bb8000 ---p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb8000-7ffff7bb9000 r--p 00107000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bb9000-7ffff7bba000 rw-p 00108000 08:02 67637545 /lib/x86_64-linux-gnu/libm-2.23.so
7ffff7bba000-7ffff7bd2000 r-xp 00000000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7bd2000-7ffff7dd1000 ---p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd1000-7ffff7dd2000 r--p 00017000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd2000-7ffff7dd3000 rw-p 00018000 08:02 67637529 /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff7dd3000-7ffff7dd7000 rw-p 00000000 00:00 0
7ffff7dd7000-7ffff7dfd000 r-xp 00000000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7fe3000-7ffff7fe8000 rw-p 00000000 00:00 0
7ffff7ff7000-7ffff7ff8000 rw-p 00000000 00:00 0
7ffff7ff8000-7ffff7ffa000 r--p 00000000 00:00 0 [vvar]
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00025000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffd000-7ffff7ffe000 rw-p 00026000 08:02 67637528 /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Program received signal SIGABRT, Aborted.
0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7302428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff730402a in __GI_abort () at abort.c:89
#2 0x00007ffff73447ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff745ded8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff734d37a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7ffff745df50 "free(): invalid next size (fast)", action=3) at malloc.c:5006
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5 0x00007ffff735153c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6 0x0000000000568b82 in DelGF_IPMPX_OpaqueData (_p=<optimized out>) at odf/ipmpx_code.c:1205
#7 gf_ipmpx_data_del (_p=_p@entry=0x9cc760) at odf/ipmpx_code.c:1835
#8 0x00000000005624bd in gf_odf_del_ipmp (ipmp=0x9cc670) at odf/odf_code.c:2390
#9 0x000000000055a031 in gf_odf_parse_descriptor (bs=bs@entry=0x9cc610, desc=desc@entry=0x9cc578, desc_size=desc_size@entry=0x7fffffff9694) at odf/descriptors.c:176
#10 0x0000000000564f7b in gf_odf_desc_read (raw_desc=raw_desc@entry=0x9cc590 "\v@\377\377\377\377", descSize=descSize@entry=108, outDesc=outDesc@entry=0x9cc578) at odf/odf_codec.c:302
#11 0x00000000006ca6f4 in esds_Read (s=0x9cc550, bs=0x9cb460) at isomedia/box_code_base.c:1256
#12 0x00000000005137e1 in gf_isom_box_read (bs=0x9cb460, a=0x9cc550) at isomedia/box_funcs.c:1528
#13 gf_isom_box_parse_ex (outBox=outBox@entry=0x7fffffff9800, bs=bs@entry=0x9cb460, is_root_box=is_root_box@entry=GF_TRUE, parent_type=0) at isomedia/box_funcs.c:208
#14 0x0000000000513e15 in gf_isom_parse_root_box (outBox=outBox@entry=0x7fffffff9800, bs=0x9cb460, bytesExpected=bytesExpected@entry=0x7fffffff9850, progressive_mode=progressive_mode@entry=GF_FALSE) at isomedia/box_funcs.c:42
#15 0x000000000051b4fe in gf_isom_parse_movie_boxes (mov=mov@entry=0x9cb010, bytesMissing=bytesMissing@entry=0x7fffffff9850, progressive_mode=progressive_mode@entry=GF_FALSE) at isomedia/isom_intern.c:206
#16 0x000000000051c48c in gf_isom_parse_movie_boxes (progressive_mode=GF_FALSE, bytesMissing=0x7fffffff9850, mov=0x9cb010) at isomedia/isom_intern.c:194
#17 gf_isom_open_file (fileName=0x7fffffffe627 "./real-crashs/POC-ReadGF_IPMPX_WatermarkingInit", OpenMode=0, tmp_dir=0x0) at isomedia/isom_intern.c:615
#18 0x000000000041c082 in mp4boxMain (argc=<optimized out>, argv=<optimized out>) at main.c:4767
#19 0x00007ffff72ed830 in __libc_start_main (main=0x40eb70 <main>, argc=5, argv=0x7fffffffe358, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe348) at ../csu/libc-start.c:291
#20 0x000000000040eba9 in _start ()
```
---
Edit
This bug issue still exists in latest version 0.8.0: 4c19ae5 and 0.9.0: 1de1f8d
---
Addition: This bug was found with our fuzzer, which is based on AFL. Our fuzzer is developed by Yuanpingyu(cfenicey@gmail.com) γYanhao and Marsman1996(lqliuyuwei@outlook.com) | AddressSanitizer: heap-buffer-overflow in ReadGF_IPMPX_WatermarkingInit at ipmpx_code.c:1517 | https://api.github.com/repos/gpac/gpac/issues/1320/comments | 2 | 2019-10-28T15:50:52Z | 2020-01-08T12:43:16Z | https://github.com/gpac/gpac/issues/1320 | 513,392,746 | 1,320 |
[
"gpac",
"gpac"
] | Hi,
I always get when creating MOV files this warning from MP4Box 0.8.0. This is also true if the input (mp4/mov) contains valid colormatrix/trasfer/coefficients info
[ProRes] No color info present in visual track, defaulting to BT709
How to add the correct color info? is there a flag in MP4Box to do it? I Googled a lot but couldn't find anything
Thanks
| [ProRes] No color info present in visual track, defaulting to BT709 | https://api.github.com/repos/gpac/gpac/issues/1319/comments | 14 | 2019-10-21T05:41:35Z | 2021-01-26T17:54:43Z | https://github.com/gpac/gpac/issues/1319 | 509,742,280 | 1,319 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [yes ] I looked for a similar issue and couldn't find any.
- [ yes] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ yes] 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/
bug is like in https://github.com/gpac/gpac/issues/1249
but it's poc did not work with the newest version
however there still has bug
Tested in Ubuntu 19.04, 64bit, master(33b5e56)
compiled by gcc -g -fsanitize=address
Triggered by
$ MP4Box -info $POC
POC
[poc1.zip](https://github.com/gpac/gpac/files/3731959/poc1.zip)
asan output
```
root@ubuntu:/home/tim/gpac# ../fuzz/gpac/bin/gcc/MP4Box -info crashes/gfisom-signal56-0x1
[iso file] Unknown box type 029AD86D in parent sinf
[iso file] Box "UNKN" is larger than container box
[iso file] Box "sinf" size 80 (start 988) invalid (read 113)
[ODF] Not enough bytes (2) to read descriptor (size=1030)
[ODF] Error reading descriptor (tag 4 size 17): Invalid MPEG-4 Descriptor
[ODF] Not enough bytes (2) to read descriptor (size=1030)
[ODF] Error reading descriptor (tag 4 size 17): Invalid MPEG-4 Descriptor
[iso file] Incomplete box moof - start 2004 size 1455
[iso file] Incomplete file while reading for dump - aborting parsing
* Movie Info *
Timescale 90000 - 2 tracks
Computed Duration 00:00:00.000 - Indicated Duration 00:00:00.000
Fragmented File: yes - duration 00:00:05.589
0 fragments - 1 SegmentIndexes
File suitable for progressive download (moov before mdat)
File Brand iso5 - version 1
Compatible brands: avc1 iso5 dash
Created: GMT Wed Mar 26 00:20:53 2014
Modified: GMT Wed Mar 26 00:20:54 2014
File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0x20 - OD PL 0xff
Visual PL: Advanced Real Time Simple Profile @ Level 2 (0x92)
Audio PL: High Quality Audio Profile @ Level 2 (0x0f)
No streams included in root OD
iTunes Info:
Encoder Software: HandBrake 0.9.9 2013052900
1 UDTA types: meta (1)
Track # 1 Info - TrackID 1 - TimeScale 90000
Media Duration 00:00:00.000 - Indicated Duration 00:00:00.000
Media Info: Language "Undetermined (und)" - Type "vide:encv" - 0 samples
Fragmented track: 0 samples - Media Duration 00:00:00.000
Visual Info: width=560 height=320 (depth=24 bits)
Visual Track layout: x=0 y=0 width=560 height=320
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 560 x 320
AVC Info: 1 SPS - 1 PPS - Profile Baseline @ Level 3
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 560 x 320
Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
SPS#1 hash: 0029D23509203256BC9B020B95C56BEB288AEEBC
PPS#1 hash: B45CE09D3615D8C80B755072D5E3307FDF18CB4E
Self-synchronized
*Encrypted stream - unknown scheme 00000000
[ISOM Tools] Unknown protection scheme type 00000000
RFC6381 Codec Parameters: avc1.42C01E
All samples are sync
Track # 2 Info - TrackID 2 - TimeScale 48000
Media Duration 00:00:00.000 - Indicated Duration 00:00:00.000
Media Info: Language "English (eng)" - Type "soun:enca" - 0 samples
Fragmented track: 0 samples - Media Duration 00:00:00.000
1 UDTA types: name (1)
AddressSanitizer:DEADLYSIGNAL
=================================================================
==58521==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x55681c38f945 bp 0x611000000180 sp 0x7ffd2658f1c0 T0)
==58521==The signal is caused by a READ memory access.
==58521==Hint: address points to the zero page.
#0 0x55681c38f944 in GetESD isomedia/track.c:271
#1 0x55681c301cde in gf_isom_get_esd isomedia/isom_read.c:1125
#2 0x55681c0752c1 in DumpTrackInfo /home/tim/fuzz/gpac/applications/mp4box/filedump.c:2389
#3 0x55681c07e390 in DumpMovieInfo /home/tim/fuzz/gpac/applications/mp4box/filedump.c:3339
#4 0x55681c06054d in mp4boxMain /home/tim/fuzz/gpac/applications/mp4box/main.c:4977
#5 0x7fe83a1b0b6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
#6 0x55681c047a99 in _start (/home/tim/fuzz/gpac/bin/gcc/MP4Box+0x149a99)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV isomedia/track.c:271 in GetESD
```
| null-pointer reference in GetESD track.c:271 | https://api.github.com/repos/gpac/gpac/issues/1318/comments | 1 | 2019-10-16T00:57:16Z | 2019-11-18T16:10:58Z | https://github.com/gpac/gpac/issues/1318 | 507,554,541 | 1,318 |
[
"gpac",
"gpac"
] | Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
- [ yes] I looked for a similar issue and couldn't find any.
- [ yes] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ yes] 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/
Tested in Ubuntu 19.04, 64bit, master(33b5e56)
compiled by gcc -g -fsanitize=address
Triggered by
$ MP4Box -info $POC
POC
[poc.zip](https://github.com/gpac/gpac/files/3731925/poc.zip)
asan output
```
root@ubuntu:/home/tim/fuzz/gpac# ./bin/gcc/MP4Box -info ../../gpac/crashes/ftypi-out_of_bound-idx\:0x135e-0x0
[iso file] Unknown box type 0000BB80 in parent mp4a
=================================================================
==82509==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000001c0 at pc 0x55ba07a85e56 bp 0x7ffd7050ebf0 sp 0x7ffd7050ebe0
WRITE of size 4 at 0x6040000001c0 thread T0
#0 0x55ba07a85e55 in ReadGF_IPMPX_AddToolNotificationListener odf/ipmpx_code.c:1068
#1 0x55ba07a85e55 in GF_IPMPX_ReadData odf/ipmpx_code.c:1983
#2 0x55ba07a86357 in gf_ipmpx_data_parse odf/ipmpx_code.c:293
#3 0x55ba07a83dfa in ReadGF_IPMPX_MutualAuthentication odf/ipmpx_code.c:440
#4 0x55ba07a83dfa in GF_IPMPX_ReadData odf/ipmpx_code.c:1989
#5 0x55ba07a86357 in gf_ipmpx_data_parse odf/ipmpx_code.c:293
#6 0x55ba07a70dfe in gf_odf_read_ipmp odf/odf_code.c:2426
#7 0x55ba07a5cd62 in gf_odf_parse_descriptor odf/descriptors.c:159
#8 0x55ba07a772ca in gf_odf_desc_read odf/odf_codec.c:302
#9 0x55ba07e0532b in esds_Read isomedia/box_code_base.c:1256
#10 0x55ba079890e8 in gf_isom_box_read isomedia/box_funcs.c:1528
#11 0x55ba079890e8 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#12 0x55ba07e0d8d1 in audio_sample_entry_Read isomedia/box_code_base.c:4037
#13 0x55ba079890e8 in gf_isom_box_read isomedia/box_funcs.c:1528
#14 0x55ba079890e8 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#15 0x55ba07989bd0 in gf_isom_box_array_read_ex isomedia/box_funcs.c:1419
#16 0x55ba079890e8 in gf_isom_box_read isomedia/box_funcs.c:1528
#17 0x55ba079890e8 in gf_isom_box_parse_ex isomedia/box_funcs.c:208
#18 0x55ba07989846 in gf_isom_parse_root_box isomedia/box_funcs.c:42
#19 0x55ba0799f6b6 in gf_isom_parse_movie_boxes isomedia/isom_intern.c:206
#20 0x55ba079a234e in gf_isom_open_file isomedia/isom_intern.c:615
#21 0x55ba07709354 in mp4boxMain /home/tim/fuzz/gpac/applications/mp4box/main.c:4767
#22 0x7f7687a6fb6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
#23 0x55ba076f0a99 in _start (/home/tim/fuzz/gpac/bin/gcc/MP4Box+0x149a99)
0x6040000001c0 is located 0 bytes to the right of 48-byte region [0x604000000190,0x6040000001c0)
allocated by thread T0 here:
#0 0x7f7687f02448 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10c448)
#1 0x55ba07a80939 in NewGF_IPMPX_AddToolNotificationListener odf/ipmpx_code.c:1054
#2 0x55ba07a80939 in gf_ipmpx_data_new odf/ipmpx_code.c:1716
SUMMARY: AddressSanitizer: heap-buffer-overflow odf/ipmpx_code.c:1068 in ReadGF_IPMPX_AddToolNotificationListener
Shadow bytes around the buggy address:
0x0c087fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff8000: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff8010: fa fa 00 00 00 00 00 fa fa fa fd fd fd fd fd fd
0x0c087fff8020: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
=>0x0c087fff8030: fa fa 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
0x0c087fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8080: 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
==82509==ABORTING
```
| heap overflow in ReadGF_IPMPX_AddToolNotificationListener ipmpx_code.c:1068 | https://api.github.com/repos/gpac/gpac/issues/1317/comments | 1 | 2019-10-16T00:27:24Z | 2020-01-08T15:41:58Z | https://github.com/gpac/gpac/issues/1317 | 507,547,848 | 1,317 |
[
"gpac",
"gpac"
] |
[sample-001.zip](https://github.com/gpac/gpac/files/3724744/sample-001.zip)
My command line with latest GPAC version:
`MP4Box.exe -add "myVideo.h265#video:lang=eng -add "myAudio.m4a#audio:lang=eng -new "myContainer".mp4`
results in
> "No SPS or PPS found in the bitstream | nothing imported"
and
> "Bitstream not compliant"
Sample with raw h265 attached. Any help? Thanks. | "No SPS or PPS found in the bitstream" from adding raw h265 to MP4 container | https://api.github.com/repos/gpac/gpac/issues/1316/comments | 8 | 2019-10-14T13:58:22Z | 2019-10-18T16:29:49Z | https://github.com/gpac/gpac/issues/1316 | 506,671,493 | 1,316 |
[
"gpac",
"gpac"
] | `configure --enable-static-bin` returns lots of warnings when compiling such as:
```config.h:17:9: warning: 'GPAC_HAS_THEORA' macro redefined [-Wmacro-redefined]
#define GPAC_HAS_THEORA
^
<command line>:14:9: note: previous definition is here
#define GPAC_HAS_THEORA 1
config.h:18:9: warning: 'GPAC_HAS_LIBA52' macro redefined [-Wmacro-redefined]
#define GPAC_HAS_LIBA52
^
<command line>:6:9: note: previous definition is here
#define GPAC_HAS_LIBA52 1
^
```
and then fails to compile:
```
7 warnings generated.
7 warnings generated.
7 warnings generated.
make: *** [all] Error 2
``` | filters branch and enable-static-bin | https://api.github.com/repos/gpac/gpac/issues/1315/comments | 1 | 2019-10-08T08:21:11Z | 2019-11-14T07:37:06Z | https://github.com/gpac/gpac/issues/1315 | 503,898,583 | 1,315 |
[
"gpac",
"gpac"
] | On the filters branch, doing `./configure --static-mp4box` creates an mp4box build that produces the following messages on a basic import:
```Couldn't find any modules in standard path (app path /gpac_filters/bin/gcc/modules)
Couldn't find any modules in HOME path (app path /.gpac/modules)
Modules directories not found - check the "ModulesDirectory" key is set in the "Core" section
[Importer] Error probing file.265```
| static build of MP4Box in the filters branch gives unexpected messages | https://api.github.com/repos/gpac/gpac/issues/1314/comments | 1 | 2019-10-08T07:32:48Z | 2019-11-14T07:36:47Z | https://github.com/gpac/gpac/issues/1314 | 503,877,693 | 1,314 |
[
"gpac",
"gpac"
] | We applied our fuzzer for running `MP4Box -diso $FILE` against 57ffacc12 and detected several crashes or unexpected hangs. And these are reproducible on 203c6c0 (HEAD).
The corresponding files (specially, proof-of-crashes are associated with ASAN error messages) are available [here](https://github.com/ntu-sec/pocs/tree/master/gpac/57ffacc12).
| Multiple Crashes/Hangs | https://api.github.com/repos/gpac/gpac/issues/1313/comments | 3 | 2019-10-02T08:56:41Z | 2020-01-10T16:15:37Z | https://github.com/gpac/gpac/issues/1313 | 501,362,185 | 1,313 |
[
"gpac",
"gpac"
] | When running `mp4box -diso $FILE` where files are mp4 shared on https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95, it reports error messages like "cannot allocate *** bytes" error when binary is cmpiled with ASAN. With regular compilation, it segfaults.
[ALLOC_gpac.zip](https://github.com/gpac/gpac/files/3668683/ALLOC_gpac.zip)
(In case mediafire cannot share correctly; will remove this attachment if requested.)
| AddressSanitizer: failed to allocate memory | https://api.github.com/repos/gpac/gpac/issues/1312/comments | 4 | 2019-09-30T03:11:45Z | 2019-10-02T08:45:06Z | https://github.com/gpac/gpac/issues/1312 | 500,026,602 | 1,312 |
[
"gpac",
"gpac"
] | Hello,
I am trying to stream live event video from a connected input, and have the resulting live stream playable on iOS, Android, and Mac/Windows.
Right now the video stream plays fine on desktop using
`-vf avfoundation -vres 848x480 -v "Example Camera" -vfr 30 -live -pixf yuyv422 -conf dashcast.conf -live -v4l2f mjpeg -low-delay`
but Android and iOS do not load the video. I read somewhere that I need to split the stream into one that is M3u8/HLS.
Anyways, from reading the other issues here on GitHub, I see that DashCast is deprecated. Is there any drop in replacement for DashCast to achieve what I'm looking for?
[sample](https://github.com/behoyh/bottle-nose), I use cloud ssh to publish local ports externally for testing
- [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/
| Best Replacement for DashCast | https://api.github.com/repos/gpac/gpac/issues/1311/comments | 1 | 2019-09-23T08:54:41Z | 2019-09-23T09:19:05Z | https://github.com/gpac/gpac/issues/1311 | 496,970,746 | 1,311 |
[
"gpac",
"gpac"
] | I've checked out the latest version of the filters branch (Merge branch 'master' into filters) and compiled this on Ubuntu 14.04.In the top-level source directory I used the following command:
bin/gcc/gpac -i /tmp/a.svg compositor:fps=25:dur=4:osize=256x256 -o /tmp/a.mp4
The resulting mp4 does not show any respect to the defined clip-path attributes. Neither for
the static rectangle nor the animated circle.
I've attached the /tmp/a.svg and the resulting /tmp/a.mp4. | SVG clipPath is not honored | https://api.github.com/repos/gpac/gpac/issues/1310/comments | 5 | 2019-09-22T16:43:32Z | 2021-10-05T16:34:18Z | https://github.com/gpac/gpac/issues/1310 | 496,803,078 | 1,310 |
[
"gpac",
"gpac"
] | This test file (from #1257) has 10 chapters: https://test.michael-kaufmann.ch/test.mp4
After processing the file like this ...
```
mp4box.exe -new -add test.mp4 test2.mp4
```
... the second chapter is missing in the output file "test2.mp4". This can be verified with the tool [MediaInfo](https://mediaarea.net/en/MediaInfo):
```
Menu
ID : 3
Codec ID : text
Duration : 10 s 0 ms
Tagged date : UTC 2019-09-17 20:21:35
Menu For : 1,2
00:00:00.000 : Chapter 1
00:00:02.000 : Chapter 3
00:00:03.000 : Chapter 4
00:00:04.000 : Chapter 5
00:00:05.000 : Chapter 6
00:00:06.000 : Chapter 7
00:00:07.000 : Chapter 8
00:00:08.000 : Chapter 9
00:00:09.000 : Chapter 10
```
The original file test.mp4 has these chapters:
```
Menu #1
ID : 3
Codec ID : text
Duration : 10 s 0 ms
Language : English
Menu For : 1,2
00:00:00.000 : Chapter 1
00:00:01.000 : Chapter 2
00:00:02.000 : Chapter 3
00:00:03.000 : Chapter 4
00:00:04.000 : Chapter 5
00:00:05.000 : Chapter 6
00:00:06.000 : Chapter 7
00:00:07.000 : Chapter 8
00:00:08.000 : Chapter 9
00:00:09.000 : Chapter 10
```
mp4box version: [gpac-0.8.0-rev69-g5fe3ec12-master-win32.exe](https://download.tsi.telecom-paristech.fr/gpac/new_builds/win32/gpac-0.8.0-rev69-g5fe3ec12-master-win32.exe) | Second chapter in mp4 missing after processing with mp4box | https://api.github.com/repos/gpac/gpac/issues/1309/comments | 1 | 2019-09-17T20:32:59Z | 2019-09-30T10:12:37Z | https://github.com/gpac/gpac/issues/1309 | 494,837,739 | 1,309 |
[
"gpac",
"gpac"
] | I'm playing around with mp4box and I would like to create a batch file that would grab all the "sbtl:tx3g" timed text files from an .mp4 file, convert them to .srt and label the resulting .srt files something like [mp4filetitle].[subtitlelanguage].srt. Only a fraction of these .mp4 files will contain any timed text files, so I want the batch command to continue on even if it doesn't find a timed text file in a particular .mp4 file. Any suggestions would be appreciated. Thank you
| Batch command that will extract only timed text (sbtl:tx3g) format files and convert to .srt | https://api.github.com/repos/gpac/gpac/issues/1308/comments | 1 | 2019-09-07T01:27:55Z | 2019-11-18T16:30:18Z | https://github.com/gpac/gpac/issues/1308 | 490,575,802 | 1,308 |
[
"gpac",
"gpac"
] | I'm not sure where else to post my question so please forgive me if this is in the wrong forum.
I get a number of MP4 files, each with a single video track and multiple audio tracks (different languages). The track numbers for each file can differ. For example, on one source MP4 file, the video track may be Track #3 with the ENG audio track being Track #5. On another source file, the video track could be Track #4, with the ENG audio track being Track #3.
I am looking for a way to batch process hundreds of these files to retain only the video file and ENG language track, stripping-out all other information.
All examples I've seen require specifying track numbers. Instead of using track numbers, is there any way to add tracks by specifying some other consistent parameter such as "Media Info: Language "English" - Type "soun:mp4a"" for audio tracks, or "Type "vide:avc1"" for video tracks?
Thanks,
Petenun | Help - MP4Box Batch processing with differing track numbers | https://api.github.com/repos/gpac/gpac/issues/1307/comments | 1 | 2019-09-06T22:01:55Z | 2020-04-30T12:58:44Z | https://github.com/gpac/gpac/issues/1307 | 490,539,895 | 1,307 |
[
"gpac",
"gpac"
] | Hi,
sorry, if this question is misplaced, but the SF forums seems down, and point here.
Given a lot of SD and HD content, that was received by VDR from a satellite dish during the last decade, I looking for a method to rate those records.
Is gpac able to check such streams (VDR just saves the TS streams verbatim) and rate the quality and fitness of such streams, e.g. analyse stream failures (drop outs, inconsistencies, invalid framing of audio, video, and other streams)?
From the project description, it might fit. I'm currently using 0.8.0 on openSUSE Tumbleweed, but packaging/using current git is fine as well. | MPEG2 TS Stream fitness test with gpac | https://api.github.com/repos/gpac/gpac/issues/1305/comments | 1 | 2019-09-02T07:52:04Z | 2020-07-31T11:46:10Z | https://github.com/gpac/gpac/issues/1305 | 488,050,483 | 1,305 |
[
"gpac",
"gpac"
] | I want to Build GPAC for Windows and using GPAC_STATIC_MODULES optionοΌbut I get βerror LNK2001 gf_register_module_atsc_in". Please tell me how to fix this problem. Thanks!
| Build GPAC for Windows using GPAC_STATIC_MODULES | https://api.github.com/repos/gpac/gpac/issues/1304/comments | 1 | 2019-08-30T03:33:07Z | 2019-09-30T10:13:46Z | https://github.com/gpac/gpac/issues/1304 | 487,268,268 | 1,304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.