From 7bde02b3e7ed942a7b11c09bde805d0d16f56c05 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 19 Jun 2019 11:23:37 -0700 Subject: [PATCH] Fix for track memory case where the "prev" wasn't getting initialized for the first malloc. Caused issue on last free with fsantize because pointers are not zero'd by default. --- wolfssl/wolfcrypt/mem_track.h | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfssl/wolfcrypt/mem_track.h b/wolfssl/wolfcrypt/mem_track.h index 2be86d23c..975479733 100644 --- a/wolfssl/wolfcrypt/mem_track.h +++ b/wolfssl/wolfcrypt/mem_track.h @@ -184,6 +184,7 @@ header->next = NULL; if (ourMemList.tail == NULL) { ourMemList.head = header; + header->prev = NULL; } else { ourMemList.tail->next = header;