mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 02:14:15 +01:00
40ca54a9ac
Address remaining PR comments for #2118 - Add ChangeLog.d/x509write_csr_heap_alloc.txt. - Fix parameter alignment per Gille's recommendation. - Update comments to more explicitly describe the manipulation of buf. - Replace use of `MBEDTLS_MPI_MAX_SIZE` as `sig` buffer size for call to `x509write_csr_der_internal()` with more intuitive `MBEDTLS_PK_SIGNATURE_MAX_SIZE`. - Update `mbedtls_x509write_csr_der()` to return `MBEDTLS_ERR_X509_ALLOC_FAILED` on mbedtls_calloc error. Signed-off-by: Simon Leet <simon.leet@microsoft.com>
5 lines
204 B
Plaintext
5 lines
204 B
Plaintext
Changes
|
|
* Reduce the stack consumption of mbedtls_x509write_csr_der() which
|
|
previously could lead to stack overflow on constrained devices.
|
|
Contributed by Doru Gucea and Simon Leet in #3464.
|