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
d101fdb4
Commit
d101fdb4
authored
Sep 18, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msasn1: Fix buffer allocations.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2eed0cdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/msasn1/main.c
+3
-3
No files found.
dlls/msasn1/main.c
View file @
d101fdb4
...
...
@@ -56,7 +56,7 @@ ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule,
if
(
!
encoder
||
!
decoder
||
!
freemem
||
!
size
)
return
module
;
module
=
heap_alloc
(
sizeof
(
module
));
module
=
heap_alloc
(
sizeof
(
*
module
));
if
(
module
)
{
module
->
nModuleName
=
magic
;
...
...
@@ -103,7 +103,7 @@ ASN1error_e WINAPI ASN1_CreateEncoder(ASN1module_t module, ASN1encoding_t *encod
if
(
!
module
||
!
encoder
)
return
ASN1_ERR_BADARGS
;
enc
=
heap_alloc
(
sizeof
(
enc
));
enc
=
heap_alloc
(
sizeof
(
*
enc
));
if
(
!
enc
)
{
return
ASN1_ERR_MEMORY
;
...
...
@@ -153,7 +153,7 @@ ASN1error_e WINAPI ASN1_CreateDecoder(ASN1module_t module, ASN1decoding_t *decod
if
(
!
module
||
!
decoder
)
return
ASN1_ERR_BADARGS
;
dec
=
heap_alloc
(
sizeof
(
dec
));
dec
=
heap_alloc
(
sizeof
(
*
dec
));
if
(
!
dec
)
{
return
ASN1_ERR_MEMORY
;
...
...
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