Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 583168 Details for
Bug 689974
<media-video/vlc-3.0.8: multiple vulnerabilities
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mp4underflow.patch
vlc-3.0.7.1-mp4underflow.patch (text/plain), 1.19 KB, created by
Ulenrich
on 2019-07-17 14:01:00 UTC
(
hide
)
Description:
mp4underflow.patch
Filename:
MIME Type:
Creator:
Ulenrich
Created:
2019-07-17 14:01:00 UTC
Size:
1.19 KB
patch
obsolete
>--- a/modules/demux/mp4/mp4.c >+++ b/modules/demux/mp4/mp4.c >@@ -510,11 +510,11 @@ static block_t * MP4_EIA608_Convert( block_t * p_block ) > block_t *p_newblock; > > /* always need at least 10 bytes (atom size+header+1pair)*/ >- if ( i_remaining < 10 || >- !(i_bytes = GetDWBE(p_block->p_buffer)) || >- (i_bytes > i_remaining) || >- memcmp("cdat", &p_block->p_buffer[4], 4) || >- !(p_newblock = block_Alloc( i_remaining * 3 - 8 )) ) >+ i_bytes = GetDWBE(p_block->p_buffer); >+ >+ if (10 < i_bytes || i_bytes < i_remaining || >+ memcmp("cdat", &p_block->p_buffer[4], 4) || >+ (p_newblock = block_Alloc(i_remaining * 3 - 8)) == NULL) > { > p_block->i_buffer = 0; > return p_block; >@@ -536,10 +536,10 @@ static block_t * MP4_EIA608_Convert( block_t * p_block ) > } while( i_bytes >= 2 ); > > /* cdt2 is optional */ >- if ( i_remaining >= 10 && >- (i_bytes = GetDWBE(p_read)) && >- (i_bytes <= i_remaining) && >- !memcmp("cdt2", &p_read[4], 4) ) >+ i_bytes = GetDWBE(p_read); >+ >+ if (10 <= i_bytes && i_bytes <= i_remaining && >+ !memcmp("cdt2", &p_read[4], 4)) > { > p_read += 8; > i_bytes -= 8;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 689974
: 583168