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
4ff40a67
Commit
4ff40a67
authored
Apr 25, 2024
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Validate pbData in CPSetKeyParam().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
5f984f8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
rsaenh.c
dlls/rsaenh/rsaenh.c
+9
-3
No files found.
dlls/rsaenh/rsaenh.c
View file @
4ff40a67
...
...
@@ -3797,7 +3797,7 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
* CRYPT_EXPORT, CRYPT_READ, CRYPT_WRITE, CRYPT_MAC
* - KP_IV: Initialization vector
*/
BOOL
WINAPI
RSAENH_CPSetKeyParam
(
HCRYPTPROV
hProv
,
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
BOOL
WINAPI
RSAENH_CPSetKeyParam
(
HCRYPTPROV
hProv
,
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
{
CRYPTKEY
*
pCryptKey
;
...
...
@@ -3815,13 +3815,19 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
if
(
!
lookup_handle
(
&
handle_table
,
hKey
,
RSAENH_MAGIC_KEY
,
(
OBJECTHDR
**
)
&
pCryptKey
))
{
SetLastError
(
NTE_BAD_KEY
);
return
FALSE
;
}
if
(
!
pbData
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
switch
(
dwParam
)
{
case
KP_PADDING
:
/* The MS providers only support PKCS5_PADDING */
...
...
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