diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-03 12:03:21 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-03 12:03:21 -0500 |
commit | 93a6d53ef33f61a711c7a5b0583dae88a160d730 (patch) | |
tree | 4aa20b1926f94e521c48083b9b8012c4fa956570 /src | |
parent | 57a86fd43374a87b67f4c0b8cb7fc41feebe164f (diff) | |
download | tor-93a6d53ef33f61a711c7a5b0583dae88a160d730.tar.gz tor-93a6d53ef33f61a711c7a5b0583dae88a160d730.zip |
Add a note about _compare_int not doing overflow right
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rephist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 451db69da6..3146d70940 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -1982,7 +1982,9 @@ rep_hist_exit_stats_term(void) tor_free(exit_streams); } -/** Helper for qsort: compare two ints. */ +/** Helper for qsort: compare two ints. Does not handle overflow properly, + * but works fine for sorting an array of port numbers, which is what we use + * it for. */ static int _compare_int(const void *x, const void *y) { |