diff options
author | David Goulet <dgoulet@torproject.org> | 2017-02-01 11:22:17 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-03 09:54:06 -0500 |
commit | 8573d994706c16628bb60e0aabdb9a5190beff13 (patch) | |
tree | 13b26394027fb6fca48c94dc00a05e2415d6c680 /autogen.sh | |
parent | cc0342a2ae4264c5b8796e2731a51272342bb8f4 (diff) | |
download | tor-8573d994706c16628bb60e0aabdb9a5190beff13.tar.gz tor-8573d994706c16628bb60e0aabdb9a5190beff13.zip |
hs: Fix an underflow in rend_service_intro_has_opened()
In rend_service_intro_has_opened(), this is subject to a possible underflow
because of how the if() casts the results. In the case where the expiring
nodes list length is bigger than the number of IP circuits, we end up in the
following situation where the result will be cast to an unsigned int. For
instance, "5 - 6" is actually a BIG number.
Ultimately leading to closing IP circuits in a non stop loop.
Partially fixes #21302.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions