Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8a9bd2d8
Commit
8a9bd2d8
authored
Oct 09, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
potential NULL deref (CID 150)
parent
b8d34087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/input/stream.c
src/input/stream.c
+9
-5
No files found.
src/input/stream.c
View file @
8a9bd2d8
...
@@ -301,7 +301,15 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
...
@@ -301,7 +301,15 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
stream_sys_t
*
p_sys
;
stream_sys_t
*
p_sys
;
char
*
psz_list
=
NULL
;
char
*
psz_list
=
NULL
;
if
(
!
s
)
return
NULL
;
if
(
!
s
)
return
NULL
;
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
stream_sys_t
)
);
if
(
!
p_sys
)
{
vlc_object_release
(
s
);
return
NULL
;
}
/* Attach it now, needed for b_die */
/* Attach it now, needed for b_die */
vlc_object_attach
(
s
,
p_access
);
vlc_object_attach
(
s
,
p_access
);
...
@@ -311,10 +319,6 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
...
@@ -311,10 +319,6 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
s
->
pf_control
=
AStreamControl
;
s
->
pf_control
=
AStreamControl
;
s
->
pf_destroy
=
AStreamDestroy
;
s
->
pf_destroy
=
AStreamDestroy
;
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
stream_sys_t
)
);
if
(
p_sys
==
NULL
)
goto
error
;
/* UTF16 and UTF32 text file conversion */
/* UTF16 and UTF32 text file conversion */
s
->
i_char_width
=
1
;
s
->
i_char_width
=
1
;
s
->
b_little_endian
=
false
;
s
->
b_little_endian
=
false
;
...
...
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