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
d51dba48
Commit
d51dba48
authored
Mar 27, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Services discoveries: check memory allocation
parent
8ca4ff01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
modules/services_discovery/bonjour.c
modules/services_discovery/bonjour.c
+3
-5
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+2
-0
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+2
-0
No files found.
modules/services_discovery/bonjour.c
View file @
d51dba48
...
...
@@ -270,11 +270,9 @@ static int Open( vlc_object_t *p_this )
p_sd
->
p_sys
=
p_sys
=
(
services_discovery_sys_t
*
)
malloc
(
sizeof
(
services_discovery_sys_t
)
);
if
(
p_sd
->
p_sys
==
NULL
)
{
msg_Err
(
p_sd
,
"out of memory"
);
return
VLC_EGENERIC
;
}
if
(
!
p_sys
)
return
VLC_ENOMEM
;
memset
(
p_sys
,
0
,
sizeof
(
*
p_sys
)
);
...
...
modules/services_discovery/podcast.c
View file @
d51dba48
...
...
@@ -106,6 +106,8 @@ static int Open( vlc_object_t *p_this )
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
malloc
(
sizeof
(
services_discovery_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_sys
->
i_urls
=
0
;
p_sys
->
ppsz_urls
=
NULL
;
...
...
modules/services_discovery/sap.c
View file @
d51dba48
...
...
@@ -294,6 +294,8 @@ static int Open( vlc_object_t *p_this )
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
(
services_discovery_sys_t
*
)
malloc
(
sizeof
(
services_discovery_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_sys
->
i_timeout
=
var_CreateGetInteger
(
p_sd
,
"sap-timeout"
);
...
...
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