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
2b1c8fed
Commit
2b1c8fed
authored
Dec 08, 2013
by
Sebastian Lackner
Committed by
Alexandre Julliard
Dec 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Set correct return value if CryptMemAlloc fails.
parent
502fc1ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
cert.c
dlls/crypt32/cert.c
+8
-0
chain.c
dlls/crypt32/chain.c
+2
-0
filestore.c
dlls/crypt32/filestore.c
+2
-0
object.c
dlls/crypt32/object.c
+2
-0
No files found.
dlls/crypt32/cert.c
View file @
2b1c8fed
...
...
@@ -1466,6 +1466,8 @@ static BOOL compare_cert_by_cert_id(PCCERT_CONTEXT pCertContext, DWORD dwType,
ret
=
!
memcmp
(
buf
,
id
->
u
.
KeyId
.
pbData
,
size
);
CryptMemFree
(
buf
);
}
else
ret
=
FALSE
;
}
else
ret
=
FALSE
;
...
...
@@ -1506,6 +1508,8 @@ static BOOL compare_cert_by_signature_hash(PCCERT_CONTEXT pCertContext, DWORD dw
ret
=
!
memcmp
(
buf
,
hash
->
pbData
,
size
);
CryptMemFree
(
buf
);
}
else
ret
=
FALSE
;
}
else
ret
=
FALSE
;
...
...
@@ -2375,10 +2379,14 @@ BOOL WINAPI CryptSignAndEncodeCertificate(HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCrypt
}
CryptMemFree
(
hash
);
}
else
ret
=
FALSE
;
}
}
CryptMemFree
(
encoded
);
}
else
ret
=
FALSE
;
}
return
ret
;
}
...
...
dlls/crypt32/chain.c
View file @
2b1c8fed
...
...
@@ -306,6 +306,8 @@ static BOOL CRYPT_IsCertificateSelfSigned(PCCERT_CONTEXT cert)
ret
=
!
memcmp
(
buf
,
info
->
KeyId
.
pbData
,
size
);
CryptMemFree
(
buf
);
}
else
ret
=
FALSE
;
}
else
ret
=
FALSE
;
...
...
dlls/crypt32/filestore.c
View file @
2b1c8fed
...
...
@@ -122,6 +122,8 @@ static BOOL CRYPT_ReadBlobFromFile(HANDLE file, PCERT_BLOB blob)
ret
=
ReadFile
(
file
,
blob
->
pbData
,
blob
->
cbData
,
&
read
,
NULL
)
&&
read
==
blob
->
cbData
;
if
(
!
ret
)
CryptMemFree
(
blob
->
pbData
);
}
else
ret
=
FALSE
;
}
return
ret
;
}
...
...
dlls/crypt32/object.c
View file @
2b1c8fed
...
...
@@ -55,6 +55,8 @@ static BOOL CRYPT_ReadBlobFromFile(LPCWSTR fileName, PCERT_BLOB blob)
ret
=
ReadFile
(
file
,
blob
->
pbData
,
blob
->
cbData
,
&
read
,
NULL
)
&&
read
==
blob
->
cbData
;
if
(
!
ret
)
CryptMemFree
(
blob
->
pbData
);
}
else
ret
=
FALSE
;
}
CloseHandle
(
file
);
}
...
...
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