diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-03-08 23:02:34 +0100 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-03-09 00:10:17 +0100 |
commit | 02ef06516e64c1559b24123d7c7d164b76110c9a (patch) | |
tree | 4c5677250658535f4868cd2a7c089add5d9f0b45 /src/test/test_util.c | |
parent | 0e5c7dc45b9a70ba44dd9a3dc0c3cb38e05e019d (diff) | |
download | tor-02ef06516e64c1559b24123d7c7d164b76110c9a.tar.gz tor-02ef06516e64c1559b24123d7c7d164b76110c9a.zip |
Use less-than instead of not-equal-to for comparison in read loops.
This patch changes a number of read loops in the util module to use
less-than comparison instead of not-equal-to comparison. We do this in
the case that we have a bug elsewhere that might cause `numread` to
become larger than `count` and thus become an infinite loop.
Diffstat (limited to 'src/test/test_util.c')
0 files changed, 0 insertions, 0 deletions