Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9a51a992
Commit
9a51a992
authored
Oct 11, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Initialize bytesNeeded (Coverity).
parent
aba4619d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
decode.c
dlls/crypt32/decode.c
+15
-15
No files found.
dlls/crypt32/decode.c
View file @
9a51a992
...
...
@@ -1912,7 +1912,7 @@ static BOOL WINAPI CRYPT_AsnDecodeName(DWORD dwCertEncodingType,
sizeof
(
CERT_NAME_INFO
),
CRYPT_AsnDecodeRdn
,
sizeof
(
CERT_RDN
),
TRUE
,
offsetof
(
CERT_RDN
,
rgRDNAttr
)
};
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
NULL
,
&
bytesNeeded
,
...
...
@@ -2009,7 +2009,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUnicodeName(DWORD dwCertEncodingType,
sizeof
(
CERT_NAME_INFO
),
CRYPT_AsnDecodeUnicodeRdn
,
sizeof
(
CERT_RDN
),
TRUE
,
offsetof
(
CERT_RDN
,
rgRDNAttr
)
};
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
NULL
,
&
bytesNeeded
,
...
...
@@ -2455,7 +2455,7 @@ static BOOL CRYPT_AsnDecodeNoticeReference(const BYTE *pbEncoded,
FALSE
,
TRUE
,
offsetof
(
CERT_POLICY_QUALIFIER_NOTICE_REFERENCE
,
rgNoticeNumbers
),
0
},
};
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
TRACE
(
"%p, %d, %08x, %p, %d
\n
"
,
pbEncoded
,
cbEncoded
,
dwFlags
,
pvStructInfo
,
pvStructInfo
?
*
pcbStructInfo
:
0
);
...
...
@@ -2672,7 +2672,7 @@ static BOOL WINAPI CRYPT_AsnDecodePolicyQualifierUserNotice(
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodePolicyQualifierUserNoticeInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
...
...
@@ -2766,7 +2766,7 @@ static BOOL WINAPI CRYPT_AsnDecodePKCSAttribute(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodePKCSAttributeInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
);
...
...
@@ -2907,7 +2907,7 @@ static BOOL WINAPI CRYPT_AsnDecodePubKeyInfo(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
((
ret
=
CRYPT_AsnDecodePubKeyInfoInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
)))
...
...
@@ -3409,7 +3409,7 @@ static BOOL WINAPI CRYPT_AsnDecodeAltName(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
((
ret
=
CRYPT_AsnDecodeAltNameInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
)))
...
...
@@ -3997,7 +3997,7 @@ static BOOL WINAPI CRYPT_AsnDecodeOctets(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
(
!
cbEncoded
)
{
...
...
@@ -4106,7 +4106,7 @@ static BOOL WINAPI CRYPT_AsnDecodeBits(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
(
!
cbEncoded
)
{
...
...
@@ -4200,7 +4200,7 @@ static BOOL WINAPI CRYPT_AsnDecodeInt(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
(
!
cbEncoded
)
{
...
...
@@ -4293,7 +4293,7 @@ static BOOL WINAPI CRYPT_AsnDecodeInteger(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
(
pbEncoded
[
0
]
!=
ASN_INTEGER
)
{
...
...
@@ -4401,7 +4401,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUnsignedInteger(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
if
((
ret
=
CRYPT_AsnDecodeUnsignedIntegerInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
)))
...
...
@@ -4657,7 +4657,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUtcTime(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodeUtcTimeInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
);
...
...
@@ -4788,7 +4788,7 @@ static BOOL WINAPI CRYPT_AsnDecodeChoiceOfTime(DWORD dwCertEncodingType,
__TRY
{
DWORD
bytesNeeded
;
DWORD
bytesNeeded
=
0
;
ret
=
CRYPT_AsnDecodeChoiceOfTimeInternal
(
pbEncoded
,
cbEncoded
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
bytesNeeded
,
NULL
);
...
...
@@ -4933,7 +4933,7 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
if
(
pbEncoded
[
0
]
==
(
ASN_CONTEXT
|
ASN_CONSTRUCTOR
|
0
))
{
DWORD
bytesNeeded
,
dataLen
;
DWORD
bytesNeeded
=
0
,
dataLen
;
if
((
ret
=
CRYPT_GetLen
(
pbEncoded
,
cbEncoded
,
&
dataLen
)))
{
...
...
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