Fix a heap overflow found by debuger, and make it harder to make that mistake again
commit115782bdbe42e4b3d5cb386d2939a883bc381d12
authorNick Mathewson <nickm@torproject.org>
Thu, 13 Jan 2011 19:36:41 +0000 (13 14:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 15 Jan 2011 16:49:25 +0000 (15 11:49 -0500)
treefacebd78bfcd426d3404999e5237c502fb34ebaa
parenta16902b9d4b0a912eb0a252bb945cbeaaa40dacb
Fix a heap overflow found by debuger, and make it harder to make that mistake again

Our public key functions assumed that they were always writing into a
large enough buffer.  In one case, they weren't.

(Incorporates fixes from sebastian)
12 files changed:
changes/tolen_asserts [new file with mode: 0644]
src/common/crypto.c
src/common/crypto.h
src/or/config.c
src/or/networkstatus.c
src/or/onion.c
src/or/rendclient.c
src/or/rendcommon.c
src/or/rendservice.c
src/or/routerlist.c
src/or/routerparse.c
src/or/test.c