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
761886e8
Commit
761886e8
authored
Feb 25, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update - avoid a segfault if the error is triggered before hd creation.
parent
868cd6a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/misc/update.c
src/misc/update.c
+5
-4
No files found.
src/misc/update.c
View file @
761886e8
...
...
@@ -1034,7 +1034,7 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
gcry_md_hd_t
hd
;
if
(
gcry_md_open
(
&
hd
,
GCRY_MD_SHA1
,
0
)
)
goto
error
;
goto
error
_hd
;
gcry_md_write
(
hd
,
psz_version_line
,
strlen
(
psz_version_line
)
);
FREENULL
(
psz_version_line
);
...
...
@@ -1063,14 +1063,14 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
p_hash
[
1
]
!=
sign
.
hash_verification
[
1
]
)
{
msg_Warn
(
p_update
->
p_libvlc
,
"Bad SHA1 hash for status file"
);
goto
error
;
goto
error
_hd
;
}
if
(
verify_signature
(
sign
.
r
,
sign
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
!=
VLC_SUCCESS
)
{
msg_Err
(
p_update
->
p_libvlc
,
"BAD SIGNATURE for status file"
);
goto
error
;
goto
error
_hd
;
}
else
{
...
...
@@ -1079,8 +1079,9 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
return
VLC_TRUE
;
}
error:
error
_hd
:
gcry_md_close
(
hd
);
error:
if
(
p_stream
)
stream_Delete
(
p_stream
);
free
(
psz_version_line
);
...
...
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