Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
Steve Lhomme
VLC
Commits
1e88646c
Commit
1e88646c
authored
Nov 13, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: fix potential NULL deref in GET_ATTACHMENTS
parent
6c58ce84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+9
-5
No files found.
modules/demux/avi/avi.c
View file @
1e88646c
...
...
@@ -1728,11 +1728,15 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
input_attachment_t
***
ppp_attach
=
va_arg
(
args
,
input_attachment_t
***
);
int
*
pi_int
=
va_arg
(
args
,
int
*
);
*
pi_int
=
p_sys
->
i_attachment
;
*
ppp_attach
=
calloc
(
p_sys
->
i_attachment
,
sizeof
(
**
ppp_attach
));
for
(
unsigned
i
=
0
;
i
<
p_sys
->
i_attachment
&&
*
ppp_attach
;
i
++
)
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_Duplicate
(
p_sys
->
attachment
[
i
]
);
return
VLC_SUCCESS
;
*
ppp_attach
=
calloc
(
p_sys
->
i_attachment
,
sizeof
(
**
ppp_attach
)
);
if
(
likely
(
*
ppp_attach
)
)
{
*
pi_int
=
p_sys
->
i_attachment
;
for
(
unsigned
i
=
0
;
i
<
p_sys
->
i_attachment
;
i
++
)
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_Duplicate
(
p_sys
->
attachment
[
i
]
);
return
VLC_SUCCESS
;
}
return
VLC_EGENERIC
;
}
default:
...
...
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