Fix incorrect cast of size_t* to uint32_t*
CID 304509 - it does not affect behaviour because the called function uses it as an out parameter and the result is never inspected. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
3705744681
commit
8a748e1868
1 changed files with 2 additions and 2 deletions
|
@ -405,7 +405,7 @@ static void suite_decode_serialized_payload_fini(void)
|
|||
deallocate_shared_secret();
|
||||
}
|
||||
|
||||
static bool split_encoded_data(unsigned char *data, size_t size, struct crypto_header **header, unsigned char **contents, uint32_t *length, struct crypto_footer **footer)
|
||||
static bool split_encoded_data(unsigned char *data, size_t size, struct crypto_header **header, unsigned char **contents, size_t *length, struct crypto_footer **footer)
|
||||
{
|
||||
unsigned char *ptr;
|
||||
|
||||
|
@ -845,7 +845,7 @@ CU_Test(ddssec_builtin_decode_serialized_payload, invalid_data, .init = suite_de
|
|||
|
||||
reset_exception(&exception);
|
||||
|
||||
result = split_encoded_data(encoded_buffer._buffer, encoded_buffer._length, &header, &contents, (uint32_t *) &length, &footer);
|
||||
result = split_encoded_data(encoded_buffer._buffer, encoded_buffer._length, &header, &contents, &length, &footer);
|
||||
CU_ASSERT_FATAL(result);
|
||||
assert(result); // for Clang's static analyzer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue