Loading changes/bug19063 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor features (code safety): - In our integer-parsing functions, check that the maxiumum value given is no smaller than the minimum value. Closes ticket 19063; patch from U+039b. src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -1112,7 +1112,7 @@ tor_digest256_is_zero(const char *digest) if (!next && *endptr) \ goto err; \ /* Illogical (max, min) inputs? */ \ if (max < min) \ if (BUG(max < min)) \ goto err; \ /* Is r within limits? */ \ if (r < min || r > max) \ Loading Loading
changes/bug19063 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor features (code safety): - In our integer-parsing functions, check that the maxiumum value given is no smaller than the minimum value. Closes ticket 19063; patch from U+039b.
src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -1112,7 +1112,7 @@ tor_digest256_is_zero(const char *digest) if (!next && *endptr) \ goto err; \ /* Illogical (max, min) inputs? */ \ if (max < min) \ if (BUG(max < min)) \ goto err; \ /* Is r within limits? */ \ if (r < min || r > max) \ Loading