projects
/
mirror_edk2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new interfaces to support PKCS7#7 signed data and authenticode signature. Update...
[mirror_edk2.git]
/
CryptoPkg
/
Library
/
BaseCryptLib
/
SysCall
/
CrtWrapper.c
diff --git
a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c
b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c
index 7b3dda70e0941242e5b53af89d9bb878aaeca6df..fb446b677044c35764c9e86bf1c7e8782ced1901 100644
(file)
--- a/
CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c
+++ b/
CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c
@@
-18,7
+18,7
@@
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
int errno = 0;
\r
\r
FILE *stderr = NULL;
\r
int errno = 0;
\r
\r
FILE *stderr = NULL;
\r
-FILE *stdin = NULL;
\r
+FILE *stdin
= NULL;
\r
FILE *stdout = NULL;
\r
\r
typedef
\r
FILE *stdout = NULL;
\r
\r
typedef
\r
@@
-244,7
+244,10
@@
void qsort (void *base, size_t num, size_t width, int (*compare)(const void *, c
ASSERT (base != NULL);
\r
ASSERT (compare != NULL);
\r
\r
ASSERT (base != NULL);
\r
ASSERT (compare != NULL);
\r
\r
- Buffer = AllocatePool (width);
\r
+ //
\r
+ // Use CRT-style malloc to cover BS and RT memory allocation.
\r
+ //
\r
+ Buffer = malloc (width);
\r
ASSERT (Buffer != NULL);
\r
\r
//
\r
ASSERT (Buffer != NULL);
\r
\r
//
\r
@@
-252,7
+255,7
@@
void qsort (void *base, size_t num, size_t width, int (*compare)(const void *, c
//
\r
QuickSortWorker (base, (UINTN)num, (UINTN)width, (SORT_COMPARE)compare, Buffer);
\r
\r
//
\r
QuickSortWorker (base, (UINTN)num, (UINTN)width, (SORT_COMPARE)compare, Buffer);
\r
\r
-
FreePool
(Buffer);
\r
+
free
(Buffer);
\r
return;
\r
}
\r
\r
return;
\r
}
\r
\r