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
08813ee6
Commit
08813ee6
authored
Feb 27, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed read(NULL, size) in zipstream.
parent
356372b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/access/zip/zipstream.c
modules/access/zip/zipstream.c
+3
-4
No files found.
modules/access/zip/zipstream.c
View file @
08813ee6
...
...
@@ -253,15 +253,14 @@ static int Read( stream_t *s, void *p_read, unsigned int i_read )
{
stream_sys_t
*
p_sys
=
s
->
p_sys
;
if
(
!
p_read
)
return
0
;
/* Fill the buffer */
if
(
Fill
(
s
)
)
return
-
1
;
/* Read the buffer */
int
i_len
=
__MIN
(
i_read
,
p_sys
->
i_len
-
p_sys
->
i_pos
);
memcpy
(
p_read
,
p_sys
->
psz_xspf
+
p_sys
->
i_pos
,
i_len
);
unsigned
i_len
=
__MIN
(
i_read
,
p_sys
->
i_len
-
p_sys
->
i_pos
);
if
(
p_read
)
memcpy
(
p_read
,
p_sys
->
psz_xspf
+
p_sys
->
i_pos
,
i_len
);
p_sys
->
i_pos
+=
i_len
;
return
i_len
;
...
...
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