Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
577f6f28
Commit
577f6f28
authored
Mar 12, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: ogg: kill out of bound access warning for contenttypeless codecs.
parent
f3599e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/mux/ogg.c
modules/mux/ogg.c
+8
-6
No files found.
modules/mux/ogg.c
View file @
577f6f28
...
...
@@ -837,12 +837,14 @@ static void OggGetSkeletonFisbone( uint8_t **pp_buffer, long *pi_size,
if
(
p_input
->
p_fmt
->
p_extra
)
SetDWLE
(
&
(
*
pp_buffer
)[
44
],
xiph_CountHeaders
(
p_input
->
p_fmt
->
p_extra
,
p_input
->
p_fmt
->
i_extra
)
);
psz_header
=
*
pp_buffer
+
FISBONE_BASE_SIZE
;
memcpy
(
psz_header
,
headers
.
psz_content_type
,
strlen
(
headers
.
psz_content_type
)
);
psz_header
+=
strlen
(
headers
.
psz_content_type
);
if
(
headers
.
psz_role
)
memcpy
(
psz_header
,
headers
.
psz_role
,
strlen
(
headers
.
psz_role
)
);
if
(
headers
.
i_size
>
0
)
{
psz_header
=
*
pp_buffer
+
FISBONE_BASE_SIZE
;
memcpy
(
psz_header
,
headers
.
psz_content_type
,
strlen
(
headers
.
psz_content_type
)
);
psz_header
+=
strlen
(
headers
.
psz_content_type
);
if
(
headers
.
psz_role
)
memcpy
(
psz_header
,
headers
.
psz_role
,
strlen
(
headers
.
psz_role
)
);
}
*
pi_size
=
FISBONE_BASE_SIZE
+
headers
.
i_size
;
free
(
headers
.
psz_content_type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment