Commit 4b719cba authored by Roger Dingledine's avatar Roger Dingledine
Browse files

stop reading uninitialized/outofbounds memory. possible backport,

quite related to bug 455.


svn:r10835
parent 98ce45be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -892,7 +892,7 @@ router_parse_list_from_string(const char **s, const char *eos,
    }
    end = tor_memstr(*s, eos-*s, "\nrouter-signature");
    if (end)
      end = tor_memstr(end, eos-*s, "\n-----END SIGNATURE-----\n");
      end = tor_memstr(end, eos-end, "\n-----END SIGNATURE-----\n");
    if (end)
      end += strlen("\n-----END SIGNATURE-----\n");