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
ea2fabca
Commit
ea2fabca
authored
May 16, 2005
by
Kees Cook
Committed by
Alexandre Julliard
May 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid segfault when detecting decryption buffer size.
parent
dc920056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rsaenh.c
dlls/rsaenh/rsaenh.c
+1
-1
No files found.
dlls/rsaenh/rsaenh.c
View file @
ea2fabca
...
...
@@ -1834,7 +1834,7 @@ BOOL WINAPI RSAENH_CPEncrypt(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTHASH hHash,
}
dwEncryptedLen
=
(
*
pdwDataLen
/
pCryptKey
->
dwBlockLen
+
(
Final
?
1
:
0
))
*
pCryptKey
->
dwBlockLen
;
for
(
i
=*
pdwDataLen
;
i
<
dwEncryptedLen
;
i
++
)
pbData
[
i
]
=
dwEncryptedLen
-
*
pdwDataLen
;
for
(
i
=*
pdwDataLen
;
i
<
dwEncryptedLen
&&
i
<
dwBufLen
;
i
++
)
pbData
[
i
]
=
dwEncryptedLen
-
*
pdwDataLen
;
*
pdwDataLen
=
dwEncryptedLen
;
if
(
*
pdwDataLen
>
dwBufLen
)
...
...
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