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
afceeaf9
Commit
afceeaf9
authored
Aug 31, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: correct check for update file size
parent
0bdd0e63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/misc/update.c
src/misc/update.c
+3
-4
No files found.
src/misc/update.c
View file @
afceeaf9
...
...
@@ -192,9 +192,8 @@ static bool GetUpdateFile( update_t *p_update )
goto
error
;
}
const
int64_t
i_read
=
stream_Size
(
p_stream
);
if
(
i_read
<
0
||
i_read
>=
UINT16_MAX
)
uint64_t
i_read
;
if
(
stream_GetSize
(
p_stream
,
&
i_read
)
||
i_read
>=
UINT16_MAX
)
{
msg_Err
(
p_update
->
p_libvlc
,
"Status file too large"
);
goto
error
;
...
...
@@ -204,7 +203,7 @@ static bool GetUpdateFile( update_t *p_update )
if
(
!
psz_update_data
)
goto
error
;
if
(
stream_Read
(
p_stream
,
psz_update_data
,
i_read
)
!=
i_read
)
if
(
stream_Read
(
p_stream
,
psz_update_data
,
i_read
)
!=
(
ssize_t
)
i_read
)
{
msg_Err
(
p_update
->
p_libvlc
,
"Couldn't download update file %s"
,
UPDATE_VLC_STATUS_URL
);
...
...
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