mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 23:05:05 +00:00
Add explanation for safety in function
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
7a342a24ff
commit
8d7eef470b
|
@ -244,6 +244,14 @@ static void pkcs12_fill_buffer( unsigned char *data, size_t data_len,
|
||||||
data_len -= use_len;
|
data_len -= use_len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* If either of the above are not true then clearly there is nothing
|
||||||
|
* that this function can do. The function should *not* be called
|
||||||
|
* under either of those circumstances, as you could end up with an
|
||||||
|
* incorrect output but for safety's sake, leaving the check in as
|
||||||
|
* otherwise we could end up with memory corruption.*/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbedtls_pkcs12_derivation( unsigned char *data, size_t datalen,
|
int mbedtls_pkcs12_derivation( unsigned char *data, size_t datalen,
|
||||||
|
|
Loading…
Reference in a new issue