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
f3599e8f
Commit
f3599e8f
authored
Mar 12, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: fix use after free
cid #1191891
parent
9839f126
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/ogg.c
modules/demux/ogg.c
+4
-2
No files found.
modules/demux/ogg.c
View file @
f3599e8f
...
@@ -2488,8 +2488,10 @@ static void Ogg_DecodeVorbisHeader( logical_stream_t *p_stream,
...
@@ -2488,8 +2488,10 @@ static void Ogg_DecodeVorbisHeader( logical_stream_t *p_stream,
p_stream
->
special
.
vorbis
.
p_comment
=
malloc
(
sizeof
(
vorbis_comment
)
);
p_stream
->
special
.
vorbis
.
p_comment
=
malloc
(
sizeof
(
vorbis_comment
)
);
if
(
!
p_stream
->
special
.
vorbis
.
p_info
||
!
p_stream
->
special
.
vorbis
.
p_comment
)
if
(
!
p_stream
->
special
.
vorbis
.
p_info
||
!
p_stream
->
special
.
vorbis
.
p_comment
)
{
{
free
(
p_stream
->
special
.
vorbis
.
p_info
);
FREENULL
(
p_stream
->
special
.
vorbis
.
p_info
);
free
(
p_stream
->
special
.
vorbis
.
p_comment
);
FREENULL
(
p_stream
->
special
.
vorbis
.
p_comment
);
p_stream
->
special
.
vorbis
.
b_invalid
=
true
;
break
;
}
}
vorbis_info_init
(
p_stream
->
special
.
vorbis
.
p_info
);
vorbis_info_init
(
p_stream
->
special
.
vorbis
.
p_info
);
vorbis_comment_init
(
p_stream
->
special
.
vorbis
.
p_comment
);
vorbis_comment_init
(
p_stream
->
special
.
vorbis
.
p_comment
);
...
...
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