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
0bd29b12
Commit
0bd29b12
authored
Sep 17, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use decode function's returned decoded length to advance pointer when decoding an array.
parent
ee28204f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
decode.c
dlls/crypt32/decode.c
+4
-7
No files found.
dlls/crypt32/decode.c
View file @
0bd29b12
...
...
@@ -709,6 +709,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
i
<
cItems
&&
ptr
-
pbEncoded
-
1
-
lenBytes
<
dataLen
;
i
++
)
{
DWORD
itemDecoded
;
if
(
arrayDesc
->
hasPointer
)
*
(
BYTE
**
)(
array
->
rgItems
+
i
*
arrayDesc
->
itemSize
+
arrayDesc
->
pointerOffset
)
=
nextData
;
...
...
@@ -716,16 +718,11 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
itemSizes
[
i
].
encodedLen
,
dwFlags
&
~
CRYPT_DECODE_ALLOC_FLAG
,
array
->
rgItems
+
i
*
arrayDesc
->
itemSize
,
&
itemSizes
[
i
].
size
,
NULL
);
&
itemSizes
[
i
].
size
,
&
itemDecoded
);
if
(
ret
)
{
DWORD
nextLen
;
nextData
+=
itemSizes
[
i
].
size
-
arrayDesc
->
itemSize
;
ret
=
CRYPT_GetLen
(
ptr
,
cbEncoded
-
(
ptr
-
pbEncoded
),
&
nextLen
);
if
(
ret
)
ptr
+=
nextLen
+
1
+
GET_LEN_BYTES
(
ptr
[
1
]);
ptr
+=
itemDecoded
;
}
}
}
...
...
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