mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: use uint32_t replace "unsigned int"
Since it's typedef in "include/lib/types.h" Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -738,7 +738,7 @@ Bugfix
|
||||
Security
|
||||
* Add checks to prevent signature forgeries for very large messages while
|
||||
using RSA through the PK module in 64-bit systems. The issue was caused by
|
||||
some data loss when casting a size_t to an unsigned int value in the
|
||||
some data loss when casting a size_t to an uint32_t value in the
|
||||
functions rsa_verify_wrap(), rsa_sign_wrap(), rsa_alt_sign_wrap() and
|
||||
mbedtls_pk_sign(). Found by Jean-Philippe Aumasson.
|
||||
* Fixed potential livelock during the parsing of a CRL in PEM format in
|
||||
@@ -1266,7 +1266,7 @@ Semi-API changes (technically public, morally private)
|
||||
* Changed pk_info_t into an opaque structure.
|
||||
* Changed cipher_base_t into an opaque structure.
|
||||
* Removed sig_oid2 and rename sig_oid1 to sig_oid in x509_crt and x509_crl.
|
||||
* x509_crt.key_usage changed from uint8_t to unsigned int.
|
||||
* x509_crt.key_usage changed from uint8_t to uint32_t.
|
||||
* Removed r and s from ecdsa_context
|
||||
* Removed mode from des_context and des3_context
|
||||
|
||||
|
@@ -158,7 +158,7 @@ int mbedtls_internal_sha256_process( mbedtls_sha256_context *ctx,
|
||||
{
|
||||
uint32_t temp1, temp2, W[64];
|
||||
uint32_t A[8];
|
||||
unsigned int i;
|
||||
uint32_t i;
|
||||
|
||||
for( i = 0; i < 8; i++ )
|
||||
A[i] = ctx->state[i];
|
||||
|
@@ -31,7 +31,7 @@ static struct mem_pool Memory_Pool = {
|
||||
.contiguity_bitmap = Malloc_Heap_Contiguity_Bitmap
|
||||
};
|
||||
|
||||
static void *allocate_mem(struct mem_pool *pool, unsigned int num_bytes)
|
||||
static void *allocate_mem(struct mem_pool *pool, uint32_t num_bytes)
|
||||
{
|
||||
|
||||
void *memory = NULL;
|
||||
@@ -213,7 +213,7 @@ static void deallocate_mem(struct mem_pool *pool, const void *ptr)
|
||||
* The return address will be PAGE_SIZE aligned if 'num_bytes' is greater
|
||||
* than PAGE_SIZE.
|
||||
*/
|
||||
void *malloc(unsigned int num_bytes)
|
||||
void *malloc(uint32_t num_bytes)
|
||||
{
|
||||
void *memory = NULL;
|
||||
|
||||
@@ -234,7 +234,7 @@ void *malloc(unsigned int num_bytes)
|
||||
return memory;
|
||||
}
|
||||
|
||||
void *calloc(unsigned int num_elements, unsigned int element_size)
|
||||
void *calloc(uint32_t num_elements, uint32_t element_size)
|
||||
{
|
||||
void *memory = malloc(num_elements * element_size);
|
||||
|
||||
@@ -391,7 +391,7 @@ void *memset(void *base, uint8_t v, size_t n)
|
||||
asm volatile("cld ; rep ; stosq ; movl %3,%%ecx ; rep ; stosb"
|
||||
: "+c"(n_q), "+D"(dest_p)
|
||||
: "a" (v * 0x0101010101010101U),
|
||||
"r"((unsigned int)count & 7U));
|
||||
"r"((uint32_t)count & 7U));
|
||||
ret = (void *)dest_p;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user