mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-08 15:39:22 +01:00
Potential buffer overwrite in pem_write_buffer() fixed
Length indication when given a too small buffer was off. Added regression test in test_suite_pem to detect this.
This commit is contained in:
parent
d6ad8e949b
commit
1630058dde
7 changed files with 74 additions and 2 deletions
|
|
@ -1,6 +1,14 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(POLARSSL_PLATFORM_C)
|
||||
#include "polarssl/platform.h"
|
||||
#else
|
||||
#define polarssl_printf printf
|
||||
#define polarssl_malloc malloc
|
||||
#define polarssl_free free
|
||||
#endif
|
||||
|
||||
static int test_errors = 0;
|
||||
|
||||
SUITE_PRE_DEP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue