Properly handle non-terminated strings
commitb67657bd952919d0b738a1ffd6c48cc369604873
authorSebastian Hahn <sebastian@torproject.org>
Thu, 25 Feb 2010 09:31:36 +0000 (25 10:31 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 27 Feb 2010 01:13:22 +0000 (27 02:13 +0100)
tree648c9c34cfcbae1dbedad46ce56c3bb6b0ae34a9
parent86828e2004058d01fba09215a44d51d53f82e5c3
Properly handle non-terminated strings

Treat strings returned from signed_descriptor_get_body_impl() as not
NUL-terminated. Since the length of the strings is available, this is
not a big problem.

Discovered by rieo.
ChangeLog
src/or/or.h
src/or/router.c
src/or/routerlist.c
src/or/routerparse.c