]> git.ipfire.org Git - thirdparty/tor.git/commit
Avoid segfault when reading state file from ancient tor
authorNick Mathewson <nickm@torproject.org>
Mon, 10 Sep 2012 14:35:18 +0000 (10:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 10 Sep 2012 14:35:18 +0000 (10:35 -0400)
commit8731a4e148e23d8edbb7f32bdfeee30c326f33cc
tree3dab2cef71b8bd6e2ddc28f2cdb39b69cfddf4f3
parent97dbff51e60273b29d7dc15e4106c600e8efa34e
Avoid segfault when reading state file from ancient tor

If s_values is null in rep_hist_load_bwhist_state_section, we would
call smartlist_len() on it, and die.

Fixes bug 6801.
changes/bug6801 [new file with mode: 0644]
src/or/rephist.c