the new function chunk_free_randomized() overwrites the contents of a chunk with pseudo-random bytes before freeing it

This commit is contained in:
Andreas Steffen
2007-09-10 12:16:24 +00:00
parent e7d9fa7f98
commit bb3d6c3dbe
2 changed files with 27 additions and 0 deletions
+5
View File
@@ -88,6 +88,11 @@ bool chunk_write(chunk_t chunk, const char *path, const char *label, mode_t mask
*/
void chunk_free(chunk_t *chunk);
/**
* Overwrite the contents of a chunk with pseudo-random bytes and free them
*/
void chunk_free_randomized(chunk_t *chunk);
/**
* Initialize a chunk to point to buffer inspectable by sizeof()
*/