Make memwipe() do nothing when passed a NULL pointer or zero size
commitfb7d1f41b409761be3381efaeec0f56d2a470a9f
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 19 Jan 2016 00:22:58 +0000 (19 11:22 +1100)
committerNick Mathewson <nickm@torproject.org>
Tue, 7 Feb 2017 13:33:39 +0000 (7 08:33 -0500)
treebcd8576bcd121b24fbb1298221159a25b4232b72
parent053e11f397f3f890c52a1add6aa4e75a9178eba0
Make memwipe() do nothing when passed a NULL pointer or zero size

Check size argument to memwipe() for underflow.

Closes bug #18089. Reported by "gk", patch by "teor".
Bugfix on 0.2.3.25 and 0.2.4.6-alpha (#7352),
commit 49dd5ef3 on 7 Nov 2012.
changes/bug18089 [new file with mode: 0644]
src/common/crypto.c