1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

buffer: Add a secure buffer mechanism to avoid memory spills

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Aris Adamantiadis
2014-08-24 14:25:02 +02:00
committed by Andreas Schneider
parent 2cb2587b55
commit 86ae6b2251
3 changed files with 43 additions and 9 deletions

View File

@ -9,6 +9,7 @@
static void setup(void **state) {
ssh_buffer buffer;
buffer = ssh_buffer_new();
ssh_buffer_set_secure(buffer);
*state = (void *) buffer;
}