Terminate rep_hist_get_overload_stats_lines() with an NL.tor-0.4.6.1-alpha
commitcd0e5a942eee0f08f4311899c09c6783b2c8e22c
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Mar 2021 17:30:49 +0000 (18 13:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Mar 2021 17:30:49 +0000 (18 13:30 -0400)
tree8424fb456745a35617c20e4f5782f3c8b85c6a84
parent411db63fc36878af2627e43d3e64f607a1979a92
Terminate rep_hist_get_overload_stats_lines() with an NL.

We use it in router.c, where chunks are joined with "", not with
NL... so leaving off the terminating NL will lead to an unparseable
extrainfo.

Found by toralf. Bug not in any released Tor.
src/feature/stats/rephist.c
src/test/test_stats.c