Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dfbbfd6f
Commit
dfbbfd6f
authored
Dec 08, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Make sure key_asymmetric_derive_key() returns correct size.
parent
7f41d505
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gnutls.c
dlls/bcrypt/gnutls.c
+6
-5
No files found.
dlls/bcrypt/gnutls.c
View file @
dfbbfd6f
...
...
@@ -2671,6 +2671,7 @@ static NTSTATUS key_asymmetric_derive_key( void *args )
{
const
struct
key_asymmetric_derive_key_params
*
params
=
args
;
gnutls_datum_t
s
;
NTSTATUS
status
=
STATUS_SUCCESS
;
int
ret
;
if
((
ret
=
pgnutls_privkey_derive_secret
(
key_data
(
params
->
privkey
)
->
a
.
privkey
,
...
...
@@ -2680,15 +2681,15 @@ static NTSTATUS key_asymmetric_derive_key( void *args )
return
STATUS_INTERNAL_ERROR
;
}
if
(
!
params
->
output
)
*
params
->
ret_len
=
s
.
size
;
else
*
params
->
ret_len
=
EXPORT_SIZE
(
s
,
params
->
privkey
->
u
.
a
.
bitlen
/
8
,
1
)
;
if
(
params
->
output
)
{
*
params
->
ret_len
=
min
(
params
->
output_len
,
s
.
size
)
;
memcpy
(
params
->
output
,
s
.
data
,
*
params
->
ret_len
);
if
(
params
->
output_len
<
*
params
->
ret_len
)
status
=
STATUS_BUFFER_TOO_SMALL
;
else
export_gnutls_datum
(
params
->
output
,
*
params
->
ret_len
,
&
s
,
1
);
}
free
(
s
.
data
);
return
STATUS_SUCCESS
;
return
status
;
}
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
...
...
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