Commit 1160ac12 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Changes file for 19063; use the BUG macro

parent 58e6a6aa
Loading
Loading
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.
+1 −1
Original line number Diff line number Diff line
@@ -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)                               \