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
9423f836
Commit
9423f836
authored
Aug 15, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix length calculation for decoding CRL_DIST_POINT_NAME.
parent
80277029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
decode.c
dlls/crypt32/decode.c
+8
-4
No files found.
dlls/crypt32/decode.c
View file @
9423f836
...
...
@@ -3919,15 +3919,19 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
sizeof
(
CERT_ALT_NAME_ENTRY
),
TRUE
,
offsetof
(
CERT_ALT_NAME_ENTRY
,
u
.
pwszURL
)
};
BYTE
lenBytes
=
GET_LEN_BYTES
(
pbEncoded
[
1
]);
DWORD
nameLen
;
if
(
dataLen
)
{
DWORD
nameLen
;
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
0
,
NULL
,
NULL
,
&
nameLen
,
NULL
,
NULL
);
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
)
+
nameLen
;
/* The CERT_ALT_NAME_INFO's size is included by CRYPT_AsnDecodeArray
* as the sizeof(struct GenericArray), so don't include it in the
* total bytes needed.
*/
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
)
+
nameLen
-
sizeof
(
CERT_ALT_NAME_INFO
);
}
else
bytesNeeded
=
sizeof
(
CRL_DIST_POINT_NAME
);
...
...
@@ -3951,7 +3955,7 @@ static BOOL CRYPT_AsnDecodeDistPointName(const BYTE *pbEncoded,
name
->
dwDistPointNameChoice
=
CRL_DIST_POINT_FULL_NAME
;
ret
=
CRYPT_AsnDecodeArray
(
&
arrayDesc
,
pbEncoded
+
1
+
lenBytes
,
cbEncoded
-
1
-
lenBytes
,
0
,
NULL
,
&
name
->
u
.
FullName
,
pcbStructInfo
,
NULL
,
0
,
NULL
,
&
name
->
u
.
FullName
,
&
nameLen
,
NULL
,
name
->
u
.
FullName
.
rgAltEntry
);
}
else
...
...
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