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 |
|---|---|---|---|---|---|---|---|---|---|
[
"python",
"cpython"
] | BPO | [400526](https://bugs.python.org/issue400526)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2456/None "Uploaded as text/plain at 2000-06-07.03:49:50 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-28.22:24:20.000>
created_at = <Date 2000-06-07.03:49:50.000>
labels = []
title = 'fix cPickle.c for 64-bit platforms (mainly Win64)'
updated_at = <Date 2000-06-28.22:24:20.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-28.22:24:20.000>
actor = 'gvanrossum'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:49:50.000>
creator = 'tmick'
dependencies = []
files = ['2456']
hgrepos = []
issue_num = 400526
keywords = ['patch']
message_count = 6.0
messages = ['32793', '32794', '32795', '32796', '32797', '32798']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400526'
versions = []
```
</p></details>
| fix cPickle.c for 64-bit platforms (mainly Win64) | https://api.github.com/repos/python/cpython/issues/32448/comments | 6 | 2000-06-07T03:49:50Z | 2022-04-09T20:52:21Z | https://github.com/python/cpython/issues/32448 | 1,198,767,650 | 32,448 |
[
"python",
"cpython"
] | BPO | [400525](https://bugs.python.org/issue400525)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2455/None "Uploaded as text/plain at 2000-06-07.03:45:01 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-07.04:03:47.000>
created_at = <Date 2000-06-07.03:45:01.000>
labels = []
title = 'simple 64-bit fixes in PC/ dir'
updated_at = <Date 2000-06-07.04:03:47.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.04:03:47.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:45:01.000>
creator = 'tmick'
dependencies = []
files = ['2455']
hgrepos = []
issue_num = 400525
keywords = ['patch']
message_count = 4.0
messages = ['32789', '32790', '32791', '32792']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400525'
versions = []
```
</p></details>
| simple 64-bit fixes in PC/ dir | https://api.github.com/repos/python/cpython/issues/32447/comments | 4 | 2000-06-07T03:45:01Z | 2022-04-09T20:52:20Z | https://github.com/python/cpython/issues/32447 | 1,198,767,644 | 32,447 |
[
"python",
"cpython"
] | BPO | [400524](https://bugs.python.org/issue400524)
--- | :---
Nosy | @gvanrossum, @tim-one
Files | <li>[None](https://bugs.python.org/file2454/None "Uploaded as text/plain at 2000-06-07.03:44:49 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-28.06:46:52.000>
created_at = <Date 2000-06-07.03:44:49.000>
labels = []
title = 'simple 64-bit fixes in Python/ dir'
updated_at = <Date 2000-06-28.06:46:52.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-28.06:46:52.000>
actor = 'tim.peters'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:44:49.000>
creator = 'tmick'
dependencies = []
files = ['2454']
hgrepos = []
issue_num = 400524
keywords = ['patch']
message_count = 6.0
messages = ['32783', '32784', '32785', '32786', '32787', '32788']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'tim.peters', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400524'
versions = []
```
</p></details>
| simple 64-bit fixes in Python/ dir | https://api.github.com/repos/python/cpython/issues/32446/comments | 6 | 2000-06-07T03:44:49Z | 2022-04-09T20:52:18Z | https://github.com/python/cpython/issues/32446 | 1,198,767,639 | 32,446 |
[
"python",
"cpython"
] | BPO | [400523](https://bugs.python.org/issue400523)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2453/None "Uploaded as text/plain at 2000-06-07.03:44:03 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-07.04:03:40.000>
created_at = <Date 2000-06-07.03:44:03.000>
labels = []
title = 'simple 64-bit fixes in Parser/ dir'
updated_at = <Date 2000-06-07.04:03:40.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.04:03:40.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:44:03.000>
creator = 'tmick'
dependencies = []
files = ['2453']
hgrepos = []
issue_num = 400523
keywords = ['patch']
message_count = 4.0
messages = ['32779', '32780', '32781', '32782']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400523'
versions = []
```
</p></details>
| simple 64-bit fixes in Parser/ dir | https://api.github.com/repos/python/cpython/issues/32445/comments | 4 | 2000-06-07T03:44:03Z | 2022-04-09T20:52:17Z | https://github.com/python/cpython/issues/32445 | 1,198,767,636 | 32,445 |
[
"python",
"cpython"
] | BPO | [400522](https://bugs.python.org/issue400522)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2452/None "Uploaded as text/plain at 2000-06-07.03:43:42 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-07.04:03:41.000>
created_at = <Date 2000-06-07.03:43:42.000>
labels = []
title = 'simple 64-bit fixes in Objects/ dir'
updated_at = <Date 2000-06-07.04:03:41.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.04:03:41.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:43:42.000>
creator = 'tmick'
dependencies = []
files = ['2452']
hgrepos = []
issue_num = 400522
keywords = ['patch']
message_count = 4.0
messages = ['32775', '32776', '32777', '32778']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400522'
versions = []
```
</p></details>
| simple 64-bit fixes in Objects/ dir | https://api.github.com/repos/python/cpython/issues/32444/comments | 4 | 2000-06-07T03:43:42Z | 2022-04-09T20:52:16Z | https://github.com/python/cpython/issues/32444 | 1,198,767,635 | 32,444 |
[
"python",
"cpython"
] | BPO | [400521](https://bugs.python.org/issue400521)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2451/None "Uploaded as text/plain at 2000-06-07.03:43:15 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-07.04:03:33.000>
created_at = <Date 2000-06-07.03:43:15.000>
labels = []
title = 'simple 64-bit fixes in Modules/ dir'
updated_at = <Date 2000-06-07.04:03:33.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.04:03:33.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:43:15.000>
creator = 'tmick'
dependencies = []
files = ['2451']
hgrepos = []
issue_num = 400521
keywords = ['patch']
message_count = 4.0
messages = ['32771', '32772', '32773', '32774']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400521'
versions = []
```
</p></details>
| simple 64-bit fixes in Modules/ dir | https://api.github.com/repos/python/cpython/issues/32443/comments | 4 | 2000-06-07T03:43:15Z | 2022-04-09T20:52:15Z | https://github.com/python/cpython/issues/32443 | 1,198,767,631 | 32,443 |
[
"python",
"cpython"
] | BPO | [400519](https://bugs.python.org/issue400519)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2450/None "Uploaded as text/plain at 2000-06-07.03:21:17 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-07.03:26:12.000>
created_at = <Date 2000-06-07.03:21:17.000>
labels = []
title = 'fix possible overflow in select()'
updated_at = <Date 2000-06-07.03:26:12.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.03:26:12.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:21:17.000>
creator = 'tmick'
dependencies = []
files = ['2450']
hgrepos = []
issue_num = 400519
keywords = ['patch']
message_count = 3.0
messages = ['32768', '32769', '32770']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400519'
versions = []
```
</p></details>
| fix possible overflow in select() | https://api.github.com/repos/python/cpython/issues/32442/comments | 3 | 2000-06-07T03:21:17Z | 2022-04-09T20:52:14Z | https://github.com/python/cpython/issues/32442 | 1,198,767,626 | 32,442 |
[
"python",
"cpython"
] | BPO | [400518](https://bugs.python.org/issue400518)
--- | :---
Nosy | @gvanrossum
Files | <li>[None](https://bugs.python.org/file2449/None "Uploaded as text/plain at 2000-06-07.03:21:01 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2000-06-28.21:19:40.000>
created_at = <Date 2000-06-07.03:21:01.000>
labels = []
title = 'fix bltinmodule.c for 64-bit platforms'
updated_at = <Date 2000-06-28.21:19:40.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-28.21:19:40.000>
actor = 'tmick'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:21:01.000>
creator = 'tmick'
dependencies = []
files = ['2449']
hgrepos = []
issue_num = 400518
keywords = ['patch']
message_count = 7.0
messages = ['32761', '32762', '32763', '32764', '32765', '32766', '32767']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400518'
versions = []
```
</p></details>
| fix bltinmodule.c for 64-bit platforms | https://api.github.com/repos/python/cpython/issues/32441/comments | 7 | 2000-06-07T03:21:01Z | 2022-04-09T20:52:13Z | https://github.com/python/cpython/issues/32441 | 1,198,767,621 | 32,441 |
[
"python",
"cpython"
] | BPO | [400517](https://bugs.python.org/issue400517)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2448/None "Uploaded as text/plain at 2000-06-07.03:16:55 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-30.18:05:23.000>
created_at = <Date 2000-06-07.03:16:55.000>
labels = []
title = 'fix up msvcrtmodule.c and winreg.c for Win64'
updated_at = <Date 2000-06-30.18:05:23.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-30.18:05:23.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:16:55.000>
creator = 'tmick'
dependencies = []
files = ['2448']
hgrepos = []
issue_num = 400517
keywords = ['patch']
message_count = 6.0
messages = ['32755', '32756', '32757', '32758', '32759', '32760']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400517'
versions = []
```
</p></details>
| fix up msvcrtmodule.c and winreg.c for Win64 | https://api.github.com/repos/python/cpython/issues/32440/comments | 6 | 2000-06-07T03:16:55Z | 2022-04-09T20:52:12Z | https://github.com/python/cpython/issues/32440 | 1,198,767,617 | 32,440 |
[
"python",
"cpython"
] | BPO | [400516](https://bugs.python.org/issue400516)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2447/None "Uploaded as text/plain at 2000-06-07.03:16:45 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-30.02:47:05.000>
created_at = <Date 2000-06-07.03:16:45.000>
labels = []
title = 'fix socket module for 64-bits (mostly Win64)'
updated_at = <Date 2000-06-30.02:47:05.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-30.02:47:05.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:16:45.000>
creator = 'tmick'
dependencies = []
files = ['2447']
hgrepos = []
issue_num = 400516
keywords = ['patch']
message_count = 5.0
messages = ['32750', '32751', '32752', '32753', '32754']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400516'
versions = []
```
</p></details>
| fix socket module for 64-bits (mostly Win64) | https://api.github.com/repos/python/cpython/issues/32439/comments | 5 | 2000-06-07T03:16:45Z | 2022-04-09T20:52:12Z | https://github.com/python/cpython/issues/32439 | 1,198,767,609 | 32,439 |
[
"python",
"cpython"
] | BPO | [400515](https://bugs.python.org/issue400515)
--- | :---
Nosy | @gvanrossum, @tim-one, @akuchling
Files | <li>[None](https://bugs.python.org/file2446/None "Uploaded as text/plain at 2000-06-07.03:08:54 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/akuchling'
closed_at = <Date 2000-06-28.07:03:19.000>
created_at = <Date 2000-06-07.03:08:54.000>
labels = []
title = 'fix mmap module (broken seek, 64-bit stuff, overflows)'
updated_at = <Date 2000-06-28.07:03:19.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-28.07:03:19.000>
actor = 'tim.peters'
assignee = 'akuchling'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:08:54.000>
creator = 'tmick'
dependencies = []
files = ['2446']
hgrepos = []
issue_num = 400515
keywords = ['patch']
message_count = 7.0
messages = ['32743', '32744', '32745', '32746', '32747', '32748', '32749']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'akuchling', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400515'
versions = []
```
</p></details>
| fix mmap module (broken seek, 64-bit stuff, overflows) | https://api.github.com/repos/python/cpython/issues/32438/comments | 7 | 2000-06-07T03:08:54Z | 2022-04-09T20:52:10Z | https://github.com/python/cpython/issues/32438 | 1,198,767,606 | 32,438 |
[
"python",
"cpython"
] | BPO | [400514](https://bugs.python.org/issue400514)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2445/None "Uploaded as text/plain at 2000-06-07.03:07:34 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-29.21:33:02.000>
created_at = <Date 2000-06-07.03:07:34.000>
labels = []
title = 'fix Sleep() overflow condition in time module'
updated_at = <Date 2000-06-29.21:33:02.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-29.21:33:02.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:07:34.000>
creator = 'tmick'
dependencies = []
files = ['2445']
hgrepos = []
issue_num = 400514
keywords = ['patch']
message_count = 6.0
messages = ['32737', '32738', '32739', '32740', '32741', '32742']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400514'
versions = []
```
</p></details>
| fix Sleep() overflow condition in time module | https://api.github.com/repos/python/cpython/issues/32437/comments | 6 | 2000-06-07T03:07:34Z | 2022-04-09T20:52:10Z | https://github.com/python/cpython/issues/32437 | 1,198,767,604 | 32,437 |
[
"python",
"cpython"
] | BPO | [400513](https://bugs.python.org/issue400513)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2444/None "Uploaded as text/plain at 2000-06-07.03:03:19 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-29.21:13:14.000>
created_at = <Date 2000-06-07.03:03:19.000>
labels = []
title = 'fix posixmodule for 64-bit systems (mainly Win64)'
updated_at = <Date 2000-06-29.21:13:14.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-29.21:13:14.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.03:03:19.000>
creator = 'tmick'
dependencies = []
files = ['2444']
hgrepos = []
issue_num = 400513
keywords = ['patch']
message_count = 7.0
messages = ['32730', '32731', '32732', '32733', '32734', '32735', '32736']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400513'
versions = []
```
</p></details>
| fix posixmodule for 64-bit systems (mainly Win64) | https://api.github.com/repos/python/cpython/issues/32436/comments | 7 | 2000-06-07T03:03:19Z | 2022-04-09T20:52:08Z | https://github.com/python/cpython/issues/32436 | 1,198,767,600 | 32,436 |
[
"python",
"cpython"
] | BPO | [400512](https://bugs.python.org/issue400512)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2443/None "Uploaded as text/plain at 2000-06-07.02:59:54 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-28.06:59:52.000>
created_at = <Date 2000-06-07.02:59:54.000>
labels = []
title = 'fix timemodule.c for Win64'
updated_at = <Date 2000-06-28.06:59:52.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-28.06:59:52.000>
actor = 'tim.peters'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:59:54.000>
creator = 'tmick'
dependencies = []
files = ['2443']
hgrepos = []
issue_num = 400512
keywords = ['patch']
message_count = 4.0
messages = ['32726', '32727', '32728', '32729']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400512'
versions = []
```
</p></details>
| fix timemodule.c for Win64 | https://api.github.com/repos/python/cpython/issues/32435/comments | 4 | 2000-06-07T02:59:54Z | 2022-04-09T20:52:08Z | https://github.com/python/cpython/issues/32435 | 1,198,767,594 | 32,435 |
[
"python",
"cpython"
] | BPO | [400511](https://bugs.python.org/issue400511)
--- | :---
Nosy | @gvanrossum, @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2442/None "Uploaded as text/plain at 2000-06-07.02:57:08 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = None
closed_at = <Date 2000-08-11.19:04:12.000>
created_at = <Date 2000-06-07.02:57:08.000>
labels = ['library']
title = 'test largefile support (test_largefile.py)'
updated_at = <Date 2000-08-11.19:04:12.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-08-11.19:04:12.000>
actor = 'tmick'
assignee = 'tmick'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2000-06-07.02:57:08.000>
creator = 'tmick'
dependencies = []
files = ['2442']
hgrepos = []
issue_num = 400511
keywords = ['patch']
message_count = 9.0
messages = ['32717', '32718', '32719', '32720', '32721', '32722', '32723', '32724', '32725']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400511'
versions = []
```
</p></details>
| test largefile support (test_largefile.py) | https://api.github.com/repos/python/cpython/issues/32434/comments | 9 | 2000-06-07T02:57:08Z | 2022-04-09T20:52:04Z | https://github.com/python/cpython/issues/32434 | 1,198,767,588 | 32,434 |
[
"python",
"cpython"
] | BPO | [400510](https://bugs.python.org/issue400510)
--- | :---
Nosy | @gvanrossum, @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2441/None "Uploaded as text/plain at 2000-06-07.02:55:16 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = None
closed_at = <Date 2000-08-11.19:04:23.000>
created_at = <Date 2000-06-07.02:55:16.000>
labels = ['interpreter-core']
title = 'largefile support for Win64 (and some other fixes)'
updated_at = <Date 2000-08-11.19:04:23.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-08-11.19:04:23.000>
actor = 'tmick'
assignee = 'tmick'
closed = True
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2000-06-07.02:55:16.000>
creator = 'tmick'
dependencies = []
files = ['2441']
hgrepos = []
issue_num = 400510
keywords = ['patch']
message_count = 9.0
messages = ['32708', '32709', '32710', '32711', '32712', '32713', '32714', '32715', '32716']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400510'
versions = []
```
</p></details>
| largefile support for Win64 (and some other fixes) | https://api.github.com/repos/python/cpython/issues/32433/comments | 9 | 2000-06-07T02:55:16Z | 2022-04-09T20:52:03Z | https://github.com/python/cpython/issues/32433 | 1,198,767,582 | 32,433 |
[
"python",
"cpython"
] | BPO | [400509](https://bugs.python.org/issue400509)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2440/None "Uploaded as text/plain at 2000-06-07.02:51:53 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-30.16:23:43.000>
created_at = <Date 2000-06-07.02:51:53.000>
labels = []
title = 'overflow checking for modification time (64-bit, import.c)'
updated_at = <Date 2000-06-30.16:23:43.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-30.16:23:43.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:51:53.000>
creator = 'tmick'
dependencies = []
files = ['2440']
hgrepos = []
issue_num = 400509
keywords = ['patch']
message_count = 5.0
messages = ['32703', '32704', '32705', '32706', '32707']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400509'
versions = []
```
</p></details>
| overflow checking for modification time (64-bit, import.c) | https://api.github.com/repos/python/cpython/issues/32432/comments | 5 | 2000-06-07T02:51:53Z | 2022-04-09T20:52:09Z | https://github.com/python/cpython/issues/32432 | 1,198,767,579 | 32,432 |
[
"python",
"cpython"
] | BPO | [400508](https://bugs.python.org/issue400508)
--- | :---
Nosy | @gvanrossum, @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2439/None "Uploaded as text/plain at 2000-06-07.02:48:55 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-29.00:23:08.000>
created_at = <Date 2000-06-07.02:48:55.000>
labels = []
title = 'changes to autoconf files and PC/config.h for 64-bit systems'
updated_at = <Date 2000-06-29.00:23:08.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-29.00:23:08.000>
actor = 'tim.peters'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:48:55.000>
creator = 'tmick'
dependencies = []
files = ['2439']
hgrepos = []
issue_num = 400508
keywords = ['patch']
message_count = 5.0
messages = ['32698', '32699', '32700', '32701', '32702']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400508'
versions = []
```
</p></details>
| changes to autoconf files and PC/config.h for 64-bit systems | https://api.github.com/repos/python/cpython/issues/32431/comments | 5 | 2000-06-07T02:48:55Z | 2022-04-09T20:52:09Z | https://github.com/python/cpython/issues/32431 | 1,198,767,573 | 32,431 |
[
"python",
"cpython"
] | BPO | [400507](https://bugs.python.org/issue400507)
--- | :---
Nosy | @malemburg, @gvanrossum
Files | <li>[None](https://bugs.python.org/file2438/None "Uploaded as text/plain at 2000-06-07.02:38:53 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/malemburg'
closed_at = <Date 2000-06-30.10:30:08.000>
created_at = <Date 2000-06-07.02:38:53.000>
labels = []
title = 'Fix for bug PR#341 (string formatting overflow)'
updated_at = <Date 2000-06-30.10:30:08.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-30.10:30:08.000>
actor = 'lemburg'
assignee = 'lemburg'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:38:53.000>
creator = 'tmick'
dependencies = []
files = ['2438']
hgrepos = []
issue_num = 400507
keywords = ['patch']
message_count = 6.0
messages = ['32692', '32693', '32694', '32695', '32696', '32697']
nosy_count = 3.0
nosy_names = ['lemburg', 'gvanrossum', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400507'
versions = []
```
</p></details>
| Fix for bug PR#341 (string formatting overflow) | https://api.github.com/repos/python/cpython/issues/32430/comments | 6 | 2000-06-07T02:38:53Z | 2022-04-09T20:52:08Z | https://github.com/python/cpython/issues/32430 | 1,198,767,567 | 32,430 |
[
"python",
"cpython"
] | BPO | [400506](https://bugs.python.org/issue400506)
--- | :---
Nosy | @freddrake
Files | <li>[None](https://bugs.python.org/file2437/None "Uploaded as text/plain at 2000-06-07.02:34:11 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-07.02:36:03.000>
created_at = <Date 2000-06-07.02:34:11.000>
labels = []
title = 'fix arraymodule for overflow checking'
updated_at = <Date 2000-06-07.02:36:03.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-07.02:36:03.000>
actor = 'tmick'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:34:11.000>
creator = 'tmick'
dependencies = []
files = ['2437']
hgrepos = []
issue_num = 400506
keywords = ['patch']
message_count = 3.0
messages = ['32689', '32690', '32691']
nosy_count = 2.0
nosy_names = ['fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400506'
versions = []
```
</p></details>
| fix arraymodule for overflow checking | https://api.github.com/repos/python/cpython/issues/32429/comments | 3 | 2000-06-07T02:34:11Z | 2022-04-09T20:51:59Z | https://github.com/python/cpython/issues/32429 | 1,198,767,560 | 32,429 |
[
"python",
"cpython"
] | BPO | [400505](https://bugs.python.org/issue400505)
--- | :---
Nosy | @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2436/None "Uploaded as text/plain at 2000-06-07.02:30:06 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-30.15:03:21.000>
created_at = <Date 2000-06-07.02:30:06.000>
labels = []
title = 'printf("%lx") -> printf("%p") for pointers : win64 cares'
updated_at = <Date 2000-06-30.15:03:21.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-30.15:03:21.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-07.02:30:06.000>
creator = 'tmick'
dependencies = []
files = ['2436']
hgrepos = []
issue_num = 400505
keywords = ['patch']
message_count = 5.0
messages = ['32684', '32685', '32686', '32687', '32688']
nosy_count = 3.0
nosy_names = ['tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400505'
versions = []
```
</p></details>
| printf("%lx") -> printf("%p") for pointers : win64 cares | https://api.github.com/repos/python/cpython/issues/32428/comments | 5 | 2000-06-07T02:30:06Z | 2022-04-09T20:51:58Z | https://github.com/python/cpython/issues/32428 | 1,198,767,556 | 32,428 |
[
"python",
"cpython"
] | BPO | [400503](https://bugs.python.org/issue400503)
--- | :---
Nosy | @gvanrossum, @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2435/None "Uploaded as text/plain at 2000-06-06.02:40:44 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-29.19:20:34.000>
created_at = <Date 2000-06-06.02:40:44.000>
labels = []
title = 'fix hashing'
updated_at = <Date 2000-06-29.19:20:34.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-29.19:20:34.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-06.02:40:44.000>
creator = 'tmick'
dependencies = []
files = ['2435']
hgrepos = []
issue_num = 400503
keywords = ['patch']
message_count = 8.0
messages = ['32676', '32677', '32678', '32679', '32680', '32681', '32682', '32683']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400503'
versions = []
```
</p></details>
| fix hashing | https://api.github.com/repos/python/cpython/issues/32427/comments | 8 | 2000-06-06T02:40:44Z | 2022-04-09T20:51:57Z | https://github.com/python/cpython/issues/32427 | 1,198,767,551 | 32,427 |
[
"python",
"cpython"
] | BPO | [400503](https://bugs.python.org/issue400503)
--- | :---
Nosy | @gvanrossum, @tim-one, @freddrake
Files | <li>[None](https://bugs.python.org/file2435/None "Uploaded as text/plain at 2000-06-06.02:40:44 by tmick"): None</li>
<sup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*</sup>
<details><summary>Show more details</summary><p>
GitHub fields:
```python
assignee = 'https://github.com/freddrake'
closed_at = <Date 2000-06-29.19:20:34.000>
created_at = <Date 2000-06-06.02:40:44.000>
labels = []
title = 'fix hashing'
updated_at = <Date 2000-06-29.19:20:34.000>
user = 'https://bugs.python.org/tmick'
```
bugs.python.org fields:
```python
activity = <Date 2000-06-29.19:20:34.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2000-06-06.02:40:44.000>
creator = 'tmick'
dependencies = []
files = ['2435']
hgrepos = []
issue_num = 400503
keywords = ['patch']
message_count = 8.0
messages = ['32676', '32677', '32678', '32679', '32680', '32681', '32682', '32683']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'tim.peters', 'fdrake', 'tmick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue400503'
versions = []
```
</p></details>
| fix hashing | https://api.github.com/repos/python/cpython/issues/32426/comments | 8 | 2000-06-06T02:40:44Z | 2022-04-09T20:48:03Z | https://github.com/python/cpython/issues/32426 | 1,198,766,773 | 32,426 |
[
"axiomatic-systems",
"Bento4"
] | On Kodi media center software we builtin bento4 library to parse data packages
we have recently sync our project to bento4 master branch (at today commit 874c264a9d80dcddba0622b489eff25e223609f8)
and a lot of users reported broken DolbyDigital+ and atmos streams
ref. issues https://github.com/xbmc/inputstream.adaptive/issues/1617 https://github.com/matthuisman/slyguy.addons/issues/827
that i can also test/confirm by myself
initially i tried to revert only https://github.com/axiomatic-systems/Bento4/commit/66e29226d27784e39cddc7ff61240087f3618e88 but still broken
then i have reverted to [v1.6.0-641](https://github.com/axiomatic-systems/Bento4/releases/tag/v1.6.0-641) (last working release)
and added on top commits:
b92b7c3042a0f02d233dd5c9b3be2db804670b18
84b95d424c27d1dd7ec503377cab392a9434e8fb
147f15aac87e7cc16a686f1a7f8b10a8549d7508
because i need the c++20 compatibility, and its ok works
then the 3 commits above are not the cause of broken DD
I would not know what other data to provide to investigate the problem
but anyway on the debug there is no bento errors printed nor error raised, silently fails
kodi audio stream parser seem that is not able to detect eac3 anymore such as the data are corrupted | [REGRESSION] master branch have broken DolbyDigital streams | https://api.github.com/repos/axiomatic-systems/Bento4/issues/975/comments | 1 | 2024-08-02T08:21:18Z | 2024-08-04T05:13:39Z | https://github.com/axiomatic-systems/Bento4/issues/975 | 2,444,379,277 | 975 |
[
"axiomatic-systems",
"Bento4"
] | Since fixes for C++20 has been merged,
its possible to have a new release c++20 compatible? | new release with C++20 compatibility? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/971/comments | 0 | 2024-07-04T07:30:04Z | 2024-07-04T07:30:04Z | https://github.com/axiomatic-systems/Bento4/issues/971 | 2,390,156,758 | 971 |
[
"axiomatic-systems",
"Bento4"
] | Hello to everyone.
I'm FreeBSD systemn admin but unfortunately,I'm not a programmer. But anyway,I want to understand if I can accomplish a project with my limited resources. What project is this ? I want to watch the protected contents of NowTV using a bhyve virtual machine running with Linux. To be honest,this is an intermediate project,because the main one is to hard for me (watching NowTV using Firefox or Chrome running natively on FreeBSD). I'm studying the situation for several months and I've conducted some experiments to check how can I "hack" it. I realized that I can see the contents only using Windows. Using Linux reports the error "unsupported browser" ; I have applied the Windows 11 user agent on Chrome for Linux but it didn't work. I've applied it even on Chrome for Windows and it worked. So the conclusion is that it wants a real Windows installation. I don't know which kind of checks it does. I don't think that what I want to do can be called piracy or hacking because I'm a regular subscriber of NowTV. I pay my bills every month. But I don't want to be forced to use Windows. My preferred OS are Linux and FreeBSD. I think that you can understand me. Yesterday I've been able to run Chrome 32 bit in a stable way with wine-tkg on Debian. But unfortunately the widevine component does not work and I couldn't watch anything. So. I would like to understand if the bento4 tools can help me with this project,in some way....if they can,I don't know where to start,please put me on the right track. | How to watch the contents of NowTV using Linux | https://api.github.com/repos/axiomatic-systems/Bento4/issues/970/comments | 0 | 2024-06-18T22:28:22Z | 2024-06-18T22:29:15Z | https://github.com/axiomatic-systems/Bento4/issues/970 | 2,360,849,166 | 970 |
[
"axiomatic-systems",
"Bento4"
] | Hello, trying to convert a fragmented mp4 file with AC-4 audio into a ts file using mp42ts gives me "Error: audio codec not supported".
I used this command : `mp42ts.exe --verbose .\concat.mp4 .\concat.ts`
File : https://github.com/axiomatic-systems/Bento4/assets/60547622/61159e3f-b9cd-4ddf-8475-f1f2e875b9ca
mp4info shows me this :
```
File:
major brand: M4A
minor version: 0
compatible brand: dash
compatible brand: cmf2
compatible brand: iso6
fast start: yes
Movie:
duration: 0 (movie timescale units)
duration: 0 (ms)
time scale: 48000
fragments: yes
Found 1 Tracks
Track 1:
flags: 7 ENABLED IN-MOVIE IN-PREVIEW
id: 1
type: Audio
duration: 0 ms
language: fre
media:
sample count: 0
timescale: 48000
duration: 0 (media timescale units)
duration: 0 (ms)
bitrate (computed): 47.653 Kbps
sample count with fragments: 159
duration with fragments: 305280
duration with fragments: 6360 (ms)
Sample Description 0
Bytes: 000000000000000100000000000000000002001000000000bb800000000000286461633420a401400000001fffffffe00112f880000042000002501000000310999c8080
Coding: ac-4 (Dolby AC-4)
Codec String: ac-4.02.01.00
Sample Rate: 48000
Sample Size: 16
Channels: 2
Codecs String: ac-4.02.01.00
AC-4 dsi version: 1
AC-4 bitstream version: 2
AC-4 Presentation 0:
Stream Type = Channel based
presentation_id = 0
Codec String = ac-4.02.01.00
presentation_channel_mask_v1 = 0x1
Dolby Atmos source = No
Language = fr
Self Contained = Yes
Self Contained: Yes
AC-4 dac4 payload: [20a401400000001fffffffe00112f880000042000002501000000310999c8080]
```
Is there something I am doing wrong ? Thanks ! | mp42ts : ac-4 "Error: audio codec not supported" | https://api.github.com/repos/axiomatic-systems/Bento4/issues/969/comments | 2 | 2024-06-12T14:25:53Z | 2024-06-17T09:34:00Z | https://github.com/axiomatic-systems/Bento4/issues/969 | 2,348,919,855 | 969 |
[
"axiomatic-systems",
"Bento4"
] | Hi there, 1st of all thanks for this awesome work !
Since we've 'doxed' it in our [HyMPS project](https://forart.it/HyMPS) (under [VIDEO section](https://github.com/FORARTfe/HyMPS#-1 ) \ [Libraries page](https://github.com/FORARTfe/HyMPS/blob/main/Video/Libraries.md#-- ) \ [Formats](https://github.com/FORARTfe/HyMPS/blob/main/Video/Libraries.md#formats-)), can you please add a GH-compliant license file for it ?
As you know, expliciting licensing terms is extremely important to let anyone better/faster understand how to reuse/adapt/modify sources (and not only) in other open projects and vice-versa.
Although it may sounds like a minor aspect, license file omission obviously causes an inconsistent generation of the relative badge too:

(badge-generator URL: https://badgen.net/github/license/axiomatic-systems/Bento4)
You can easily set a standardized one through the GH's license wizard tool.
Last but not least, let us know how we could improve - in your opinion - our categorizations and links to resources in order to favor collaboration between developers (and therefore evolution) of listed projects.
Hope that helps/inspires ! | [REQ] add a (GH-compliant) license file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/968/comments | 0 | 2024-06-11T15:38:09Z | 2024-06-21T05:55:43Z | https://github.com/axiomatic-systems/Bento4/issues/968 | 2,346,743,930 | 968 |
[
"axiomatic-systems",
"Bento4"
] | Hi, Developers.
I have detected a memory leak crash at Ap4DataBuffer.cpp:210:28 in the latest tag version v1.6.0-641.
## System
I discover this crash with a docker container configured with 1 CPU core of Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz and the 64-bit Ubuntu 18.04 LTS.
## Version
`v1.6.0-641`
## Program
`mp42hls`
## Build
```sh
mkdir cmakebuild
cd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $(nproc)
```
## Run
```sh
./mp42hls ./bento4-poc1
```
## PoC
One PoC file in this zip.
[bento4-poc1.zip](https://github.com/user-attachments/files/15751703/bento4-poc1.zip)
## Crash
```
ERROR: no movie in file
=================================================================
==3062==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 343 byte(s) in 1 object(s) allocated from:
#0 0x4c84ed in operator new[](unsigned long) (/out/mp42hls+0x4c84ed)
#1 0x513fb0 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x513fb0 in AP4_DataBuffer::SetDataSize(unsigned int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4DataBuffer.cpp:151:33
#3 0x4e1f53 in AP4_UnknownAtom::AP4_UnknownAtom(unsigned int, unsigned long long, AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4Atom.cpp:346:19
#4 0x4ee673 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:242:20
#5 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#6 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#7 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#8 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#9 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 264 byte(s) in 3 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x4ee637 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:242:16
#2 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#3 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#4 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#5 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#6 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 256 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x51d165 in AP4_Array<unsigned int>::EnsureCapacity(unsigned int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4Array.h:172:25
#2 0x51d165 in AP4_Array<unsigned int>::Append(unsigned int const&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4Array.h:252:29
#3 0x51d165 in AP4_FtypAtom::AP4_FtypAtom(unsigned int, AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4FtypAtom.cpp:57:28
#4 0x4efd4b in AP4_FtypAtom::Create(unsigned int, AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4FtypAtom.h:66:20
#5 0x4efd4b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:630:20
#6 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#8 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#9 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#10 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#11 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 152 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x4efe7f in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:319:20
#2 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#3 0x590c2e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#4 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#5 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#6 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#8 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#9 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#10 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#11 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 136 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x520db6 in AP4_HvccAtom::Create(unsigned int, AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4HvccAtom.cpp:90:12
#2 0x4ef3f1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:518:20
#3 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x5003dc in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#5 0x58109d in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:884:5
#6 0x58109d in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:1136:5
#7 0x4efe98 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:319:24
#8 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#9 0x590c2e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#10 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#11 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#12 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#13 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#14 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#15 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#16 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#17 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 120 byte(s) in 5 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x4e38aa in AP4_List<AP4_Atom>::Add(AP4_Atom*) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4List.h:160:16
#2 0x4e38aa in AP4_AtomParent::AddChild(AP4_Atom*, int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4Atom.cpp:532:29
#3 0x51bdde in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:105:9
#4 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#5 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#6 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 104 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x58fe05 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:12
#2 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#3 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#6 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#7 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#8 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x4cf127 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:28
#2 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x4efd39 in AP4_FtypAtom::Create(unsigned int, AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4FtypAtom.h:66:16
#2 0x4efd39 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:630:20
#3 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#6 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#7 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#8 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x5d393e in AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) /src/targets/bento4_v1.6_641/repo/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:279:14
#2 0x4cf115 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1887:14
#3 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x590ca8 in AP4_List<AP4_Atom>::Add(AP4_Atom*) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4List.h:160:16
#2 0x590ca8 in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:105:24
#3 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#4 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#5 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#7 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#8 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#9 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#10 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x5004ec in AP4_List<AP4_Atom>::Add(AP4_Atom*) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4List.h:160:16
#2 0x5004ec in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4ContainerAtom.cpp:197:20
#3 0x58109d in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:884:5
#4 0x58109d in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:1136:5
#5 0x4efe98 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:319:24
#6 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x590c2e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#8 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#9 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#10 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#11 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#12 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#13 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#14 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#15 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 11 byte(s) in 1 object(s) allocated from:
#0 0x4c84ed in operator new[](unsigned long) (/out/mp42hls+0x4c84ed)
#1 0x58ccfe in AP4_String::Assign(char const*, unsigned int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4String.cpp:165:15
#2 0x58ccfe in AP4_String::operator=(char const*) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4String.cpp:123:9
#3 0x57f23f in AP4_VisualSampleEntry::ReadFields(AP4_ByteStream&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:923:26
#4 0x579bfd in AP4_SampleEntry::Read(AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:108:5
#5 0x58109d in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:884:5
#6 0x58109d in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4SampleEntry.cpp:1136:5
#7 0x4efe98 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:319:24
#8 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#9 0x590c2e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#10 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#11 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#12 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#13 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#14 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#15 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#16 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#17 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
Indirect leak of 8 byte(s) in 1 object(s) allocated from:
#0 0x4c83dd in operator new(unsigned long) (/out/mp42hls+0x4c83dd)
#1 0x590eaa in AP4_Array<AP4_SampleDescription*>::EnsureCapacity(unsigned int) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4Array.h:172:25
#2 0x590eaa in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:115:26
#3 0x58fe38 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#4 0x4f0060 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#5 0x4ee5a4 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x4eddce in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#7 0x51bd8e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:104:12
#8 0x51c4bd in AP4_File::AP4_File(AP4_ByteStream&, bool) /src/targets/bento4_v1.6_641/repo/Source/C++/Core/Ap4File.cpp:78:5
#9 0x4cf155 in main /src/targets/bento4_v1.6_641/repo/Source/C++/Apps/Mp42Hls/Mp42Hls.cpp:1894:32
#10 0x7ebcef0fcc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
SUMMARY: AddressSanitizer: 1634 byte(s) leaked in 20 allocation(s).
``` | Memory leaks in Ap4DataBuffer.cpp:210:28 (v1.6.641) | https://api.github.com/repos/axiomatic-systems/Bento4/issues/967/comments | 0 | 2024-06-09T11:50:24Z | 2024-06-09T11:50:24Z | https://github.com/axiomatic-systems/Bento4/issues/967 | 2,342,182,187 | 967 |
[
"axiomatic-systems",
"Bento4"
] | ### Describe the bug
AddressSanitizer: FPE on unknown address in mp42aac.
### To Reproduce
Built Bento4 main branch according to the instructions in the `README.md` file.
### ASAN Output
```
./mp42aaac <testcase> /dev/null
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1929927==ERROR: AddressSanitizer: FPE on unknown address 0x00000062e380 (pc 0x00000062e380 bp 0x7fff78068250 sp 0x7fff78067d40 T0)
#0 0x62e380 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) Source/C++/Core/Ap4TfraAtom.cpp:153:53
#1 0x62d7fb in AP4_TfraAtom::Create(unsigned int, AP4_ByteStream&) Source/C++/Core/Ap4TfraAtom.cpp:53:16
#2 0x558a62 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:443:20
#3 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) Source/C++/Core/Ap4ContainerAtom.cpp:196:12
#5 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4ContainerAtom.cpp:140:5
#6 0x4ddc16 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4MoovAtom.cpp:79:5
#7 0x55c11d in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) Source/C++/Core/Ap4MoovAtom.h:56:20
#8 0x55855b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:393:20
#9 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:234:14
#10 0x55542e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) Source/C++/Core/Ap4AtomFactory.cpp:154:12
#11 0x4da683 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) Source/C++/Core/Ap4File.cpp:104:12
#12 0x4dad7d in AP4_File::AP4_File(AP4_ByteStream&, bool) Source/C++/Core/Ap4File.cpp:78:5
#13 0x4cf8ee in main Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#14 0x7fd70b154082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#15 0x41d5ed in _start (target+0x41d5ed)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE Source/C++/Core/Ap4TfraAtom.cpp:153:53 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
==1929927==ABORTING
```
### Environment info
```
OS: Ubuntu 20.04.6
Bento v1.6.0-641 (and main branch)
```
### Testcase
[testcase.zip](https://github.com/axiomatic-systems/Bento4/files/15472985/testcase.zip)
EDIT: I just noticed a similar crash was reported in #946 though the stacktraces diverge starting from frame number 4 | AddressSanitizer: FPE in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/966/comments | 0 | 2024-05-28T08:18:44Z | 2024-05-28T16:21:09Z | https://github.com/axiomatic-systems/Bento4/issues/966 | 2,320,431,178 | 966 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27447==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x00000063d760 bp 0x7ffc110725e0 sp 0x7ffc11072240 T0)
==27447==The signal is caused by a READ memory access.
==27447==Hint: address points to the zero page.
#0 0x63d760 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:211:56
#1 0x64c6e0 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:726:18
#2 0x4c89cd in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Decrypt/Mp4Decrypt.cpp:258:29
#3 0x7f4eb62bc082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#4 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4decrypt+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:211:56 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&)
==27447==ABORTING
```
### **Crash input:**
[新建文件夹.zip](https://github.com/axiomatic-systems/Bento4/files/15450250/default.zip)
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp4decrypt input /dev/null
```
### **环境**
```
Ubuntu 20.04 LTS
Bento v1.6.0-641
``` | SEGV ASAN in mp4decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/965/comments | 0 | 2024-05-27T02:45:58Z | 2024-05-27T02:45:58Z | https://github.com/axiomatic-systems/Bento4/issues/965 | 2,318,114,264 | 965 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27037==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x0000005e3c0c bp 0x7ffe220ba180 sp 0x7ffe220b9de0 T0)
==27037==The signal is caused by a READ memory access.
==27037==Hint: address points to the zero page.
#0 0x5e3c0c in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:192:56
#1 0x5f2f50 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:726:18
#2 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#3 0x7f090c30f082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#4 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:192:56 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&)
==27037==ABORTING
```
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27105==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x0000005e484c bp 0x7ffecbdb2d80 sp 0x7ffecbdb29e0 T0)
==27105==The signal is caused by a READ memory access.
==27105==Hint: address points to the zero page.
#0 0x5e484c in AP4_TfhdAtom::GetTrackId() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TfhdAtom.h:71:67
#1 0x5e484c in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:229:62
#2 0x5f2f50 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:726:18
#3 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#4 0x7f5ed75c6082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#5 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TfhdAtom.h:71:67 in AP4_TfhdAtom::GetTrackId()
==27105==ABORTING
```
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27157==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004d71c5 bp 0x7ffcac39c810 sp 0x7ffcac39c400 T0)
==27157==The signal is caused by a READ memory access.
==27157==Hint: address points to the zero page.
#0 0x4d71c5 in AP4_AtomParent::RemoveChild(AP4_Atom*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:567:16
#1 0x5ed0c1 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:490:19
#2 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#3 0x7f499819b082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#4 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:567:16 in AP4_AtomParent::RemoveChild(AP4_Atom*)
==27157==ABORTING
```
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27211==ERROR: AddressSanitizer: FPE on unknown address 0x0000006afd75 (pc 0x0000006afd75 bp 0x7ffeee810dd0 sp 0x7ffeee810b40 T0)
#0 0x6afd75 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TfraAtom.cpp:153:53
#1 0x6af194 in AP4_TfraAtom::Create(unsigned int, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TfraAtom.cpp:53:16
#2 0x50432c in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:443:20
#3 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x4fecf8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x5ec5ea in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:456:9
#6 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#7 0x7f1e7c636082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#8 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TfraAtom.cpp:153:53 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
==27211==ABORTING
```
```
=================================================================
==27682==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000001f4 at pc 0x0000006e0c42 bp 0x7ffcc9da2100 sp 0x7ffcc9da20f8
READ of size 1 at 0x6040000001f4 thread T0
#0 0x6e0c41 in AP4_BitReader::ReadCache() const /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:447:40
#1 0x6e0c41 in AP4_BitReader::SkipBits(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:559:20
#2 0x54857d in AP4_Dac4Atom::AP4_Dac4Atom(unsigned int, unsigned char const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Dac4Atom.cpp:396:22
#3 0x53cc8a in AP4_Dac4Atom::Create(unsigned int, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Dac4Atom.cpp:58:16
#4 0x504a63 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:776:24
#5 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x52bf9f in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#7 0x6436fe in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleEntry.cpp:420:5
#8 0x5f852d in AP4_EncaSampleEntry::AP4_EncaSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Protection.cpp:74:5
#9 0x503315 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:298:24
#10 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#11 0x67a20e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#12 0x67737b in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#13 0x5035a6 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#14 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#15 0x52bf9f in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#16 0x52a5c8 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#17 0x52a5c8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#18 0x50307a in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#19 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#20 0x52c330 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#21 0x52a5c8 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#22 0x52a5c8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#23 0x50307a in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#24 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#25 0x52c330 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#26 0x52a5c8 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#27 0x52a5c8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#28 0x50307a in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#29 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#30 0x52c330 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#31 0x52bd68 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#32 0x6c32f3 in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TrakAtom.cpp:165:5
#33 0x5019f9 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TrakAtom.h:58:20
#34 0x5019f9 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:413:20
#35 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#36 0x52c330 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#37 0x52a5c8 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#38 0x52a5c8 in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#39 0x50307a in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#40 0x4ffcef in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#41 0x4fecf8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#42 0x5ec5ea in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:456:9
#43 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#44 0x7f993383e082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#45 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
0x6040000001f4 is located 0 bytes to the right of 36-byte region [0x6040000001d0,0x6040000001f4)
allocated by thread T0 here:
#0 0x4c48bd in operator new[](unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x4c48bd)
#1 0x5616a3 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x5616a3 in AP4_DataBuffer::SetBufferSize(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:136:16
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:447:40 in AP4_BitReader::ReadCache() const
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 fd fd fd fd fd fd fa fa 00 00 00 00 00 04
0x0c087fff8010: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c087fff8020: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 03 fa
=>0x0c087fff8030: fa fa 00 00 00 00 03 fa fa fa 00 00 00 00[04]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
==27682==ABORTING
```
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27379==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x0000005e3c0c bp 0x7ffcc75463a0 sp 0x7ffcc7546000 T0)
==27379==The signal is caused by a READ memory access.
==27379==Hint: address points to the zero page.
#0 0x5e3c0c in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:192:56
#1 0x5f2f50 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:726:18
#2 0x4cc7a1 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Edit/Mp4Edit.cpp:451:15
#3 0x7fd32cf9c082 in __libc_start_main /build/glibc-e2p3jK/glibc-2.31/csu/../csu/libc-start.c:308:16
#4 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4edit+0x41c8fd)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Processor.cpp:192:56 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&)
==27379==ABORTING
```
### **Crash input:**
[crash_input.zip](https://github.com/axiomatic-systems/Bento4/files/15450133/crash_input.zip)
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp4edit input /dev/null
```
### **环境**
```
Ubuntu 20.04 LTS
Bento v1.6.0-641
``` | Multiple vulnerabilities exist in mp4edit | https://api.github.com/repos/axiomatic-systems/Bento4/issues/964/comments | 0 | 2024-05-27T02:24:03Z | 2024-05-27T02:24:03Z | https://github.com/axiomatic-systems/Bento4/issues/964 | 2,318,096,394 | 964 |
[
"axiomatic-systems",
"Bento4"
] | Is mp4mux not able to accept absolute paths for input files on Windows machines? Having trouble when using absolute paths, always receiving error: ERROR: unsupported input type 'C'
Have tried quotes around paths with no success. Using relative paths is ok and works just fine? | mp4mux ERROR: unsupported input type 'C' | https://api.github.com/repos/axiomatic-systems/Bento4/issues/963/comments | 2 | 2024-05-20T19:44:00Z | 2024-05-21T17:03:12Z | https://github.com/axiomatic-systems/Bento4/issues/963 | 2,306,660,481 | 963 |
[
"axiomatic-systems",
"Bento4"
] | I would like to know if mp4decrypt works with aac audio segment and SAMPLE-AES encryption. Thanks! | mp4decrypt can decrypt aac sample-aes? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/962/comments | 1 | 2024-05-20T17:11:10Z | 2024-05-21T03:14:05Z | https://github.com/axiomatic-systems/Bento4/issues/962 | 2,306,409,183 | 962 |
[
"axiomatic-systems",
"Bento4"
] | Hello all,
As you know the Widevine team recommends packaging your content using different Content Keys i.e. different keys for Audio, SD, HD, etc. Imagine I have 3 input mp4 files - AUDIO, SD, HD, how could I apply different Content Keys to those during encryption and ensure that the tool generates a valid PSSH box that contains 3 different Key IDs that correspond to Contnet Keys used?
Is it possible with Bento4?
Thank you in advance for your answer! | DRM: Apply different Content Key to different tracks and renditions | https://api.github.com/repos/axiomatic-systems/Bento4/issues/961/comments | 5 | 2024-05-17T12:08:57Z | 2024-06-18T09:12:24Z | https://github.com/axiomatic-systems/Bento4/issues/961 | 2,302,577,433 | 961 |
[
"axiomatic-systems",
"Bento4"
] | ISO/IEC 23001 spec section 7.2 specifies:
> InitializationVector SHALL conform to the definition specified in 9.2. Only one Per_ Sample_IV_Size SHALL be used within a file or Per_Sample_IV_Size SHALL be zero when a sample is unencrypted or a Constant IV is in use. Selection of InitializationVector values SHOULD follow the recommendations of 9.2.
The value should be inherited from the `tenc` box:
```
[moov] size=8+911
[mvhd] size=12+96
...
[schi] size=8+32
[tenc] size=12+20
default_isProtected = 1
default_Per_Sample_IV_Size = 8
```
But later in the dump you see that the code guesses (incorrectly) that the value is 0:
[moof] size=8+9781
[mfhd] size=12+4
sequence number = 17494866
[traf] size=8+9757
...
( 0) 3393
[senc] size=12+6400, flags=2
sample info count = 180
IV Size (inferred) = 0
sample info entries:
( 0)
info = []
sub entries:
( 0) bytes_of_clear_data = 515, bytes_of_encrypted_data = 67438087
( 1)
```
This leads to bogus values for the sample entry table | mp4dump decodes `senc` box incorrectly for non-constant IV | https://api.github.com/repos/axiomatic-systems/Bento4/issues/960/comments | 0 | 2024-05-16T15:52:35Z | 2024-05-16T15:52:35Z | https://github.com/axiomatic-systems/Bento4/issues/960 | 2,300,768,957 | 960 |
[
"axiomatic-systems",
"Bento4"
] | ### Describe the bug
AddressSanitizer: heap-buffer-overflow in mp42aac.
### To Reproduce
Built Bento4 main branch and release v1.6.0-641 according to the instructions in the `README.md` file.
### ASAN Output
```
./mp42aaac <testcase> /dev/null
=================================================================
==270550==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000b1 at pc 0x000000434dee bp 0x7fff1e043750 sp 0x7fff1e042f18
WRITE of size 11 at 0x6020000000b1 thread T0
#0 0x434ded in fread /tmp/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1029:16
#1 0x54362b in AP4_StdcFileByteStream::ReadPartial(void*, unsigned int, unsigned int&) BUILD/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:341:14
#2 0x4d161f in AP4_ByteStream::Read(void*, unsigned int) BUILD/Source/C++/Core/Ap4ByteStream.cpp:54:29
#3 0x53f424 in AP4_MetaDataStringAtom::AP4_MetaDataStringAtom(unsigned int, unsigned int, AP4_ByteStream&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:1637:12
#4 0x533c10 in AP4_MetaDataAtomTypeHandler::CreateAtom(unsigned int, unsigned int, AP4_ByteStream&, unsigned int, AP4_Atom*&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:428:24
#5 0x55b04d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:844:21
#6 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:196:12
#8 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:140:5
#9 0x5901ac in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#10 0x533a7c in AP4_MetaDataAtomTypeHandler::CreateAtom(unsigned int, unsigned int, AP4_ByteStream&, unsigned int, AP4_Atom*&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:419:20
#11 0x55b04d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:844:21
#12 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#13 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:196:12
#14 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:140:5
#15 0x5901ac in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#16 0x55ae35 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#17 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#18 0x55542e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#19 0x4da683 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) BUILD/Source/C++/Core/Ap4File.cpp:104:12
#20 0x4dad7d in AP4_File::AP4_File(AP4_ByteStream&, bool) BUILD/Source/C++/Core/Ap4File.cpp:78:5
#21 0x4cf8ee in main BUILD/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#22 0x7f8063b77082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#23 0x41d5ed in _start (target+0x41d5ed)
0x6020000000b1 is located 0 bytes to the right of 1-byte region [0x6020000000b0,0x6020000000b1)
allocated by thread T0 here:
#0 0x4c94ad in operator new[](unsigned long) /tmp/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:102:3
#1 0x50ab25 in AP4_String::AP4_String(unsigned int) BUILD/Source/C++/Core/Ap4String.cpp:85:15
#2 0x53f3c1 in AP4_MetaDataStringAtom::AP4_MetaDataStringAtom(unsigned int, unsigned int, AP4_ByteStream&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:1634:5
#3 0x533c10 in AP4_MetaDataAtomTypeHandler::CreateAtom(unsigned int, unsigned int, AP4_ByteStream&, unsigned int, AP4_Atom*&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:428:24
#4 0x55b04d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:844:21
#5 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:196:12
#7 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:140:5
#8 0x5901ac in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#9 0x533a7c in AP4_MetaDataAtomTypeHandler::CreateAtom(unsigned int, unsigned int, AP4_ByteStream&, unsigned int, AP4_Atom*&) BUILD/Source/C++/MetaData/Ap4MetaData.cpp:419:20
#10 0x55b04d in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:844:21
#11 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#12 0x590b19 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:196:12
#13 0x590926 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:140:5
#14 0x5901ac in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) BUILD/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#15 0x55ae35 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#16 0x5562c1 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#17 0x55542e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#18 0x4da683 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) BUILD/Source/C++/Core/Ap4File.cpp:104:12
#19 0x4dad7d in AP4_File::AP4_File(AP4_ByteStream&, bool) BUILD/Source/C++/Core/Ap4File.cpp:78:5
#20 0x4cf8ee in main BUILD/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#21 0x7f8063b77082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
SUMMARY: AddressSanitizer: heap-buffer-overflow /tmp/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1029:16 in fread
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8010: fa fa 01 fa fa fa[01]fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: 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
==270550==ABORTING
```
### Environment info
```
OS: Ubuntu 20.04.6
Bento v1.6.0-641 (and main branch)
```
### Crashing file
Please find the file provoking the crash inside the testcase.zip archive
[testcase.zip](https://github.com/axiomatic-systems/Bento4/files/15246652/testcase.zip)
| AddressSanitizer: heap-buffer-overflow in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/958/comments | 0 | 2024-05-08T09:21:13Z | 2024-05-08T09:21:13Z | https://github.com/axiomatic-systems/Bento4/issues/958 | 2,285,118,539 | 958 |
[
"axiomatic-systems",
"Bento4"
] | I want to keep the fragmented mp4 file without splitting it and use the SegmentTemplate with time based indexing. I have tried all possible combinations however unable to have it working without splitting the file. Only if I use the --smooth option with --no-split the file is not split in to segment and also it uses the time based template. Checking if there is some option that I am missing ?
Here is the smooth example, however it generates additional ism files and it uses following template
`media="stream.ism/QualityLevels($Bandwidth$)/Fragments(video=$Time$)"`
Here is command
`mp4dash -f --smooth /home/sample/a.2.mp4 /home/sample/v10000.2.mp4 /home/sample/v1000.2.mp4 /home/sample/v600.2.mp4 /home/sample/v300.2.mp4 -o /home/sample/mpd --mpd-name=410776960.mpd --no-split`
| Packaging DASH stream with time based index without splitting mp4 file | https://api.github.com/repos/axiomatic-systems/Bento4/issues/957/comments | 3 | 2024-04-25T20:40:39Z | 2024-05-19T23:20:26Z | https://github.com/axiomatic-systems/Bento4/issues/957 | 2,264,459,444 | 957 |
[
"axiomatic-systems",
"Bento4"
] | I have packaged the HDR10Plus content with the latest bento4, but the playback was not working.
As per observation in the m3u8 file, the VIDEO-RANGE tag is coming as SDR instead of PQ.
Bento4 Command line :
```
./bento4/bin/mp4dash --
encryption-key=bbbbbbdc4b704b2eb610682bb8222222:aaaaaa5627905cfd341fce15bc222222:894b570bfc4525fae2fbbfdf77ccc111
--fairplay-key-uri=skd://abc --encryption-cenc-scheme=cbcs --hls hdr10plusfrag.mp4 --hls-master-playlist-name=index.m3u8 --output-dir=./output
```
----
M3U8 File:
```
#EXTM3U
# Created with Bento4 mp4-dash.py, VERSION=2.0.0-641
#
#EXT-X-VERSION:6
# Media Playlists
# Audio
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio/ec-3",LANGUAGE="de",NAME="Deutsch",AUTOSELECT=YES,DEFAULT=YES,CHANNELS="16/JOC",URI="audio/de/ec-3/media.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio/mp4a.40.2",LANGUAGE="en",NAME="English",AUTOSELECT=YES,DEFAULT=YES,CHANNELS="2",URI="audio/ta/mp4a.40.2/media.m3u8"
# Video
#EXT-X-STREAM-INF:AUDIO="audio/ec-3",AVERAGE-BANDWIDTH=735846,BANDWIDTH=803514,VIDEO-RANGE=SDR,CODECS="hvc1.2.4.L90.b0,ec-3",RESOLUTION=640x360,FRAME-RATE=25.000
video/hvc1/1/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a.40.2",AVERAGE-BANDWIDTH=416348,BANDWIDTH=484500,VIDEO-RANGE=SDR,CODECS="hvc1.2.4.L90.b0,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=25.000
video/hvc1/1/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/ec-3",AVERAGE-BANDWIDTH=1000479,BANDWIDTH=1145396,VIDEO-RANGE=SDR,CODECS="hvc1.2.4.L90.b0,ec-3",RESOLUTION=768x432,FRAME-RATE=25.000
video/hvc1/2/media.m3u8
#EXT-X-STREAM-INF:AUDIO="audio/mp4a.40.2",AVERAGE-BANDWIDTH=680981,BANDWIDTH=826382,VIDEO-RANGE=SDR,CODECS="hvc1.2.4.L90.b0,mp4a.40.2",RESOLUTION=768x432,FRAME-RATE=25.000
```
Could you please fix this issue in the upcoming version?
| HDR10Plus signaling issue | https://api.github.com/repos/axiomatic-systems/Bento4/issues/956/comments | 1 | 2024-04-19T13:56:09Z | 2024-04-27T12:06:41Z | https://github.com/axiomatic-systems/Bento4/issues/956 | 2,253,089,934 | 956 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I try to create a HLS from an MP4 video input file as well as 1-n audio tracks (AAC) by calling this command
```
mp4hls --output-dir=/tmp/123 [type=audio,+label=audio,+language_name=eins,+language=eins]audio-1.mp4 dev_sample_video_1280x720_1mb.mp4
```
The file `master.m3u8` that is being generated from this command contains an "Audio" section that contains an unspecified language name "Unknown" and language "und". How can this be? I did not specify this audio & language. Where does it come from?
```
# Audio
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="eins",LANGUAGE="eins",AUTOSELECT=YES,DEFAULT=YES,URI="audio/aac/eins/stream.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac",NAME="Unknown",LANGUAGE="und",AUTOSELECT=YES,URI="audio/aac/und/stream.m3u8"
```
For other video files that I used, I see additional audio channels like "Ger" and "Eng" that I did not specify as well. I don't know where this comes from and wonder why these information are being added automatically by mp4hls.
Has anyone an idea what the problem could be?
| HLS with multiple audio channels: mp4hls creates additional "random" audio channels. Why is that? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/955/comments | 2 | 2024-04-18T10:30:21Z | 2024-04-19T08:17:07Z | https://github.com/axiomatic-systems/Bento4/issues/955 | 2,250,331,852 | 955 |
[
"axiomatic-systems",
"Bento4"
] | Is there a way to build with C++ 20 or do you have an update plan for that ?
template class like AP4_List and Array are not compile as is with C++20 standard. | C++ 20 support ? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/954/comments | 3 | 2024-04-17T07:51:45Z | 2024-05-19T23:21:09Z | https://github.com/axiomatic-systems/Bento4/issues/954 | 2,247,628,743 | 954 |
[
"axiomatic-systems",
"Bento4"
] | See discussion here: https://github.com/Dash-Industry-Forum/dash.js/issues/4459
mp4-dash.py creates a <dashif:laurl> element with the URL to the clearkey license server. The name of this element has been updated in the spec to <dashif:Laurl>. There are a few other changes for the clear-key case.
Here is at patch:
```diff
diff --git a/Source/Python/utils/mp4-dash.py b/Source/Python/utils/mp4-dash.py
index 70ac4a6..5d42860 100755
--- a/Source/Python/utils/mp4-dash.py
+++ b/Source/Python/utils/mp4-dash.py
@@ -312,7 +312,7 @@ def AddContentProtection(options, container, tracks, all_tracks):
ck_license.text = options.clearkey_license_uri
# Second entry with the dashif namespace
- ck_license = xml.SubElement(cp, '{'+DASHIF_NAMESPACE+'}laurl')
+ ck_license = xml.SubElement(cp, '{'+DASHIF_NAMESPACE+'}Laurl')
ck_license.text = options.clearkey_license_uri
# Marlin
``` | Update dashif:laurl to dashif:Laurl per latest specification | https://api.github.com/repos/axiomatic-systems/Bento4/issues/953/comments | 0 | 2024-04-17T03:11:46Z | 2024-04-17T03:13:06Z | https://github.com/axiomatic-systems/Bento4/issues/953 | 2,247,267,905 | 953 |
[
"axiomatic-systems",
"Bento4"
] | ### Describe the bug
AddressSanitizer: heap-buffer-overflow in mp42aac.
### To Reproduce
Built Bento4 release v1.6.0-641 according to the instructions in the `README.md` file.
### ASAN Output
```
./mp42aaac <testcase> /dev/null
=================================================================
==3793750==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000098 at pc 0x0000005e1bb1 bp 0x7ffefdbd4cf0 sp 0x7ffefdbd4ce8
READ of size 1 at 0x602000000098 thread T0
#0 0x5e1bb0 in AP4_BytesToUInt16BE(unsigned char const*) BUILD/Source/C++/Core/Ap4Utils.h:113:22
#1 0x5e1bb0 in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) BUILD/Source/C++/Core/Ap4Stz2Atom.cpp:128:32
#2 0x5e0fbf in AP4_Stz2Atom::Create(unsigned int, AP4_ByteStream&) BUILD/Source/C++/Core/Ap4Stz2Atom.cpp:52:16
#3 0x53c928 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:483:20
#4 0x53b504 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#5 0x53ad2e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#6 0x4d7a5e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) BUILD/Source/C++/Core/Ap4File.cpp:104:12
#7 0x4d7f3d in AP4_File::AP4_File(AP4_ByteStream&, bool) BUILD/Source/C++/Core/Ap4File.cpp:78:5
#8 0x4cf726 in main BUILD/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#9 0x7f6838944082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#10 0x41d6dd in _start (mp42aac+0x41d6dd)
0x602000000098 is located 0 bytes to the right of 8-byte region [0x602000000090,0x602000000098)
allocated by thread T0 here:
#0 0x4c959d in operator new[](unsigned long) /tmp/llvm/utils/release/final/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:102:3
#1 0x5e141b in AP4_Stz2Atom::AP4_Stz2Atom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) BUILD/Source/C++/Core/Ap4Stz2Atom.cpp:101:29
#2 0x5e0fbf in AP4_Stz2Atom::Create(unsigned int, AP4_ByteStream&) BUILD/Source/C++/Core/Ap4Stz2Atom.cpp:52:16
#3 0x53c928 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:483:20
#4 0x53b504 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#5 0x53ad2e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) BUILD/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#6 0x4d7a5e in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) BUILD/Source/C++/Core/Ap4File.cpp:104:12
#7 0x4d7f3d in AP4_File::AP4_File(AP4_ByteStream&, bool) BUILD/Source/C++/Core/Ap4File.cpp:78:5
#8 0x4cf726 in main BUILD/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#9 0x7f6838944082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
SUMMARY: AddressSanitizer: heap-buffer-overflow BUILD/Source/C++/Core/Ap4Utils.h:113:22 in AP4_BytesToUInt16BE(unsigned char const*)
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
=>0x0c047fff8010: fa fa 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: 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
==3793750==ABORTING
```
### Environment info
```
OS: Ubuntu 20.04.6
Bento v1.6.0-641
```
### Crashing file
Please find the file provoking the crash inside the testcase.zip archive
[testcase.zip](https://github.com/axiomatic-systems/Bento4/files/14996747/testcase.zip) | AddressSanitizer: heap-buffer-overflow in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/952/comments | 0 | 2024-04-16T12:32:52Z | 2024-04-27T12:27:45Z | https://github.com/axiomatic-systems/Bento4/issues/952 | 2,245,929,415 | 952 |
[
"axiomatic-systems",
"Bento4"
] | Hello, I was recently using afl++ to test the latest version of Bento4 and found a lot of crashes. They come from different tools, and some require specified parameters to trigger. The summary report of AddressSanitizer is as follows. One of them is considered exploitable by casr.
```
heap-buffer-overflow(read): /root/fuzzing_Bento4/Bento4/Source/C++/Codecs/Ap4Mp4AudioInfo.cpp:66:56
heap-buffer-overflow(write): /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ByteStream.cpp:785:5( casrep: EXPLOITABLE:)
heap-buffer-overflow(read): /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Utils.h:114:22
heap-buffer-overflow(read): /root/fuzzing_Bento4/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1196:17
heap-buffer-overflow(read): /root/fuzzing_Bento4/Bento4/Source/C++/Codecs/Ap4BitStream.cpp:133:9
SourceAvNearNull: /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4MovieFragment.cpp
SourceAv: /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TrunAtom.h:80:80
SourceAvNearNull: /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Atom.cpp:567:16
SourceAvNearNull: /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Processor.cpp:192:56
SourceAvNearNull: /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Processor.cpp:211:56
```
Detailed casr reports and poc here:https://github.com/40ngx/Bento4-report
| Many crashes found in Bento4 through fuzzing | https://api.github.com/repos/axiomatic-systems/Bento4/issues/951/comments | 0 | 2024-04-07T09:29:26Z | 2024-04-07T09:29:26Z | https://github.com/axiomatic-systems/Bento4/issues/951 | 2,229,652,667 | 951 |
[
"axiomatic-systems",
"Bento4"
] | I’m trying to encrypt the attached segment using `mp4encrypt` using `MPEG-CENC` method, but the resulting segment becomes unplayable:
```sh
mp4encrypt --method MPEG-CENC \
--key 1:4a13a4c5449b903ca558716341531799:random \
--property 1:KID:a167ef50633c27f314f36a038ef20d6e \
clear/154023527127780.mp4 cenc/154023527127780.mp4
```
Shaka Player throws `MediaError(3,,CHUNK_DEMUXER_ERROR_APPEND_FAILED: Incorrect CENC subsample size.)`.
Decrypting the encrypted segment using `mp4decrypt` and checking the integrity using FFmpeg, results into:
```sh
mp4decrypt --key a167ef50633c27f314f36a038ef20d6e:4a13a4c5449b903ca558716341531799 \
cenc/154023527127780.mp4 clear/154023527127780.mp4
ffmpeg -v error -i clear/154023527127780.mp4 -f null -
```
```log
[h264 @ 0x14263a4c0] Invalid NAL unit size (337906356 > 1).
[h264 @ 0x14263a4c0] Error splitting the input into NAL units.
[vist#0:0/h264 @ 0x142612c60] Error submitting packet to decoder: Invalid data found when processing input
[h264 @ 0x14260a400] Invalid NAL unit size (1672766743 > 1).
[h264 @ 0x14260a400] Error splitting the input into NAL units.
[vist#0:0/h264 @ 0x142612c60] Error submitting packet to decoder: Invalid data found when processing input
[h264 @ 0x1426438d0] Invalid NAL unit size (-334245472 > 1).
[h264 @ 0x1426438d0] Error splitting the input into NAL units.
[vist#0:0/h264 @ 0x142612c60] Decoding error: Invalid data found when processing input
```
https://github.com/axiomatic-systems/Bento4/assets/1440785/ec6946b1-0825-4745-9c7c-d8e513c6a0a4 | Encrypted segment using MPEG-CENC method is not playable | https://api.github.com/repos/axiomatic-systems/Bento4/issues/950/comments | 3 | 2024-04-05T07:04:45Z | 2024-06-05T09:32:07Z | https://github.com/axiomatic-systems/Bento4/issues/950 | 2,227,230,477 | 950 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I find that in the AP4_Stz2Atom::AP4_Stz2Atom function, the sample_count obtained through stream.ReadUI08 may lack proper range validation. This can lead to a heap out-of-bounds read when calling AP4_BytesToUInt16BE, triggering a segment fault.
./mp42aac poc out
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/14842435/poc.zip)
| Out-Of-Bounds read in Ap4Stz2Atom | https://api.github.com/repos/axiomatic-systems/Bento4/issues/948/comments | 0 | 2024-04-02T18:46:13Z | 2024-04-02T20:10:37Z | https://github.com/axiomatic-systems/Bento4/issues/948 | 2,221,191,378 | 948 |
[
"axiomatic-systems",
"Bento4"
] | Hi, I found allocation-size-too-big crash in mp42avc. It seems to be caused by a bug in Bento4/Source/C++/Core/Ap4RtpAtom.cpp:50:25. I noticed someone had found a similar problem with mp42aac. But it seems it still hasn't been fixed. The command that causes the vulnerability and related crash information are as follows:
```
./mp42avc poc out
```
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/14804977/poc.zip)
Asan trace report:
```bash
=================================================================
==1784304==ERROR: AddressSanitizer: requested allocation size 0xffffffffe7000019 (0xffffffffe7001020 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
#0 0x55fab814153d in operator new[](unsigned long) (/root/fuzzing_Bento4/Bento4/cmakebuild/mp42avc+0x18f53d) (BuildId: b6869cc7d4500ad6)
#1 0x55fab817a0c6 in AP4_RtpAtom::AP4_RtpAtom(unsigned int, AP4_ByteStream&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4RtpAtom.cpp:50:25
#2 0x55fab817a0c6 in AP4_RtpAtom::Create(unsigned int, AP4_ByteStream&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4RtpAtom.h:53:20
#3 0x55fab817a0c6 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:689:20
#4 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#5 0x55fab81a3613 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#6 0x55fab81762f3 in AP4_VisualSampleEntry::AP4_VisualSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:884:5
#7 0x55fab81762f3 in AP4_AvcSampleEntry::AP4_AvcSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:1136:5
#8 0x55fab81762f3 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:319:24
#9 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#10 0x55fab8308e0e in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#11 0x55fab8308953 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#12 0x55fab81795bb in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#13 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#14 0x55fab81a29d2 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#15 0x55fab81a29d2 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#16 0x55fab81a123b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#17 0x55fab8179573 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#18 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#19 0x55fab81a29d2 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#20 0x55fab81a29d2 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#21 0x55fab81a123b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#22 0x55fab8179573 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#23 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#24 0x55fab81a29d2 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#25 0x55fab81a29d2 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#26 0x55fab81a123b in AP4_ContainerAtom::Create(unsigned int, unsigned long long, bool, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:88:20
#27 0x55fab8179573 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#28 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#29 0x55fab81a29d2 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#30 0x55fab81a29d2 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#31 0x55fab8179b12 in AP4_TrakAtom::AP4_TrakAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TrakAtom.cpp:165:5
#32 0x55fab8179b12 in AP4_TrakAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TrakAtom.h:58:20
#33 0x55fab8179b12 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:413:20
#34 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#35 0x55fab81a29d2 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#36 0x55fab81a29d2 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#37 0x55fab81f2436 in AP4_MoovAtom::AP4_MoovAtom(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4MoovAtom.cpp:79:5
#38 0x55fab8179e2a in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4MoovAtom.h:56:20
#39 0x55fab8179e2a in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:393:20
#40 0x55fab81809ee in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#41 0x55fab8180021 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
==1784304==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: allocation-size-too-big (/root/fuzzing_Bento4/Bento4/cmakebuild/mp42avc+0x18f53d) (BuildId: b6869cc7d4500ad6) in operator new[](unsigned long)
```
| mp42avc found allocation-size-too-big crash | https://api.github.com/repos/axiomatic-systems/Bento4/issues/947/comments | 0 | 2024-03-29T13:53:55Z | 2024-03-29T13:53:55Z | https://github.com/axiomatic-systems/Bento4/issues/947 | 2,215,415,830 | 947 |
[
"axiomatic-systems",
"Bento4"
] | Hello, I used the fuzz testing tool to test mp42ts and found an FPE crash. Details are below.
# Envrionment
```
Ubuntu 22.04.2 LTS
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
Ubuntu clang version 14.0.0-1ubuntu1.1
```
# Affected Version
```
(Bento4 Version 1.6.0.0)
MP4 To MPEG2-TS File Converter - Version 1.3
```
# crash SUMMARY
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2848675==ERROR: AddressSanitizer: FPE on unknown address 0x558fbeb0610e (pc 0x558fbeb0610e bp 0x7ffe1ddf30b0 sp 0x7ffe1ddf2da0 T0)
#0 0x558fbeb0610e in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TfraAtom.cpp:153:53
#1 0x558fbeb056b7 in AP4_TfraAtom::Create(unsigned int, AP4_ByteStream&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TfraAtom.cpp:53:16
#2 0x558fbe947785 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:443:20
#3 0x558fbe94e43e in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x558fbe94da71 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#5 0x558fbe93d986 in AP4_Atom::Clone() /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Atom.cpp:324:18
#6 0x558fbeab3918 in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:138:41
#7 0x558fbeab3918 in AP4_AvcSampleDescription::AP4_AvcSampleDescription(unsigned int, unsigned short, unsigned short, unsigned short, char const*, AP4_AtomParent*) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4SampleDescription.cpp:383:5
#8 0x558fbeac1655 in AP4_AvcSampleEntry::ToSampleDescription() /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:1146:16
#9 0x558fbeaeaae8 in AP4_StsdAtom::GetSampleDescription(unsigned int) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#10 0x558fbe912b43 in AP4_Track::GetSampleDescription(unsigned int) /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Track.cpp:447:43
#11 0x558fbe912b43 in main /root/fuzzing_Bento4/Bento4/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:602:43
#12 0x7f5ba8e29d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
#13 0x7f5ba8e29e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
#14 0x558fbe84aa04 in _start (/root/fuzzing_Bento4/Bento4/cmakebuild/mp42ts+0xd5a04) (BuildId: e9d01274e1656fd8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4TfraAtom.cpp:153:53 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)
==2848675==ABORTING
```
# command
```
./mp42ts poc4 output
```
[poc4.zip](https://github.com/axiomatic-systems/Bento4/files/14799892/poc4.zip)
| FPE discovered in mp42ts | https://api.github.com/repos/axiomatic-systems/Bento4/issues/946/comments | 0 | 2024-03-29T04:54:55Z | 2024-03-29T04:55:12Z | https://github.com/axiomatic-systems/Bento4/issues/946 | 2,214,651,046 | 946 |
[
"axiomatic-systems",
"Bento4"
] | Hi on a Kodi software library we are using bento4
but our build system already set the CMAKE_OSX_ARCHITECTURES var
recently with commit https://github.com/axiomatic-systems/Bento4/commit/cbea428ae2f095afeb3c2b6ed25d692c9706de21
has been added this line
https://github.com/axiomatic-systems/Bento4/blob/525027c6ef57bdd26636c9557239e7d559c612ad/CMakeLists.txt#L17
that set the CMAKE_OSX_ARCHITECTURES looks like that overwrite our config value, and cause to failed build of bento4
can you implement a logic to avoid to change/overwrite an existing CMAKE_OSX_ARCHITECTURES value? | build problem with CMAKE_OSX_ARCHITECTURES var | https://api.github.com/repos/axiomatic-systems/Bento4/issues/945/comments | 0 | 2024-03-28T13:58:39Z | 2024-03-28T14:00:47Z | https://github.com/axiomatic-systems/Bento4/issues/945 | 2,213,315,755 | 945 |
[
"axiomatic-systems",
"Bento4"
] | Hello!
Very similar to #781 but this time there's nothing to use, even more out of spec!
I've attached the init and first segment:
[broken.zip](https://github.com/axiomatic-systems/Bento4/files/14789324/broken.zip)
The keyid/key is f8c80c25690f47368132430e5c6994ce:7bc99cb1dd0623cd0b5065056a57a1dd
Because it's audio the skip/crypt pattern is just 0,0 and from looking at an audio example that does work, the SENC box is very simple just containing the count of samples:

Unfortunately for me, I have tried but failed to create a simple 16 byte box in inputstream.adaptive to contain data: `trun->GetEntries().ItemCount()`
Is this something you can a) implement a fix in AP4_CencSampleInfoTable::Create, or b) advise the in pattern way to create a simple 16 byte SENC box like above?
Thanks heaps! | CBCS audio with no SAIZ, SAIO or SENC boxes | https://api.github.com/repos/axiomatic-systems/Bento4/issues/944/comments | 0 | 2024-03-28T12:29:15Z | 2024-03-28T12:29:15Z | https://github.com/axiomatic-systems/Bento4/issues/944 | 2,213,119,815 | 944 |
[
"axiomatic-systems",
"Bento4"
] | Hello, I recently discovered three heap-use-after-free vulnerabilities during fuzz testing of Bento4 using AFL++. They can be triggered by both mp42ts and mp42hls. The environment I use and the crash summary are as follows. Due to the large amount of content, POC and ASAN details will be provided in the link.
# Envrionment
```
Ubuntu 22.04.2 LTS
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
Ubuntu clang version 14.0.0-1ubuntu1.1
```
# Affected Version
```
(Bento4 Version 1.6.0.0)
MP4 To MPEG2-TS File Converter - Version 1.3
MP4 To HLS File Converter - Version 1.2
```
# crash SUMMARY
- AddressSanitizer: heap-use-after-free /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4ByteStream.cpp:428:17 in AP4_SubStream::~AP4_SubStream()
- AddressSanitizer:heap-use-after-free /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Atom.cpp:408:25 in AP4_UnknownAtom::~AP4_UnknownAtom()
- AddressSanitizer: heap-use-after-free /root/fuzzing_Bento4/Bento4/Source/C++/Core/Ap4Sample.h:99:48 in AP4_Sample::GetOffset() const
# details
https://github.com/40ngx/Bento4-crash
| Multiple heap-use-after-free vulnerabilities discovered in Bento4 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/943/comments | 0 | 2024-03-28T10:06:16Z | 2024-03-29T04:38:15Z | https://github.com/axiomatic-systems/Bento4/issues/943 | 2,212,821,982 | 943 |
[
"axiomatic-systems",
"Bento4"
] | There appears to be a file path length limit before the program just errors out. From testing, the limit appears to be 254 characters long (excluding /'s for directories), 255 and greater will error out. I assume it's somehow an 8 bit limit. Would it be possible to fix this?
Additionally, I also noticed that if the filename includes unicode, it will also fail. | mp4decrypt file path length limit | https://api.github.com/repos/axiomatic-systems/Bento4/issues/942/comments | 0 | 2024-03-26T20:26:37Z | 2024-03-26T20:26:37Z | https://github.com/axiomatic-systems/Bento4/issues/942 | 2,209,247,395 | 942 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
```
unable to autodetect fragment duration, using default
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1718535==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000006b229c bp 0x60b000000408 sp 0x7ffe5a6079e0 T0)
==1718535==The signal is caused by a READ memory access.
==1718535==Hint: address points to the zero page.
#0 0x6b229c in AP4_StsdAtom::AP4_StsdAtom(AP4_SampleTable*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:75:47
#1 0x825ed3 in AP4_SampleTable::GenerateStblAtom(AP4_ContainerAtom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleTable.cpp:59:30
#2 0x6fb497 in AP4_TrakAtom::AP4_TrakAtom(AP4_SampleTable*, unsigned int, char const*, unsigned int, unsigned long long, unsigned long long, unsigned long long, unsigned int, unsigned long long, unsigned short, char const*, unsigned int, unsigned int, unsigned short, unsigned short, int const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TrakAtom.cpp:131:28
#3 0x6f60dd in AP4_Track::AP4_Track(AP4_SampleTable*, unsigned int, unsigned int, unsigned long long, unsigned int, unsigned long long, AP4_Track const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Track.cpp:183:22
#4 0x4cf67a in Fragment(AP4_File&, AP4_ByteStream&, AP4_Array<TrackCursor*>&, unsigned int, unsigned int, bool, bool, bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:360:39
#5 0x4cf67a in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1475:5
#6 0x7f0e35d8b082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#7 0x41c90d in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4fragment+0x41c90d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:75:47 in AP4_StsdAtom::AP4_StsdAtom(AP4_SampleTable*)
==1718535==ABORTING
```
```
unable to autodetect fragment duration, using default
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1686304==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f80a52d6915 bp 0x7ffe1023fd70 sp 0x7ffe1023f528 T0)
==1686304==The signal is caused by a READ memory access.
==1686304==Hint: address points to the zero page.
#0 0x7f80a52d6915 /build/glibc-wuryBv/glibc-2.31/string/../sysdeps/x86_64/multiarch/strlen-avx2.S:65
#1 0x42f3e8 in strlen (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4fragment+0x42f3e8)
#2 0x5e3c2f in AP4_MdhdAtom::AP4_MdhdAtom(unsigned long long, unsigned long long, unsigned int, unsigned long long, char const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4MdhdAtom.cpp:69:9
#3 0x6fb6d1 in AP4_TrakAtom::AP4_TrakAtom(AP4_SampleTable*, unsigned int, char const*, unsigned int, unsigned long long, unsigned long long, unsigned long long, unsigned int, unsigned long long, unsigned short, char const*, unsigned int, unsigned int, unsigned short, unsigned short, int const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4TrakAtom.cpp:143:22
#4 0x6f60dd in AP4_Track::AP4_Track(AP4_SampleTable*, unsigned int, unsigned int, unsigned long long, unsigned int, unsigned long long, AP4_Track const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Track.cpp:183:22
#5 0x4cf67a in Fragment(AP4_File&, AP4_ByteStream&, AP4_Array<TrackCursor*>&, unsigned int, unsigned int, bool, bool, bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:360:39
#6 0x4cf67a in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1475:5
#7 0x7f80a5172082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#8 0x41c90d in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp4fragment+0x41c90d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /build/glibc-wuryBv/glibc-2.31/string/../sysdeps/x86_64/multiarch/strlen-avx2.S:65
==1686304==ABORTING
```
### **Crash input:**
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/14742865/poc.zip)
[poc1.zip](https://github.com/axiomatic-systems/Bento4/files/14742872/poc1.zip)
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp4fragment input /dev/null
```
### **环境**
```
Ubuntu 20.04 LTS
Bento v1.6.0-641
``` | SEGV ASAN in mp4fragment | https://api.github.com/repos/axiomatic-systems/Bento4/issues/941/comments | 0 | 2024-03-25T11:44:04Z | 2024-03-25T11:44:04Z | https://github.com/axiomatic-systems/Bento4/issues/941 | 2,205,549,858 | 941 |
[
"axiomatic-systems",
"Bento4"
] | Support for a wide range of codecs, including H.264 (AVC), H.265 (HEVC), AAC, HE-AAC, xHE-AAC, AC3 and eAC3 (Dolby Digital), AC4, Dolby Atmos, DTS, ALAC, and many more. Why is there no FLAC??? | FLAC? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/940/comments | 0 | 2024-03-25T10:14:23Z | 2024-03-25T10:14:23Z | https://github.com/axiomatic-systems/Bento4/issues/940 | 2,205,374,790 | 940 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
```
=================================================================
==3304149==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000160 at pc 0x00000055f635 bp 0x7ffce575b390 sp 0x7ffce575b388
READ of size 1 at 0x602000000160 thread T0
#0 0x55f634 in AP4_BitReader::ReadCache() const /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:447:40
#1 0x55f634 in AP4_BitReader::ReadBits(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:467:40
#2 0x689547 in AP4_Dac4Atom::AP4_Dac4Atom(unsigned int, unsigned char const*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Dac4Atom.cpp:238:75
#3 0x68023a in AP4_Dac4Atom::Create(unsigned int, AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Dac4Atom.cpp:58:16
#4 0x5e0d23 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:776:24
#5 0x5dbfaf in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x66f83f in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#7 0x5282fe in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleEntry.cpp:420:5
#8 0x4eea5d in AP4_EncaSampleEntry::AP4_EncaSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Protection.cpp:74:5
#9 0x5df5d5 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:298:24
#10 0x5dbfaf in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#11 0x5424ae in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#12 0x53f61b in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#13 0x5df866 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#14 0x5dbfaf in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#15 0x5dafb8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#16 0x4dac06 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:104:12
#17 0x4db68f in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:78:5
#18 0x4c7733 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#19 0x7f0af5948082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#20 0x41c8ed in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x41c8ed)
0x602000000160 is located 0 bytes to the right of 16-byte region [0x602000000150,0x602000000160)
allocated by thread T0 here:
#0 0x4c48ad in operator new[](unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x4c48ad)
#1 0x4d7ec3 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x4d7ec3 in AP4_DataBuffer::SetBufferSize(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:136:16
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Utils.cpp:447:40 in AP4_BitReader::ReadCache() const
Shadow bytes around the buggy address:
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8010: fa fa 04 fa fa fa fd fa fa fa 01 fa fa fa 00 fa
=>0x0c047fff8020: fa fa 00 07 fa fa 00 07 fa fa 00 00[fa]fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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
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
==3304149==ABORTING
```
```
=================================================================
==72210==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6190000009a0 at pc 0x000000494530 bp 0x7fffba3cc440 sp 0x7fffba3cbc08
WRITE of size 4294967280 at 0x6190000009a0 thread T0
#0 0x49452f in __asan_memcpy (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x49452f)
#1 0x4d2f73 in AP4_MemoryByteStream::WritePartial(void const*, unsigned int, unsigned int&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ByteStream.cpp:785:5
#2 0x4ca625 in AP4_ByteStream::Write(void const*, unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ByteStream.cpp:77:29
#3 0x66a336 in AP4_CencSampleEncryption::DoWriteFields(AP4_ByteStream&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4CommonEncryption.cpp:3569:16
#4 0x5ae219 in AP4_Atom::Clone() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:316:9
#5 0x509fd4 in AP4_SampleDescription::AP4_SampleDescription(AP4_SampleDescription::Type, unsigned int, AP4_AtomParent*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleDescription.cpp:138:41
#6 0x52a4d0 in AP4_GenericAudioSampleDescription::AP4_GenericAudioSampleDescription(unsigned int, unsigned int, unsigned short, unsigned short, AP4_AtomParent*) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleDescription.h:258:9
#7 0x52a4d0 in AP4_AudioSampleEntry::ToSampleDescription() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4SampleEntry.cpp:625:16
#8 0x547f18 in AP4_StsdAtom::GetSampleDescription(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4StsdAtom.cpp:181:53
#9 0x4c77b8 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:268:39
#10 0x7fe70ea9d082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#11 0x41c8ed in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x41c8ed)
0x6190000009a0 is located 0 bytes to the right of 1056-byte region [0x619000000580,0x6190000009a0)
allocated by thread T0 here:
#0 0x4c48ad in operator new[](unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x4c48ad)
#1 0x4d7b67 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:210:28
#2 0x4d7b67 in AP4_DataBuffer::SetBufferSize(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:136:16
#3 0x4d7b67 in AP4_DataBuffer::Reserve(unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4DataBuffer.cpp:107:12
SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42aac+0x49452f) in __asan_memcpy
Shadow bytes around the buggy address:
0x0c327fff80e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c327fff80f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c327fff8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c327fff8110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c327fff8120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c327fff8130: 00 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa
0x0c327fff8140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c327fff8150: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c327fff8160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c327fff8170: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c327fff8180: 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
==72210==ABORTING
```
### **Crash input:**
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/14737778/poc.zip)
[poc1.zip](https://github.com/axiomatic-systems/Bento4/files/14742678/poc1.zip)
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp42aac input /dev/null
```
### **环境**
```
Ubuntu 20.04 LTS
Bento v1.6.0-641
```
| Heap-buffer-overflow with ASAN in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/939/comments | 0 | 2024-03-25T01:47:30Z | 2024-03-25T11:23:45Z | https://github.com/axiomatic-systems/Bento4/issues/939 | 2,204,715,905 | 939 |
[
"axiomatic-systems",
"Bento4"
] | Hi, barbibulle. At you aac2mp4.exe audio 8 channels.
https://radikal.host/i/dYL9Hd
https://radikal.host/i/dYLLc8
And where is the Language where are the commands?
| aac2mp4.exe 8 channels of problems | https://api.github.com/repos/axiomatic-systems/Bento4/issues/938/comments | 0 | 2024-03-24T15:45:15Z | 2024-03-24T15:45:40Z | https://github.com/axiomatic-systems/Bento4/issues/938 | 2,204,418,006 | 938 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
**BUG1**
```
=================================================================
==2611989==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000000010 at pc 0x0000004d43d9 bp 0x7fff45dd24e0 sp 0x7fff45dd24d8
READ of size 8 at 0x604000000010 thread T0
#0 0x4d43d8 in AP4_SubStream::~AP4_SubStream() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ByteStream.cpp:428:17
#1 0x4d43d8 in AP4_SubStream::~AP4_SubStream() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ByteStream.cpp:427:1
#2 0x5840b0 in AP4_DataAtom::~AP4_DataAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/MetaData/Ap4MetaData.cpp:1454:5
#3 0x5840b0 in AP4_DataAtom::~AP4_DataAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/MetaData/Ap4MetaData.cpp:1453:1
#4 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#5 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#6 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#7 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#8 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#9 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#10 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#11 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#12 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#13 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#14 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#15 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#16 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#17 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#18 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#19 0x5ec534 in AP4_ContainerAtom::~AP4_ContainerAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ContainerAtom.h:48:7
#20 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#21 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#22 0x4df821 in AP4_File::~AP4_File() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:88:1
#23 0x4df821 in AP4_File::~AP4_File() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:85:1
#24 0x4c84d5 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:519:9
#25 0x7f20b83c5082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#26 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x41c8fd)
0x604000000010 is located 0 bytes inside of 48-byte region [0x604000000010,0x604000000040)
freed by thread T0 here:
#0 0x4c500d in operator delete(void*) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c500d)
#1 0x4c842a in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:518:9
#2 0x7f20b83c5082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
previously allocated by thread T0 here:
#0 0x4c47ad in operator new(unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c47ad)
#1 0x589178 in AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:279:14
SUMMARY: AddressSanitizer: heap-use-after-free /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4ByteStream.cpp:428:17 in AP4_SubStream::~AP4_SubStream()
Shadow bytes around the buggy address:
0x0c087fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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[fd]fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8010: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8020: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8030: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
0x0c087fff8040: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 00
0x0c087fff8050: 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
==2611989==ABORTING
```
**BUG2**
```
=================================================================
==3677656==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000000010 at pc 0x000000598dee bp 0x7ffd22a2a640 sp 0x7ffd22a2a638
READ of size 8 at 0x604000000010 thread T0
#0 0x598ded in AP4_UnknownAtom::~AP4_UnknownAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:408:25
#1 0x598ded in AP4_UnknownAtom::~AP4_UnknownAtom() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:405:1
#2 0x59b000 in AP4_List<AP4_Atom>::DeleteReferences() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4List.h:476:9
#3 0x59b000 in AP4_AtomParent::~AP4_AtomParent() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:516:16
#4 0x4df821 in AP4_File::~AP4_File() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:88:1
#5 0x4df821 in AP4_File::~AP4_File() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4File.cpp:85:1
#6 0x4c84d5 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:519:9
#7 0x7f3aff20b082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#8 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x41c8fd)
0x604000000010 is located 0 bytes inside of 48-byte region [0x604000000010,0x604000000040)
freed by thread T0 here:
#0 0x4c500d in operator delete(void*) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c500d)
#1 0x4c842a in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:518:9
#2 0x7f3aff20b082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
previously allocated by thread T0 here:
#0 0x4c47ad in operator new(unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c47ad)
#1 0x589178 in AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:279:14
SUMMARY: AddressSanitizer: heap-use-after-free /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Atom.cpp:408:25 in AP4_UnknownAtom::~AP4_UnknownAtom()
Shadow bytes around the buggy address:
0x0c087fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c087fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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[fd]fd fd fd fd fd fa fa fa fa fa fa fa fa
0x0c087fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c087fff8030: fa fa fa fa fa fa fa fa 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
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
==3677656==ABORTING
```
**BUG3**
```
=================================================================
==3972313==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000002b18 at pc 0x0000004f35b1 bp 0x7fff7428d660 sp 0x7fff7428d658
READ of size 8 at 0x604000002b18 thread T0
#0 0x4f35b0 in AP4_Sample::GetOffset() const /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Sample.h:99:48
#1 0x4f35b0 in AP4_LinearReader::Advance(bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4LinearReader.cpp:434:54
#2 0x4f42a2 in AP4_LinearReader::ReadNextSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4LinearReader.cpp:530:29
#3 0x4cb0b0 in ReadSample(SampleReader&, AP4_Track&, AP4_Sample&, AP4_DataBuffer&, double&, bool&) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:181:32
#4 0x4cb0b0 in WriteSamples(AP4_Mpeg2TsWriter&, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, AP4_Track*, SampleReader*, AP4_Mpeg2TsWriter::SampleStream*, unsigned int) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:306:22
#5 0x4cb0b0 in main /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp:640:14
#6 0x7fa64720d082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#7 0x41c8fd in _start (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x41c8fd)
0x604000002b18 is located 8 bytes inside of 48-byte region [0x604000002b10,0x604000002b40)
freed by thread T0 here:
#0 0x4c500d in operator delete(void*) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c500d)
#1 0x4f2dff in AP4_LinearReader::SampleBuffer::~SampleBuffer() /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4LinearReader.h:104:26
#2 0x4f2dff in AP4_LinearReader::Advance(bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4LinearReader.cpp:462:17
previously allocated by thread T0 here:
#0 0x4c47ad in operator new(unsigned long) (/home/zt/cnvd/Bento4/Bento4-fuzzer/build/mp42ts+0x4c47ad)
#1 0x4f2360 in AP4_LinearReader::Advance(bool) /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4LinearReader.cpp:422:41
SUMMARY: AddressSanitizer: heap-use-after-free /home/zt/cnvd/Bento4/Bento4-fuzzer/Source/C++/Core/Ap4Sample.h:99:48 in AP4_Sample::GetOffset() const
Shadow bytes around the buggy address:
0x0c087fff8510: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8520: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
0x0c087fff8530: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
0x0c087fff8540: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8550: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
=>0x0c087fff8560: fa fa fd[fd]fd fd fd fd fa fa fd fd fd fd fd fa
0x0c087fff8570: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff8580: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
0x0c087fff8590: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c087fff85a0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c087fff85b0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==3972313==ABORTING
```
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp42ts input /dev/null
```
### Version
```
Ubuntu 20.04 LTS
Bento v1.6.0-641
master date:2024.3.24
```
### **Crash input:**
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/14735426/poc.zip)
[poc1.zip](https://github.com/axiomatic-systems/Bento4/files/14735422/poc1.zip)
[poc2.zip](https://github.com/axiomatic-systems/Bento4/files/14735457/poc2.zip)
| heap-use-after-free with ASAN in mp42ts | https://api.github.com/repos/axiomatic-systems/Bento4/issues/937/comments | 0 | 2024-03-24T11:59:55Z | 2024-03-24T12:44:25Z | https://github.com/axiomatic-systems/Bento4/issues/937 | 2,204,316,177 | 937 |
[
"axiomatic-systems",
"Bento4"
] |
```
>mp4info.exe "E:\.media\Downloads\24-03-21 测试115\a.mp4"
ERROR: cannot open input file E:\.media\Downloads\24-03-21 115\a.mp4 (-4)
>mp4info.exe "E:\.media\Downloads\a-さん.mp4"
ERROR: cannot open input file E:\.media\Downloads\a-.mp4 (-4)
>mp4info.exe "E:\.media\Downloads\a.mp4"
File:
major brand: iso5
minor version: 1
compatible brand: avc1
....
``` | can not handle file with chinese or japanese chars in name | https://api.github.com/repos/axiomatic-systems/Bento4/issues/936/comments | 0 | 2024-03-23T18:58:10Z | 2024-03-23T18:58:10Z | https://github.com/axiomatic-systems/Bento4/issues/936 | 2,204,005,146 | 936 |
[
"axiomatic-systems",
"Bento4"
] |
cmd
```
mp4dash --verbose --encryption-args="--global-option mpeg-cenc.piff-compatible:false" --encryption-key=09e367028f33436ca5dd60ffe6671e70:b42ca3172ee4e69bf51848a59db9cd13 --playready-header=LA_URL:http://playready.directtaps.net/pr/svc/rightsmanager.asmx vvc_1080p_50fps.mp4 --exec-dir ./ -o output_folder
Profiles: urn:mpeg:dash:profile:isoff-live:2011
Encrypting track IDs [1] in vvc_1080p_50fps.mp4
Parsing media file 1: tmpqg_m7xm4 = Encrypted[vvc_1080p_50fps.mp4]
ERROR: 'width'
```
vvc clean DASH/MP4 file can be got from https://dvb.org/specifications/verification-validation/vvc-test-content/ | Not support vvc/h266 codec | https://api.github.com/repos/axiomatic-systems/Bento4/issues/931/comments | 0 | 2024-03-14T07:10:38Z | 2024-03-14T07:10:38Z | https://github.com/axiomatic-systems/Bento4/issues/931 | 2,185,604,579 | 931 |
[
"axiomatic-systems",
"Bento4"
] | Hello! I am a graduate student working on static analysis. When I used a static analysis tool to analyze libming, I found a memory leak defect at line 223 in the file /Bento4/Source/C++/Core/Ap4Processor.cpp. Here is the detailed information about the defect:https://github.com/LuMingYinDetect/Bento4_defects/blob/main/Bento4_detect_3.md | A memory leak defect was found at line 223 in the file /Bento4/Source/C++/Core/Ap4Processor.cpp. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/930/comments | 0 | 2024-03-10T05:49:09Z | 2024-03-10T05:49:09Z | https://github.com/axiomatic-systems/Bento4/issues/930 | 2,177,538,459 | 930 |
[
"axiomatic-systems",
"Bento4"
] | Hello! I am a graduate student working on static analysis. When I used a static analysis tool to analyze libming, I found a memory leak defect at line 2003 in the file /Bento4/Source/C++/Crypto/Ap4AesBlockCipher.cpp. Here is the detailed information about the defect:https://github.com/LuMingYinDetect/Bento4_defects/blob/main/Bento4_detect_2.md | A memory leak defect was discovered at line 2003 in the file /Bento4/Source/C++/Crypto/Ap4AesBlockCipher.cpp. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/929/comments | 0 | 2024-03-10T05:10:35Z | 2024-03-10T05:10:35Z | https://github.com/axiomatic-systems/Bento4/issues/929 | 2,177,529,901 | 929 |
[
"axiomatic-systems",
"Bento4"
] | Hello! I am a graduate student working on static analysis. When I used a static analysis tool to analyze libming, I found a memory leak defect at line 136 in the file /libming/util/makeswf_utils.c. Here is the detailed information about the defect:https://github.com/LuMingYinDetect/Bento4_defects/blob/main/Bento4_detect_2.md | A memory leak defect was discovered at line 2003 in the file /Bento4/Source/C++/Crypto/Ap4AesBlockCipher.cpp. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/928/comments | 0 | 2024-03-10T05:09:35Z | 2024-03-10T05:09:46Z | https://github.com/axiomatic-systems/Bento4/issues/928 | 2,177,529,654 | 928 |
[
"axiomatic-systems",
"Bento4"
] | Hello! I am a graduate student working on static analysis. When I used a static analysis tool to analyze libming, I found a memory leak defect at line 77 in the file /Bento4/Source/C++/Core/Ap4IsmaCryp.cpp. Here is the detailed information about the defect: https://github.com/LuMingYinDetect/Bento4_defects/blob/main/Bento4_detect_1.md | There is a memory leak defect at line 77 in the file /Bento4/Source/C++/Core/Ap4IsmaCryp.cpp. | https://api.github.com/repos/axiomatic-systems/Bento4/issues/927/comments | 0 | 2024-03-10T03:43:49Z | 2024-03-10T03:43:49Z | https://github.com/axiomatic-systems/Bento4/issues/927 | 2,177,507,992 | 927 |
[
"axiomatic-systems",
"Bento4"
] | mp4dump incorrectly assumes entry/media time and segment duration are 32-bit signed -- if version == 1, these fields are 64-bit signed. | elst ignores version | https://api.github.com/repos/axiomatic-systems/Bento4/issues/925/comments | 0 | 2024-03-08T01:33:18Z | 2024-03-22T15:36:04Z | https://github.com/axiomatic-systems/Bento4/issues/925 | 2,175,113,665 | 925 |
[
"axiomatic-systems",
"Bento4"
] | trying to run below command
getting `ERROR: invalid argument syntax for --pssh`
```
mp4encrypt \
--show-progress \
--method MPEG-CENC \
--key 1:ad4abff38eXXXXXXdb1dc4:35582dcfaca35XXXXXXfc876de \
--property 1:KID:2380edc042XXXXX3 \
--pssh-v1 edef8ba9-79d6-4ace-a3c8-27dcd51d21ed:./ttt.bin \
PRW-YYY-frag.mp4 PRW-YYY-cenc.mp4
```
please advice, also if you can give example how to pass base64 pssh for widevine and playready and how to use mp4encrypt for fairplay
| mp4encrypt with pssh | https://api.github.com/repos/axiomatic-systems/Bento4/issues/924/comments | 1 | 2024-03-05T12:36:20Z | 2024-03-06T10:15:39Z | https://github.com/axiomatic-systems/Bento4/issues/924 | 2,169,106,579 | 924 |
[
"axiomatic-systems",
"Bento4"
] | Steps to reproduce:
1. Create folder "ąćęłńóśżź" as a working folder.
2. Enter:
N_m3u8DL-RE.exe https://vcze131.cda.pl/1670449/1670449.mpd?uid=5983825771 --key 65353534306438366535346135346161:39303439626631336363393537303934 -M format=mkv
3. Output mp4 isn't decrypted.
With --use-shaka-packager file is decrypted correctly.
| Problem with national characters | https://api.github.com/repos/axiomatic-systems/Bento4/issues/923/comments | 6 | 2024-02-27T17:18:27Z | 2024-03-05T12:34:18Z | https://github.com/axiomatic-systems/Bento4/issues/923 | 2,157,218,601 | 923 |
[
"axiomatic-systems",
"Bento4"
] | Hi, barbibulle.
I checked your program mp4mux.exe, the command is dv-profile 5 and as a result video.mp4, he created where does Dolby Vision show from? There was also the original without dolby vision, why add it specifically mp4mux.exe --dv-profile 5 create dolby vision? If there is no dolby vision in the video and still --dv-profile 5, then it will not be dolby vision.
mp4muxer.exe version 1.3.3 I specially made --dv-profile 5 --dvh1flag until the end of creating mp4 and there is no Dolby Vision, that's how it definitely gives out cleanly. And you mp4mux.exe --dv-profile 5 false files or something from Dolby Vision.
https://radikal.host/i/cGX2Go
https://radikal.host/i/cGXM2K
| mp4mux.exe false dolby vision | https://api.github.com/repos/axiomatic-systems/Bento4/issues/922/comments | 0 | 2024-02-21T14:01:56Z | 2024-02-25T16:39:20Z | https://github.com/axiomatic-systems/Bento4/issues/922 | 2,146,834,557 | 922 |
[
"axiomatic-systems",
"Bento4"
] | ## Environment
Ubuntu 22.04.3 LTS
## Compiler
clang version 11.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
## Affected Version
Bento4 v1.6.0-641
## Step to reproduce
```
pushd Bento4
mkdir bld
pushd bld
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-fsanitize=address -fno-inline" ..
make -j4
./mp42aac <PoCfile> /dev/null
```
## Contents of PoCfile
```
Unzip the file below.
```
[PoC.zip](https://github.com/axiomatic-systems/Bento4/files/14081824/PoC.zip)
## Expected behavior
Print error or warning messages handled within mp42aac.
## Current behavior
```
==1184923==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x4fa217 in operator new(unsigned long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:99:3
#1 0x63c025 in AP4_DescriptorFactory::CreateDescriptorFromStream(AP4_ByteStream&, AP4_Descriptor*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4DescriptorFactory.cpp:98:26
#2 0x6481e6 in AP4_EsdsAtom::AP4_EsdsAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:76:9
#3 0x647e25 in AP4_EsdsAtom::Create(unsigned int, AP4_ByteStream&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4EsdsAtom.cpp:52:16
#4 0x5bfeae in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:508:20
#5 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#6 0x607ad4 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#7 0x5439d3 in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:420:5
#8 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#9 0x552854 in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#10 0x551bc2 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#11 0x5bf8d0 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#12 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#13 0x607ad4 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#14 0x607868 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#15 0x5bf3ec in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#16 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#17 0x607bd3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#18 0x607868 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#19 0x5bf3ec in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#20 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#21 0x607bd3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#22 0x607868 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#23 0x5bf3ec in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:816:20
#24 0x5bbc50 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#25 0x607bd3 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#26 0x607868 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/SLICER/Google_testsuite_scripts//SLICER/Google_testsuite_scripts/scripts/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
SUMMARY: AddressSanitizer: 32 byte(s) leaked in 1 allocation(s).
``` | Memory leaks in Ap4DescriptorFactory.cpp:98 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/921/comments | 0 | 2024-01-29T08:47:19Z | 2024-02-17T17:22:16Z | https://github.com/axiomatic-systems/Bento4/issues/921 | 2,104,961,150 | 921 |
[
"axiomatic-systems",
"Bento4"
] | In an environment where disk usage is simulated using memory, I am using mp4decrypt. I attempted to delete the portions of the original file that have already been read during the execution of mp4decrypt. However, I encountered errors in doing so, as some blocks were being read twice. Can you provide some insights into the patterns, such as whether there is an initial random reading of fixed-sized blocks followed by sequential reading of other blocks? | Implementation details about mp4decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/920/comments | 0 | 2024-01-15T09:20:00Z | 2024-01-23T01:15:36Z | https://github.com/axiomatic-systems/Bento4/issues/920 | 2,081,595,353 | 920 |
[
"axiomatic-systems",
"Bento4"
] | ### Envrionment
```bash
ubuntu ~/lab/Bento4-clean/cmakebuild ◈ v1.5.1-628 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
```
### Compiler
```bash
ubuntu ~/lab/Bento4-clean/cmakebuild ◈ v1.5.1-628 clang -v
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64
```
### Step to reproduce
```bash
git clone https://github.com/axiomatic-systems/Bento4.git -b v1.5.1-628
pushd Bento4
mkdir cmakebuild
pushd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-fsanitize=address -fno-inline" ..
make
mp4aac poc.mp4 out
```
### Affected Version
Bento4 v1.5.1-628 (https://github.com/axiomatic-systems/Bento4/tree/v1.5.1-628)
### Contents of PoC file
[poc.zip](https://github.com/axiomatic-systems/Bento4/files/13929540/poc.zip)
### Current Behavior
* stderr (Given by ASAN)
```
ERROR: no audio track found
=================================================================
==29053==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6ec9a341 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4File.cpp:108:27
#2 0x55cf6ec9aa78 in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4File.cpp:78:5
#3 0x55cf6ec89c8e in main /home/ubuntu/lab/Bento4_AFL/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#4 0x7f3f8e9ddd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
Indirect leak of 176 byte(s) in 2 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6ecdcff5 in AP4_Track::AP4_Track(AP4_TrakAtom&, AP4_ByteStream&, unsigned int) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4Track.cpp:242:25
Indirect leak of 48 byte(s) in 2 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6eca4bec in AP4_List<AP4_Track>::Add(AP4_Track*) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4List.h:160:16
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6ed1eac1 in AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) /home/ubuntu/lab/Bento4_AFL/Source/C++/System/StdC/Ap4StdCFileByteStream.cpp:175:14
#2 0x55cf6ec89b79 in main /home/ubuntu/lab/Bento4_AFL/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:236:14
#3 0x7f3f8e9ddd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6eca3029 in AP4_Movie::AP4_Movie(AP4_MoovAtom*, AP4_ByteStream&, bool) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4Movie.cpp:114:28
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x55cf6ec8723d in operator new(unsigned long) (/home/ubuntu/lab/Bento4_AFL/cmakebuild/mp42aac+0x16223d) (BuildId: ffe7bbaa2d49eb5a6b20555c850617a61dc43049)
#1 0x55cf6eca3029 in AP4_Movie::AP4_Movie(AP4_MoovAtom*, AP4_ByteStream&, bool) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4Movie.cpp:114:28
#2 0x55cf6ec9aa78 in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/ubuntu/lab/Bento4_AFL/Source/C++/Core/Ap4File.cpp:78:5
#3 0x55cf6ec89c8e in main /home/ubuntu/lab/Bento4_AFL/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#4 0x7f3f8e9ddd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
SUMMARY: AddressSanitizer: 416 byte(s) leaked in 8 allocation(s).
```
* stderr (valgrind)
```
==8898== Memcheck, a memory error detector
==8898== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==8898== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==8898== Command: ./mp42aac /home/ubuntu/lab/Bento4/crashes/id_000006,sig_06,src_000004,time_55114263,execs_1191083,op_flip1,pos_1217 out
==8898==
ERROR: no audio track found
==8898==
==8898== HEAP SUMMARY:
==8898== in use at exit: 888 bytes in 9 blocks
==8898== total heap usage: 200 allocs, 191 frees, 93,975 bytes allocated
==8898==
==8898== 48 bytes in 1 blocks are indirectly lost in loss record 1 of 6
==8898== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x192D1E: AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x193178: AP4_FileByteStream::Create(char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FE68: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== 48 bytes in 2 blocks are indirectly lost in loss record 2 of 6
==8898== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x175298: AP4_List<AP4_Track>::Add(AP4_Track*) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x174AED: AP4_Movie::AP4_Movie(AP4_MoovAtom*, AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172FC7: AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172DE6: AP4_File::AP4_File(AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FF07: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== 80 bytes in 2 blocks are indirectly lost in loss record 3 of 6
==8898== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x174AB8: AP4_Movie::AP4_Movie(AP4_MoovAtom*, AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172FC7: AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172DE6: AP4_File::AP4_File(AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FF07: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== 176 bytes in 2 blocks are indirectly lost in loss record 4 of 6
==8898== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x184E1D: AP4_Track::AP4_Track(AP4_TrakAtom&, AP4_ByteStream&, unsigned int) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x174AD2: AP4_Movie::AP4_Movie(AP4_MoovAtom*, AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172FC7: AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172DE6: AP4_File::AP4_File(AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FF07: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== 416 (64 direct, 352 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 6
==8898== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x172FAD: AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x172DE6: AP4_File::AP4_File(AP4_ByteStream&, bool) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FF07: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== 472 bytes in 1 blocks are still reachable in loss record 6 of 6
==8898== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==8898== by 0x4B2C64D: __fopen_internal (iofopen.c:65)
==8898== by 0x4B2C64D: fopen@@GLIBC_2.2.5 (iofopen.c:86)
==8898== by 0x192B2A: fopen_s(_IO_FILE**, char const*, char const*) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x192C58: AP4_StdcFileByteStream::Create(AP4_FileByteStream*, char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x193178: AP4_FileByteStream::Create(char const*, AP4_FileByteStream::Mode, AP4_ByteStream*&) (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898== by 0x16FE68: main (in /home/ubuntu/lab/Bento4-clean/cmakebuild/mp42aac)
==8898==
==8898== LEAK SUMMARY:
==8898== definitely lost: 64 bytes in 1 blocks
==8898== indirectly lost: 352 bytes in 7 blocks
==8898== possibly lost: 0 bytes in 0 blocks
==8898== still reachable: 472 bytes in 1 blocks
==8898== suppressed: 0 bytes in 0 blocks
==8898==
==8898== For lists of detected and suppressed errors, rerun with: -s
==8898== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
```
### Analysis
https://github.com/axiomatic-systems/Bento4/blob/1529b83f89d52958b811469fc3ac5206639a3d0f/Source/C%2B%2B/Core/Ap4Movie.cpp#L117-L123
On `AP4_Movie::AP4_Movie`, parsing tracks and added into m_Tracks list, but it seems that mp42aac cannot correctly delete when we got an `no audio track found` error. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted mp4 file.
| Memory leaks in mp42aac on adding / deleting AP4_Track::AP4_Tracks | https://api.github.com/repos/axiomatic-systems/Bento4/issues/919/comments | 1 | 2024-01-13T21:23:38Z | 2024-02-21T22:47:29Z | https://github.com/axiomatic-systems/Bento4/issues/919 | 2,080,480,764 | 919 |
[
"axiomatic-systems",
"Bento4"
] | The logic of generating codec string for AV1 had a bug. It is giving same Codec String for all the generated manifests

On further debugging found that the incorrect value is being returned from mp4info
https://github.com/axiomatic-systems/Bento4/blob/1529b83f89d52958b811469fc3ac5206639a3d0f/Source/C%2B%2B/Core/Ap4SampleDescription.cpp#L836
| Incorrect Codec String for AV1 Streams from mp4info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/917/comments | 0 | 2024-01-11T13:41:28Z | 2024-01-11T13:41:28Z | https://github.com/axiomatic-systems/Bento4/issues/917 | 2,076,689,064 | 917 |
[
"axiomatic-systems",
"Bento4"
] | Hi, barbibulle! At you Bento4 generation DTS-HD, DTS:X and MLP ERROR: 'sample_rate'. Please update support DTS-HD, DTS:X and MLP. Thank you in advance | WebOS 23 DTS-HD, DTS:X and MLP support | https://api.github.com/repos/axiomatic-systems/Bento4/issues/916/comments | 2 | 2024-01-07T08:52:57Z | 2024-02-21T06:09:34Z | https://github.com/axiomatic-systems/Bento4/issues/916 | 2,069,046,451 | 916 |
[
"axiomatic-systems",
"Bento4"
] | Dear Bento4 developers, I used AFL++ to fuzz test Bento4 and found some problems.
To debug a program built with ASan, here is some output
```
=================================================================
==1982814==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000011f at pc 0x0000008aa64d bp 0x7fffba272270 sp 0x7fffba272268
READ of size 1 at 0x60200000011f thread T0
#0 0x8aa64c in AP4_Dec3Atom::AP4_Dec3Atom(unsigned int, unsigned char const*) /home/zt/Bento4/Source/C++/Core/Ap4Dec3Atom.cpp:161:57
#1 0x8a1f6e in AP4_Dec3Atom::Create(unsigned int, AP4_ByteStream&) /home/zt/Bento4/Source/C++/Core/Ap4Dec3Atom.cpp:56:16
#2 0x703433 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:769:24
#3 0x6f99a8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x833287 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#5 0x588686 in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:420:5
#6 0x51763d in AP4_EncaSampleEntry::AP4_EncaSampleEntry(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/Bento4/Source/C++/Core/Ap4Protection.cpp:74:5
#7 0x70135f in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:298:24
#8 0x6f99a8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#9 0x5bbc96 in AP4_StsdAtom::AP4_StsdAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:101:13
#10 0x5b5c06 in AP4_StsdAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/Bento4/Source/C++/Core/Ap4StsdAtom.cpp:57:16
#11 0x7018e6 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:458:20
#12 0x6f99a8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#13 0x6f79ac in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#14 0x4f0896 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/zt/Bento4/Source/C++/Core/Ap4File.cpp:104:12
#15 0x4f1ec4 in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/zt/Bento4/Source/C++/Core/Ap4File.cpp:78:5
#16 0x4ca35b in main /home/zt/Bento4/Source/C++/Apps/Mp42Aac/Mp42Aac.cpp:250:22
#17 0x7fadc2fd5082 in __libc_start_main /build/glibc-wuryBv/glibc-2.31/csu/../csu/libc-start.c:308:16
#18 0x41eccd in _start (/home/zt/Bento4/build/mp42aac+0x41eccd)
0x60200000011f is located 0 bytes to the right of 15-byte region [0x602000000110,0x60200000011f)
allocated by thread T0 here:
#0 0x4c6c8d in operator new[](unsigned long) (/home/zt/Bento4/build/mp42aac+0x4c6c8d)
#1 0x4e9450 in AP4_DataBuffer::AP4_DataBuffer(unsigned int) /home/zt/Bento4/Source/C++/Core/Ap4DataBuffer.cpp:55:16
#2 0x703433 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:769:24
#3 0x6f99a8 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/zt/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#4 0x833287 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/zt/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#5 0x588686 in AP4_AudioSampleEntry::AP4_AudioSampleEntry(unsigned int, unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/zt/Bento4/Source/C++/Core/Ap4SampleEntry.cpp:420:5
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/zt/Bento4/Source/C++/Core/Ap4Dec3Atom.cpp:161:57 in AP4_Dec3Atom::AP4_Dec3Atom(unsigned int, unsigned char const*)
Shadow bytes around the buggy address:
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00
0x0c047fff8010: fa fa 04 fa fa fa fd fa fa fa 01 fa fa fa 00 fa
=>0x0c047fff8020: fa fa 00[07]fa fa 00 07 fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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
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
==1982814==ABORTING
```
### **Crash input:**
https://github.com/zhangteng0526/crashes/blob/main/Bento4/input1
### **Validation steps**
```
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
./mp42aac input1 /dev/null
```
### **环境**
```
Ubuntu 20.04 LTS
Bento v1.6.0-641-2-g1529b83
```
| Heap-buffer-overflow with ASAN in mp42aac | https://api.github.com/repos/axiomatic-systems/Bento4/issues/914/comments | 0 | 2023-12-28T03:49:43Z | 2024-02-17T18:14:52Z | https://github.com/axiomatic-systems/Bento4/issues/914 | 2,057,955,798 | 914 |
[
"axiomatic-systems",
"Bento4"
] | Does Bento4 support outputting Low-Latency DASH files? Additionally, can it package DRM-encrypted files for Low-Latency DASH? | Bento4 Support Low-Latency Dash | https://api.github.com/repos/axiomatic-systems/Bento4/issues/913/comments | 0 | 2023-12-12T08:48:57Z | 2023-12-12T08:50:41Z | https://github.com/axiomatic-systems/Bento4/issues/913 | 2,037,268,960 | 913 |
[
"axiomatic-systems",
"Bento4"
] | I wrote to you earlier, you didn't finish anything 641, Bento4 problem!!! https://github.com/axiomatic-systems/Bento4/issues/867
C:\Encoder\Bento4\bin\mp4dash.bat **D:\1\avc1_720.avc D:\1\avc1_4K.avc** --hls --use-segment-template-number-padding --force -o C:\temp\TEST
ERROR: 'tracks'
C:\Encoder\Bento4\bin\mp4dash.bat **[track=1]D:\1\avc1_720.avc [track=2]D:\1\avc1_4K.avc** --hls --use-segment-template-number-padding --force -o C:\temp\TEST
ERROR: 'tracks'
C:\Encoder\Bento4\bin\mp4dash.bat **[track-1]D:\1\avc1_720.avc [track-2]D:\1\avc11_4K.avc** --hls --use-segment-template-number-padding --force -o C:\temp\TEST
ERROR: Invalid syntax for media file spec
C:\Encoder\Bento4\bin\mp4dash.bat **[language=ru]D:\1\avc1_720.avc [language=ru2]D:\1\avc11_4K.avc** --hls --use-segment-template-number-padding --force -o C:\temp\TEST
ERROR: 'tracks'
There should be a folder 2 to create /video/avc1/**1** and /video/avc1/**2**. How to create it perfectly now hvc1 / two packs **1** and **2** It works, dvh1 / two packs **1** and **2** It works, but only avc1 all error.
How many times has it been useless to fix it, I'm waiting until version 642 is updated. | avc 720p and avc 4K ERROR: 'tracks | https://api.github.com/repos/axiomatic-systems/Bento4/issues/912/comments | 1 | 2023-12-06T14:38:14Z | 2023-12-09T08:00:28Z | https://github.com/axiomatic-systems/Bento4/issues/912 | 2,028,705,495 | 912 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I have encountered an uncommon issue with mp4decrypt, where it successfully decrypts an MP4 file, but the resulting decrypted audio track cannot be played correctly.
Here are the links to the raw audio and video MP4 segment files:
- Raw Audio MP4 Segment File: [Link](https://ufile.io/aqpb7dfi)
- Raw Video MP4 Segment File: [Link](https://ufile.io/vqk8tnuu)
Both tracks share the same decryption key: `49642d2151ac6c3f8453bbfc4b3fdfc0`.
The video segment decrypts successfully and can be played and viewed without any issues (e.g., using VLC).
However, the audio segment does not decrypt correctly, despite mp4decrypt not reporting any errors.
By inspecting the mp4 structure It can be observed that the only difference between those two segments is that audio one does not have senc, saiz and saio boxes at all.
| mp4dcrypt not decrypting correctly | https://api.github.com/repos/axiomatic-systems/Bento4/issues/911/comments | 2 | 2023-12-02T23:18:15Z | 2023-12-03T10:12:30Z | https://github.com/axiomatic-systems/Bento4/issues/911 | 2,022,250,364 | 911 |
[
"axiomatic-systems",
"Bento4"
] | I am trying to download and decode this video. I have the right key for this.
https://v.dstv.com/proxy/catchup/STREAMING_WEB/08/100483307_23ABP3A1_SUN/100483307_23ABP3A1_SUN.ism/.mpd?filter=%28type%3D%3D%22video%22%26%26MaxHeight%3C%3D576%29%7C%7C%28%28type%3D%3D%22audio%22%26%26systemBitrate%3E30000%29%29
Key: 9ba98f85ff3f44798c183f92711697e4 (KID=edef8ba979d64acea3c827dcd51d21ed)
Unfortunately, I have not had any success with it so far.
I have taken these steps, but the end result is an unplayable video file.
Step 1: Download
yt-dlp --allow-u "https://v.dstv.com/proxy/catchup/STREAMING_WEB/07/100509388_23AZ24A1_SUN/100509388_23AZ24A1_SUN.ism/.mpd?filter=%28type%3D%3D%22video%22%26%26MaxHeight%3C%3D576%29%7C%7C%28%28type%3D%3D%22audio%22%26%26systemBitrate%3E30000%29%29"
Step 2: Decrypt
mp4decrypt --key edef8ba979d64acea3c827dcd51d21ed:9ba98f85ff3f44798c183f92711697e4 video_encrypted.mp4 video_decrypted.mp4
What am I doing wrong?
Or do I have to decode the segments individually and only then can I assemble them into a video with FFmpeg? | mp4decrypt wont decrypt this video | https://api.github.com/repos/axiomatic-systems/Bento4/issues/910/comments | 0 | 2023-11-29T09:18:35Z | 2023-11-29T09:18:35Z | https://github.com/axiomatic-systems/Bento4/issues/910 | 2,016,148,642 | 910 |
[
"axiomatic-systems",
"Bento4"
] | Hello, there.
There is an out-of-bound write in SetDataOffset, Ap4TrunAtom.h:80 in the latest commit [1529b83](https://github.com/axiomatic-systems/Bento4/commit/1529b83f89d52958b811469fc3ac5206639a3d0f), which also affects versions ranging from v1.4.2-590 to v1.6.0-641.
## How to reproduce
Here is the detailed reproduction steps using docker.
```bash
docker pull ubuntu:20.04 && docker run -it ubuntu:20.04 bash
## now step into the container
apt update && apt install wget git unzip gcc g++ make cmake libgc-dev -y
git clone https://github.com/axiomatic-systems/Bento4.git && pushd Bento4
## build binary mp4decrypt
export CC="gcc"
export CXX="g++"
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
cmake . && make -j
## obtain poc
wget https://github.com/axiomatic-systems/Bento4/files/13471353/mp4decrypt_poc2.zip
unzip mp4decrypt_poc2.zip
## reproducing command
./mp4decrypt mp4decrypt_poc2 /dev/null
```
## Platform
- OS : ubuntu 20.04 (docker)
- gcc version 9.4.0 (default)
## ASAN
Here is the reproduce trace reported by ASAN:
```bash
root@d3932adedebb:/Bento4# ./mp4decrypt ./mp4decrypt_poc2 /dev/null
AddressSanitizer:DEADLYSIGNAL
=================================================================
==31102==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x555b2eccb539 bp 0x7fff0b8cdc00 sp 0x7fff0b8cdbf0 T0)
==31102==The signal is caused by a WRITE memory access.
==31102==Hint: address points to the zero page.
#0 0x555b2eccb538 in AP4_TrunAtom::SetDataOffset(int) /Bento4/Source/C++/Core/Ap4TrunAtom.h:80
#1 0x555b2ecc6ac0 in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /Bento4/Source/C++/Core/Ap4Processor.cpp:285
#2 0x555b2ecca874 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /Bento4/Source/C++/Core/Ap4Processor.cpp:721
#3 0x555b2eccb32e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /Bento4/Source/C++/Core/Ap4Processor.cpp:771
#4 0x555b2ec43c3e in main /Bento4/Source/C++/Apps/Mp4Decrypt/Mp4Decrypt.cpp:258
#5 0x7f949d32f082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#6 0x555b2ec4286d in _start (/Bento4/mp4decrypt+0x31286d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /Bento4/Source/C++/Core/Ap4TrunAtom.h:80 in AP4_TrunAtom::SetDataOffset(int)
==31102==ABORTING
```
## Affected Version
v1.4.2-590-v1.6.0-641
## PoC
The PoC is available at [mp4decrypt_poc2.zip](https://github.com/axiomatic-systems/Bento4/files/13471353/mp4decrypt_poc2.zip)
Thanks for your time!
| [BUG] OOB Write Bug in mp4decrypt, SetDataOffset, Ap4TrunAtom.h:80 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/909/comments | 1 | 2023-11-27T08:05:41Z | 2023-11-27T08:26:51Z | https://github.com/axiomatic-systems/Bento4/issues/909 | 2,011,721,509 | 909 |
[
"axiomatic-systems",
"Bento4"
] | Hello, there.
There is an out-of-bound read in GetTrackId, Ap4TfhdAtom.h:71, in the latest commit commit [1529b83](https://github.com/axiomatic-systems/Bento4/commit/1529b83f89d52958b811469fc3ac5206639a3d0f), which also affects versions ranging from v1.4.2-590 to v1.6.0-641.
## How to reproduce
Here are the detailed reproduction steps using docker.
```bash
docker pull ubuntu:20.04 && docker run -it ubuntu:20.04 bash
## now step into the container
apt update && apt install wget git unzip gcc g++ cmake make libgc-dev -y
git clone https://github.com/axiomatic-systems/Bento4.git && pushd Bento4
## build binary mp4decrypt
export CC="gcc"
export CXX="g++"
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
cmake . && make -j
## obtain poc
wget https://github.com/axiomatic-systems/Bento4/files/13471223/mp4decrypt_poc1.zip
unzip mp4decrypt_poc1.zip
## reproducing command
./mp4decrypt mp4decrypt_poc1 /dev/null
```
## Platform
- OS : ubuntu 20.04 (docker)
- gcc version 9.4.0 (default)
## ASAN
Here is the reproduction trace reported by ASAN:
```bash
root@d3932adedebb:/Bento4# ./mp4decrypt ./mp4decrypt_poc1 /dev/null
AddressSanitizer:DEADLYSIGNAL
=================================================================
==31100==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x563bbd4e09bd bp 0x7ffe9337ff10 sp 0x7ffe9337ff00 T0)
==31100==The signal is caused by a READ memory access.
==31100==Hint: address points to the zero page.
#0 0x563bbd4e09bc in AP4_TfhdAtom::GetTrackId() /Bento4/Source/C++/Core/Ap4TfhdAtom.h:71
#1 0x563bbd535eab in AP4_Processor::ProcessFragments(AP4_MoovAtom*, AP4_List<AP4_AtomLocator>&, AP4_ContainerAtom*, AP4_SidxAtom*, unsigned long long, AP4_ByteStream&, AP4_ByteStream&) /Bento4/Source/C++/Core/Ap4Processor.cpp:192
#2 0x563bbd53a874 in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_ByteStream*, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /Bento4/Source/C++/Core/Ap4Processor.cpp:721
#3 0x563bbd53b32e in AP4_Processor::Process(AP4_ByteStream&, AP4_ByteStream&, AP4_Processor::ProgressListener*, AP4_AtomFactory&) /Bento4/Source/C++/Core/Ap4Processor.cpp:771
#4 0x563bbd4b3c3e in main /Bento4/Source/C++/Apps/Mp4Decrypt/Mp4Decrypt.cpp:258
#5 0x7fbc890ec082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#6 0x563bbd4b286d in _start (/Bento4/mp4decrypt+0x31286d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /Bento4/Source/C++/Core/Ap4TfhdAtom.h:71 in AP4_TfhdAtom::GetTrackId()
==31100==ABORTING
```
## Affected Version
v1.4.2-590-v1.6.0-641
## PoC
The PoC is available at [mp4decrypt_poc1.zip](https://github.com/axiomatic-systems/Bento4/files/13471223/mp4decrypt_poc1.zip)
Thanks for your time!
| [BUG] OOB Read Bug in mp4decrypt, GetTrackId, Ap4TfhdAtom.h:71 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/908/comments | 1 | 2023-11-27T07:59:46Z | 2023-11-27T08:42:43Z | https://github.com/axiomatic-systems/Bento4/issues/908 | 2,011,712,795 | 908 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
There is an out-of-bound read in AP4_MdhdAtom, Ap4MdhdAtom.cpp:69, in the latest commit [1529b83](https://github.com/axiomatic-systems/Bento4/commit/1529b83f89d52958b811469fc3ac5206639a3d0f), which also affects versions ranging from v1.4.2-590 to v1.6.0-641.
## How to reproduce
Here are the detailed reproduction steps using docker.
```bash
docker pull ubuntu:20.04 && docker run -it ubuntu:20.04 bash
## now step into the container
apt update && apt install wget git unzip gcc g++ make cmake libgc-dev -y
git clone https://github.com/axiomatic-systems/Bento4.git && pushd Bento4
## build binary mp4fragment
export CC="gcc"
export CXX="g++"
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
cmake . && make -j
## obtain poc
wget https://github.com/axiomatic-systems/Bento4/files/13470851/mp4fragment_poc1.zip
unzip mp4fragment_poc1.zip
## reproducing command
./mp4fragment poc /dev/null
```
## Platform
- OS : ubuntu 20.04 (docker)
- gcc version 9.4.0 (default)
## ASAN
Here is the reproduction trace reported by ASAN:
```bash
root@d3932adedebb:/Bento4# ./mp4fragment ./mp4fragment_poc1 /dev/null
found regular I-frame interval: 1 frames (at -nan frames per second)
unable to autodetect fragment duration, using default
AddressSanitizer:DEADLYSIGNAL
=================================================================
==25771==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fbb24bbe6f5 bp 0x7ffdb6350650 sp 0x7ffdb634fdc8 T0)
==25771==The signal is caused by a READ memory access.
==25771==Hint: address points to the zero page.
#0 0x7fbb24bbe6f4 (/lib/x86_64-linux-gnu/libc.so.6+0x1886f4)
#1 0x7fbb24fdb90b in __interceptor_strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:352
#2 0x55f5f8014097 in AP4_MdhdAtom::AP4_MdhdAtom(unsigned long long, unsigned long long, unsigned int, unsigned long long, char const*) /Bento4/Source/C++/Core/Ap4MdhdAtom.cpp:69
#3 0x55f5f8077a69 in AP4_TrakAtom::AP4_TrakAtom(AP4_SampleTable*, unsigned int, char const*, unsigned int, unsigned long long, unsigned long long, unsigned long long, unsigned int, unsigned long long, unsigned short, char const*, unsigned int, unsigned int, unsigned short, unsigned short, int const*) /Bento4/Source/C++/Core/Ap4TrakAtom.cpp:147
#4 0x55f5f80751f4 in AP4_Track::AP4_Track(AP4_SampleTable*, unsigned int, unsigned int, unsigned long long, unsigned int, unsigned long long, AP4_Track const*) /Bento4/Source/C++/Core/Ap4Track.cpp:198
#5 0x55f5f7fa87b9 in Fragment /Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:368
#6 0x55f5f7fb0d5e in main /Bento4/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp:1475
#7 0x7fbb24a5a082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#8 0x55f5f7fa790d in _start (/Bento4/mp4fragment+0x32090d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x1886f4)
==25771==ABORTING
```
## Affected Version
v1.4.2-590-v1.6.0-641
## PoC
The PoC is available at
[mp4fragment_poc1.zip](https://github.com/axiomatic-systems/Bento4/files/13470851/mp4fragment_poc1.zip)
Thanks for your time! | [BUG] OOB Read in mp4fragment , AP4_MdhdAtom, Ap4MdhdAtom.cpp:69 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/907/comments | 1 | 2023-11-27T07:34:36Z | 2023-11-27T08:40:56Z | https://github.com/axiomatic-systems/Bento4/issues/907 | 2,011,670,248 | 907 |
[
"axiomatic-systems",
"Bento4"
] | Hi,
There is a heap overflow in WriteSample, Mp42Hevc/Mp42Hevc.cpp:96, in the latest commit [1529b83](https://github.com/axiomatic-systems/Bento4/commit/1529b83f89d52958b811469fc3ac5206639a3d0f), which also affects versions ranging from v1.5.1-628 to v1.6.0-641.
## How to reproduce
Here are the detailed reproduction steps using docker.
```bash
docker pull ubuntu:20.04 && docker run -it ubuntu:20.04 bash
## now step into the container
apt update && apt install wget git unzip gcc g++ cmake libgc-dev make -y
git clone https://github.com/axiomatic-systems/Bento4.git && pushd Bento4
## build binary mp42hevc
export CC="gcc"
export CXX="g++"
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
cmake . && make -j
## obtain poc
wget https://github.com/axiomatic-systems/Bento4/files/13470503/mp42hevc_poc1.zip
unzip mp42hevc_poc1.zip
## reproducing command
./mp42hevc mp42hevc_poc1 /dev/null
```
## Platform
- OS : ubuntu 20.04 (docker)
- gcc version 9.4.0 (default)
## ASAN
Here is the reproduce trace reported by ASAN:
```bash
root@d3932adedebb:/Bento4-1529b83# ./mp42hevc ./mp42hevc_poc1 /dev/null
Video Track:
duration: 1000 ms
sample count: 12
=================================================================
==4816==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x607000000768 at pc 0x555d83926b79 bp 0x7ffdc7685210 sp 0x7ffdc7685200
READ of size 1 at 0x607000000768 thread T0
#0 0x555d83926b78 in WriteSample /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:96
#1 0x555d83928341 in WriteSamples /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:326
#2 0x555d83928a6f in main /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:406
#3 0x7f8da8c39082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#4 0x555d8392684d in _start (/Bento4-1529b83/mp42hevc+0x31284d)
0x607000000768 is located 0 bytes to the right of 72-byte region [0x607000000720,0x607000000768)
allocated by thread T0 here:
#0 0x7f8da9262787 in operator new[](unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cc:107
#1 0x555d8392fc94 in AP4_DataBuffer::ReallocateBuffer(unsigned int) /Bento4-1529b83/Source/C++/Core/Ap4DataBuffer.cpp:210
#2 0x555d8392f993 in AP4_DataBuffer::SetDataSize(unsigned int) /Bento4-1529b83/Source/C++/Core/Ap4DataBuffer.cpp:151
#3 0x555d839431c9 in AP4_Sample::ReadData(AP4_DataBuffer&, unsigned int, unsigned int) /Bento4-1529b83/Source/C++/Core/Ap4Sample.cpp:156
#4 0x555d83942f50 in AP4_Sample::ReadData(AP4_DataBuffer&) /Bento4-1529b83/Source/C++/Core/Ap4Sample.cpp:127
#5 0x555d8395d49c in AP4_Track::ReadSample(unsigned int, AP4_Sample&, AP4_DataBuffer&) /Bento4-1529b83/Source/C++/Core/Ap4Track.cpp:475
#6 0x555d839282e3 in WriteSamples /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:325
#7 0x555d83928a6f in main /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:406
#8 0x7f8da8c39082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
SUMMARY: AddressSanitizer: heap-buffer-overflow /Bento4-1529b83/Source/C++/Apps/Mp42Hevc/Mp42Hevc.cpp:96 in WriteSample
Shadow bytes around the buggy address:
0x0c0e7fff8090: 00 00 00 00 00 00 00 00 00 fa fa fa fa fa 00 00
0x0c0e7fff80a0: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd
0x0c0e7fff80b0: fd fd fd fd fd fd fa fa fa fa 00 00 00 00 00 00
0x0c0e7fff80c0: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c0e7fff80d0: 00 fa fa fa fa fa 00 00 00 00 00 00 00 00 00 fa
=>0x0c0e7fff80e0: fa fa fa fa 00 00 00 00 00 00 00 00 00[fa]fa fa
0x0c0e7fff80f0: fa fa fd fd fd fd fd fd fd fd fd fa fa fa fa fa
0x0c0e7fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e7fff8130: 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
==4816==ABORTING
```
## Affected Version
v1.5.1-628-v1.6.0-641
## PoC
The PoC is available at [mp42hevc_poc1.zip](https://github.com/axiomatic-systems/Bento4/files/13470503/mp42hevc_poc1.zip)
Thanks for your time ! | [BUG] Heap overflow in mp42Hevc, WriteSample, Mp42Hevc.cpp:96 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/906/comments | 1 | 2023-11-27T07:04:13Z | 2023-11-27T08:44:38Z | https://github.com/axiomatic-systems/Bento4/issues/906 | 2,011,624,325 | 906 |
[
"axiomatic-systems",
"Bento4"
] | Hello, barbibulle! v1.6.0-641 what is there updated news? I don't see where the list is? | v1.6.0-641 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/904/comments | 4 | 2023-11-26T13:45:55Z | 2023-12-03T04:45:38Z | https://github.com/axiomatic-systems/Bento4/issues/904 | 2,011,048,300 | 904 |
[
"axiomatic-systems",
"Bento4"
] | I setup Bento and Python v27 and both are in the path, when I try to use mp4hls I get this error:
C:\>mp4hls
Traceback (most recent call last):
File "C:\Bento\bin\..\utils\mp4-hls.py", line 22, in <module>
from subtitles import SubtitlesFile
File "C:\Bento\utils\subtitles.py", line 6, in <module>
from mp4utils import LanguageCodeMap, LanguageNames, BooleanFromString
File "C:\Bento\utils\mp4utils.py", line 51
SyntaxError: Non-ASCII character '\xd0' in file C:\Bento\utils\mp4utils.py on line 51, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I also tried mp4dash and also have an error related to audio:
Command (left off file list):
mp4dash --hls --no-split --use-segment-list
Error:
File "C:\Bento\bin\..\utils\mp4-dash.py", line 881
audio_track.hls_group = f'audio/{index}' if len(ungrouped_audio_tracks) > 1 else 'audio'
^
SyntaxError: invalid syntax
Kirk | New Install of Bento has mp4hls and mp4dash errors | https://api.github.com/repos/axiomatic-systems/Bento4/issues/903/comments | 2 | 2023-11-22T01:17:58Z | 2023-11-22T02:44:37Z | https://github.com/axiomatic-systems/Bento4/issues/903 | 2,005,394,443 | 903 |
[
"axiomatic-systems",
"Bento4"
] | So i have this weird issue for some dash streams where if i try do the decryption using the
> --fragments-info
command line argument it does not decrypt but if i combine the fragments info file with the media segment its self using
> cat "initLocation" "mediaLocation" > "combinedLocation"
and then run the decryption command on the combined segment with out the fragment info command line option the decryption works fine and the video plays clearly
has anyone run into this issue before and happen to know the cause of it ? | mp4decrypt - weird issue decrypting with fragments-info | https://api.github.com/repos/axiomatic-systems/Bento4/issues/900/comments | 0 | 2023-10-31T17:54:52Z | 2023-10-31T17:55:36Z | https://github.com/axiomatic-systems/Bento4/issues/900 | 1,971,010,725 | 900 |
[
"axiomatic-systems",
"Bento4"
] | Hello there,
I encountered an issue while using the mp4dash tool. According to the **ISO/IEC 14496-12** standard, in section **8.8.10 Track Fragment Random Access Box**, it specifies that the maximum number to be represented in the 'time' and 'offset' fields when the version of the 'tfra' box is 0 should be a number represented by 32 bytes (2^32 -1).
The problem arises when adding encryption information to the other mp4 atoms in an input content where the version of the 'tfra' box is 0. If the offset of the output 'tfra' box becomes a number greater than 2^32, according to the standard, it should update the version of the 'tfra' box to version 1 in order to represent an integer up to 2^64.
The command:
```bash
mp4dash --mpd-name my_content.mpd --widevine-header provider:MyProvider#content_id:1 --encryption-key MY_HEX_KEY2 --playready-header=LA_URL:http://test.playready.microsoft.com/service/my_manager.asmx\
my_content_video_Avc_3500_1280x720.mp4\
my_content_video_Avc_1800_960x540.mp4\
my_content_video_Avc_800_640x360.mp4\
my_content_audio_aac_96_es.mp4\
my_content_audio_aac_96_eng.mp4\
-o /my_output_path/cipher/ --verbose --no-split
```
The issue occurs only in the highest layer (3.5mbps) mp4 file, whose original offset of the 'tfra' box is an integer value of 4292674329. When encryption information is added to the rest of the atoms, the value increases to 4301140778 (greater than 2^32), and thus, the number should not be encapsulated in a 'tfra' version 0. However, the software still does it, resulting in errors in some mp4 file reading and analysis programs. This could potentially cause playback issues in some media players. | mp4dash does not update version of 'tfra' atom when it should | https://api.github.com/repos/axiomatic-systems/Bento4/issues/899/comments | 0 | 2023-10-17T08:29:20Z | 2023-10-17T08:30:36Z | https://github.com/axiomatic-systems/Bento4/issues/899 | 1,946,857,469 | 899 |
[
"axiomatic-systems",
"Bento4"
] | Hi there,
I'm running into an issue when I create an fairplay encrypted hls stream (CBCS) with mp4dash when I include a Dolby Vision file that was created on AWS MediaConvert. I also create a Dash stream with Widevine and Playready with the same source files and the stream is encrypted (CENC) and packaged correctly.
The error that occurs is
ERROR: failed to process the file (-10)
ERROR: float division by zero
| MP4Dash - HLS encrypted CBCS errors with Dolby Vision mp4 source | https://api.github.com/repos/axiomatic-systems/Bento4/issues/898/comments | 4 | 2023-10-16T14:00:15Z | 2023-11-19T22:14:48Z | https://github.com/axiomatic-systems/Bento4/issues/898 | 1,945,288,294 | 898 |
[
"axiomatic-systems",
"Bento4"
] | Hi, barbibulle. For a very long time, when will the version be updated? Once in a whole year? | have been waiting for a long time to update | https://api.github.com/repos/axiomatic-systems/Bento4/issues/896/comments | 0 | 2023-10-08T06:05:30Z | 2023-10-08T06:05:30Z | https://github.com/axiomatic-systems/Bento4/issues/896 | 1,931,661,583 | 896 |
[
"axiomatic-systems",
"Bento4"
] | Hi, developers of Bento4:
An issue was discovered in MP4 File Info - Version 1.3.4 (Bento4 Version 1.6.0.0).
# Version Information
MP4 File Info - Version 1.3.4 (Bento4 Version 1.6.0.0).
# **description of the vulnerability**
When I use afl's asan mode to detect the mp4info program,AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) is called from the Ap4TfraAtom.cpp file, AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&)+674 will call operator new(unsigned long)@plt allocates too much memory (0x1585948620), causing the program to crash.
The output of a program compiled normally without asan is as follows:
```python
./mp4info --verbose mp4info_bad_alloc
```
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[1] 2852939 abort ./mp4info --verbose
The output of afl's asan is as follows:
```python
./mp4info --verbose mp4info_bad_alloc
```
=================================================================
==1178780==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x1585948620 bytes
#0 0x4c73ed in operator new(unsigned long) (/home/gxh/Bento4/check_build/mp4info+0x4c73ed)
#1 0x72b8a7 in AP4_Array<AP4_TfraAtom::Entry>::EnsureCapacity(unsigned int) /home/gxh/Bento4/Source/C++/Core/Ap4Array.h:172:25
#2 0x72b8a7 in AP4_Array<AP4_TfraAtom::Entry>::SetItemCount(unsigned int) /home/gxh/Bento4/Source/C++/Core/Ap4Array.h:210:25
#3 0x72b8a7 in AP4_TfraAtom::AP4_TfraAtom(unsigned int, unsigned char, unsigned int, AP4_ByteStream&) /home/gxh/Bento4/Source/C++/Core/Ap4TfraAtom.cpp:88:15
#4 0x72992b in AP4_TfraAtom::Create(unsigned int, AP4_ByteStream&) /home/gxh/Bento4/Source/C++/Core/Ap4TfraAtom.cpp:53:16
#5 0x555108 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:443:20
#6 0x54da23 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#7 0x57fc5d in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/gxh/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#8 0x57f956 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/gxh/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#9 0x54da23 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#10 0x57ff95 in AP4_ContainerAtom::ReadChildren(AP4_AtomFactory&, AP4_ByteStream&, unsigned long long) /home/gxh/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:194:12
#11 0x57f956 in AP4_ContainerAtom::AP4_ContainerAtom(unsigned int, unsigned long long, bool, AP4_ByteStream&, AP4_AtomFactory&) /home/gxh/Bento4/Source/C++/Core/Ap4ContainerAtom.cpp:139:5
#12 0x55540b in AP4_MoovAtom::Create(unsigned int, AP4_ByteStream&, AP4_AtomFactory&) /home/gxh/Bento4/Source/C++/Core/Ap4MoovAtom.h:56:20
#13 0x55540b in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned int, unsigned int, unsigned long long, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:393:20
#14 0x54da23 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, unsigned long long&, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:234:14
#15 0x54cb00 in AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream&, AP4_Atom*&) /home/gxh/Bento4/Source/C++/Core/Ap4AtomFactory.cpp:154:12
#16 0x5d0de1 in AP4_File::ParseStream(AP4_ByteStream&, AP4_AtomFactory&, bool) /home/gxh/Bento4/Source/C++/Core/Ap4File.cpp:104:12
#17 0x5d24aa in AP4_File::AP4_File(AP4_ByteStream&, bool) /home/gxh/Bento4/Source/C++/Core/Ap4File.cpp:78:5
#18 0x4ca952 in main /home/gxh/Bento4/Source/C++/Apps/Mp4Info/Mp4Info.cpp:1902:26
#19 0x7ffff7a75d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
SUMMARY: AddressSanitizer: out-of-memory (/home/gxh/Bento4/check_build/mp4info+0x4c73ed) in operator new(unsigned long)
==1178780==ABORTING
# crash input
https://github.com/gxh191/fuzzer_crash/tree/main/Bento4
./mp4info --verbose mp4info_bad_alloc
# Validation steps
```python
git clone https://github.com/axiomatic-systems/Bento4
cd Bento4/
mkdir check_build && cd check_build
cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address" -DCMAKE_BUILD_TYPE=Release
make -j16
./mp4info --verbose mp4info_bad_alloc
``` | mp4info: AP4_TfraAtom::AP4_TfraAtom in Ap4TfraAtom.cpp failed to allocate memory | https://api.github.com/repos/axiomatic-systems/Bento4/issues/894/comments | 0 | 2023-09-26T11:42:52Z | 2024-03-01T17:25:21Z | https://github.com/axiomatic-systems/Bento4/issues/894 | 1,913,325,358 | 894 |
[
"axiomatic-systems",
"Bento4"
] | Assuming an original mp4 with the following `udta` block:
```
[moov]
....
[udta] size=8+69
[.mak] size=8+9
[.mod] size=8+12
```
I would like to add the following `udta` block **payload only** to the original's `udta` block:
```
[foobar] size=...
[foobar2] size= ...
[foobar3] size=...
```
In order to get the following `udta` block result:
```
[moov]
....
[udta] size=8+69
[.mak] size=8+9
[.mod] size=8+12
[foobar] size=...
[foobar2] size= ...
[foobar3] size=...
```
The following command was issued:
```
mp4extract moov/udta --payload original.mp4 udta.payload
mp4edit --insert moov/udta original.mp4 edited.mp4
```
with the result:
```
[moov]
....
[udta] size=8+69
// [.mak] and [.mod] have been deleted
[foobar] size=...
[foobar2] size= ...
[foobar3] size=...
```
At first glance, it feels like mp4edit --insert behave like a "replace" box operation rather than append/insert operation.
What do you recommend to get both `udta` block merged ? | mp4edit --insert: Support merging 2 same type boxes | https://api.github.com/repos/axiomatic-systems/Bento4/issues/893/comments | 1 | 2023-09-13T10:06:54Z | 2023-10-02T08:11:18Z | https://github.com/axiomatic-systems/Bento4/issues/893 | 1,894,195,910 | 893 |
[
"axiomatic-systems",
"Bento4"
] | Assuming I already have an HLS fragment generated (with .mp4 version, not .ts), how can I use `mp4encrypt` to encrypt it AES-128? (where the key is passed in clear) | Encrypt HLS segments ClearKey | https://api.github.com/repos/axiomatic-systems/Bento4/issues/892/comments | 0 | 2023-09-11T13:34:06Z | 2023-09-12T15:30:41Z | https://github.com/axiomatic-systems/Bento4/issues/892 | 1,890,531,918 | 892 |
[
"axiomatic-systems",
"Bento4"
] | any character with accent or some special character in a filename mp4decrypt is already messed up..
could it be possible to support such this special characters? | Support utf-8 characters in filename for mp4decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/891/comments | 0 | 2023-08-25T10:52:31Z | 2023-08-25T10:52:31Z | https://github.com/axiomatic-systems/Bento4/issues/891 | 1,866,823,703 | 891 |
[
"axiomatic-systems",
"Bento4"
] | I try to use set LA_URL with mp4dash --widevine-header command. | How to set LA_URL with --widevine-header? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/890/comments | 0 | 2023-08-23T08:50:33Z | 2023-08-23T08:50:33Z | https://github.com/axiomatic-systems/Bento4/issues/890 | 1,862,869,698 | 890 |
[
"axiomatic-systems",
"Bento4"
] | Hello,
I've been trying to get the C++ interface for this program working, and I sucessfully have it reading the metadata from an MP4 file and logging it out.
When I try to remove this metadata, using `entry.RemoveFromFile()` I then need to save the changes, by doing something like `AP4_FileCopier::Write(*input_file, *output);`
Is there a way to do this without making a new file? I've already tried feeding in the `AP4_ByteStream` used to generate `input_file` in this case, but that doesn't seem to work.
Thank you. | Can you edit the metadata on an MP4 file without writing to a different output file? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/889/comments | 1 | 2023-08-21T09:37:46Z | 2023-08-21T19:50:34Z | https://github.com/axiomatic-systems/Bento4/issues/889 | 1,858,990,073 | 889 |
[
"axiomatic-systems",
"Bento4"
] | Hi. ERROR: 'charmap' codec can't encode characters in position 71-77: character maps to undefined. What does the problem mean? | Error 71-77 | https://api.github.com/repos/axiomatic-systems/Bento4/issues/888/comments | 0 | 2023-08-21T08:58:34Z | 2023-08-21T08:59:57Z | https://github.com/axiomatic-systems/Bento4/issues/888 | 1,858,923,270 | 888 |
[
"axiomatic-systems",
"Bento4"
] | could someone please explain what exactly these errors mean as i dont see a lot of documentation on errors
WARNING: atom serialized to fewer bytes than declared size
WARNING: padding would be too large
i am decrypting in a nodejs app using mp4decrypt before trying to decrypt i am combining the init file with a media segments
it should be noted i also have something the same in php but it is very slow when it comes to combining into a full video when done so i am trying todo it in node js the decryption works fine in php | warnings when decrypting content with mp4decrypt | https://api.github.com/repos/axiomatic-systems/Bento4/issues/887/comments | 4 | 2023-08-20T18:56:08Z | 2023-08-26T16:53:30Z | https://github.com/axiomatic-systems/Bento4/issues/887 | 1,858,231,529 | 887 |
[
"axiomatic-systems",
"Bento4"
] | mp4: 1.mp4 2.mp4 3.mp4 4.mp4 5.mp4 6.mp4
ts: 1.ts 2.ts 3.ts 4.ts 5.ts
m3u8:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2.081667,
1.ts
#EXTINF:2.081667,
2.ts
#EXTINF:2.081667,
3.ts
#EXTINF:2.081667,
4.ts
#EXTINF:2.081667,
5.ts
#EXT-X-ENDLIST | Use mp42ts one by one,m3u8 play error | https://api.github.com/repos/axiomatic-systems/Bento4/issues/886/comments | 0 | 2023-08-07T00:47:18Z | 2023-08-07T00:49:45Z | https://github.com/axiomatic-systems/Bento4/issues/886 | 1,838,491,396 | 886 |
[
"axiomatic-systems",
"Bento4"
] | Hi
I’ve 2 audio tracks, I would like to provide a video descriptive service, how can I add a characteristics attributes on the second one with this value public.accessibility.describes-video ?
Thank you for your help | How to add HLS Characteristics attributes? | https://api.github.com/repos/axiomatic-systems/Bento4/issues/883/comments | 2 | 2023-07-31T21:35:10Z | 2023-08-09T12:18:33Z | https://github.com/axiomatic-systems/Bento4/issues/883 | 1,830,069,793 | 883 |
[
"axiomatic-systems",
"Bento4"
] | The playlist segment lengths were **6s** in playlists I generated in `1.6.0-638` after using the following 2 commands to fragment an mp4 and create the playlist
```
mp4fragment --fragment-duration 6000 input_file intermediate_file
mp4dash --hls --no-split --profile=on-demand -o output_folder -f intermediate_file
```
After running the same commands with the same `input_file` with `1.6.0-639` and `1.6.0-640` the fragment files themselves have been larger than in `1.6.0-638` and the playlists generated have **1s** segment lengths.
| file size | version |
| --- | --- |
| 33504396 | 638 |
| 33508684 | 639 |
| 33508684 | 640 |
I also tried mixing the output from `mp4fragment` to the opposite `mp4dash` command (ex 638 mp4fragment output to 640 mp4dash and vice-versa) and the result was that the fragmented file seems to determine if 1s or 6s playlist segments are generated. So it seems like something changed in the 639/640 version of `mp4fragment` that is causing the playlist segment generation to go from 6s to 1s.
For completeness, here is the source file I was using, and the ffmpeg command I'm using to generate the `input_file` used in the commands above:
Source video: [fire_45s.mp4](https://jgcvideo2020.files.wordpress.com/2023/07/fire_45s.mp4)
Command to generate `input_file`
`ffmpeg -i fire_45s.mp4 -y -timelimit 28800 -xerror -threads 2 -f mp4 -s 2048x1080 -acodec aac -ar 48000 -async 1 -ab 160000 -vcodec libx264 -preset slow -profile:v high -movflags faststart -protocol_whitelist file,-ALL -crf 21 -pix_fmt yuv420p -max_muxing_queue_size 1024 -r 24 -g 24 -sc_threshold 0 -force_key_frames 'expr:gte(t,n_forced*6)' -metadata:s:a:0 language=und -ac 2 -maxrate 8M -bufsize 16M fire_1080_pre_frag
` | mp4fragment + mp4dash creating incorrect segment lengths after upgrade to `-639` and `-640` | https://api.github.com/repos/axiomatic-systems/Bento4/issues/882/comments | 2 | 2023-07-19T18:49:48Z | 2023-07-24T13:03:13Z | https://github.com/axiomatic-systems/Bento4/issues/882 | 1,812,529,351 | 882 |
[
"axiomatic-systems",
"Bento4"
] | Hi, I have a question regarding to the frame_rate for video muxing in mp4mux.
I found the parameter frame_rate was introduced many years ago, during which the vps_num_units_in_ticks and vps_time_scale were not parsed.
With the updates of mp4mux, it now can parse VPS to get the real timescale from elementary stream, so I'm wondering what's the use case for keeping this frame_rate?
Thanks! | Question: What's the purpose of #frame_rate in mp4mux | https://api.github.com/repos/axiomatic-systems/Bento4/issues/881/comments | 1 | 2023-07-18T09:25:15Z | 2023-07-24T03:08:31Z | https://github.com/axiomatic-systems/Bento4/issues/881 | 1,809,533,985 | 881 |
[
"axiomatic-systems",
"Bento4"
] | And where is the command for the language? help and there is nothing here. He's all English, and i need Russian и Ukraine where? | aac2mp4.exe | https://api.github.com/repos/axiomatic-systems/Bento4/issues/880/comments | 1 | 2023-07-16T09:45:46Z | 2023-07-24T04:07:46Z | https://github.com/axiomatic-systems/Bento4/issues/880 | 1,806,517,283 | 880 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.