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
c4337f1e
Commit
c4337f1e
authored
Feb 23, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Fixed bad sizeof() usage (Coverity).
parent
242cbcaa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sha2.c
dlls/rsaenh/sha2.c
+6
-6
No files found.
dlls/rsaenh/sha2.c
View file @
c4337f1e
...
@@ -563,7 +563,7 @@ void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
...
@@ -563,7 +563,7 @@ void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
}
}
/* Clean up state data: */
/* Clean up state data: */
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
usedspace
=
0
;
usedspace
=
0
;
}
}
...
@@ -584,7 +584,7 @@ char *SHA256_End(SHA256_CTX* context, char buffer[]) {
...
@@ -584,7 +584,7 @@ char *SHA256_End(SHA256_CTX* context, char buffer[]) {
}
}
*
buffer
=
0
;
*
buffer
=
0
;
}
else
{
}
else
{
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
}
}
MEMSET_BZERO
(
digest
,
SHA256_DIGEST_LENGTH
);
MEMSET_BZERO
(
digest
,
SHA256_DIGEST_LENGTH
);
return
buffer
;
return
buffer
;
...
@@ -893,7 +893,7 @@ void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
...
@@ -893,7 +893,7 @@ void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
}
}
/* Zero out state data */
/* Zero out state data */
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
}
}
char
*
SHA512_End
(
SHA512_CTX
*
context
,
char
buffer
[])
{
char
*
SHA512_End
(
SHA512_CTX
*
context
,
char
buffer
[])
{
...
@@ -913,7 +913,7 @@ char *SHA512_End(SHA512_CTX* context, char buffer[]) {
...
@@ -913,7 +913,7 @@ char *SHA512_End(SHA512_CTX* context, char buffer[]) {
}
}
*
buffer
=
0
;
*
buffer
=
0
;
}
else
{
}
else
{
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
}
}
MEMSET_BZERO
(
digest
,
SHA512_DIGEST_LENGTH
);
MEMSET_BZERO
(
digest
,
SHA512_DIGEST_LENGTH
);
return
buffer
;
return
buffer
;
...
@@ -968,7 +968,7 @@ void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
...
@@ -968,7 +968,7 @@ void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
}
}
/* Zero out state data */
/* Zero out state data */
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
}
}
char
*
SHA384_End
(
SHA384_CTX
*
context
,
char
buffer
[])
{
char
*
SHA384_End
(
SHA384_CTX
*
context
,
char
buffer
[])
{
...
@@ -988,7 +988,7 @@ char *SHA384_End(SHA384_CTX* context, char buffer[]) {
...
@@ -988,7 +988,7 @@ char *SHA384_End(SHA384_CTX* context, char buffer[]) {
}
}
*
buffer
=
0
;
*
buffer
=
0
;
}
else
{
}
else
{
MEMSET_BZERO
(
context
,
sizeof
(
context
));
MEMSET_BZERO
(
context
,
sizeof
(
*
context
));
}
}
MEMSET_BZERO
(
digest
,
SHA384_DIGEST_LENGTH
);
MEMSET_BZERO
(
digest
,
SHA384_DIGEST_LENGTH
);
return
buffer
;
return
buffer
;
...
...
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