Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bb931e14
Commit
bb931e14
authored
Dec 13, 2015
by
Zhao Zhili
Committed by
Rémi Denis-Courmont
Dec 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_input: check malloc return
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
4b7e668f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/vlc_input.h
include/vlc_input.h
+1
-1
No files found.
include/vlc_input.h
View file @
bb931e14
...
@@ -190,7 +190,7 @@ static inline input_attachment_t *vlc_input_attachment_New( const char *psz_name
...
@@ -190,7 +190,7 @@ static inline input_attachment_t *vlc_input_attachment_New( const char *psz_name
a
->
psz_description
=
strdup
(
psz_description
?
psz_description
:
""
);
a
->
psz_description
=
strdup
(
psz_description
?
psz_description
:
""
);
a
->
i_data
=
i_data
;
a
->
i_data
=
i_data
;
a
->
p_data
=
malloc
(
i_data
);
a
->
p_data
=
malloc
(
i_data
);
if
(
i_data
>
0
&&
likely
(
p_data
!=
NULL
)
)
if
(
i_data
>
0
&&
likely
(
a
->
p_data
!=
NULL
)
)
memcpy
(
a
->
p_data
,
p_data
,
i_data
);
memcpy
(
a
->
p_data
,
p_data
,
i_data
);
if
(
unlikely
(
a
->
psz_name
==
NULL
||
a
->
psz_mime
==
NULL
if
(
unlikely
(
a
->
psz_name
==
NULL
||
a
->
psz_mime
==
NULL
...
...
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