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
5b092877
Commit
5b092877
authored
Oct 01, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't check decoded length against encoded length for indefinite-form sequences.
parent
127fd82a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
decode.c
dlls/crypt32/decode.c
+5
-1
No files found.
dlls/crypt32/decode.c
View file @
5b092877
...
...
@@ -467,10 +467,14 @@ static BOOL CRYPT_AsnDecodeSequence(struct AsnDecodeSequenceItem items[],
{
DWORD
lenBytes
=
GET_LEN_BYTES
(
pbEncoded
[
1
]),
cbDecoded
;
const
BYTE
*
ptr
=
pbEncoded
+
1
+
lenBytes
;
BOOL
indefinite
=
FALSE
;
cbEncoded
-=
1
+
lenBytes
;
if
(
dataLen
==
CMSG_INDEFINITE_LENGTH
)
{
dataLen
=
cbEncoded
;
indefinite
=
TRUE
;
}
else
if
(
cbEncoded
<
dataLen
)
{
TRACE
(
"dataLen %d exceeds cbEncoded %d, failing
\n
"
,
dataLen
,
...
...
@@ -501,7 +505,7 @@ static BOOL CRYPT_AsnDecodeSequence(struct AsnDecodeSequenceItem items[],
cbDecoded
+=
2
;
}
}
if
(
ret
&&
cbDecoded
!=
dataLen
)
if
(
ret
&&
!
indefinite
&&
cbDecoded
!=
dataLen
)
{
TRACE
(
"expected %d decoded, got %d, failing
\n
"
,
dataLen
,
cbDecoded
);
...
...
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