Commit a783c5cb authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Merge remote-tracking branch 'public/feature21496'

parents 31c9bdad 5203cd2f
Loading
Loading
Loading
Loading

changes/bug21496

0 → 100644
+4 −0
Original line number Diff line number Diff line
  o Minor features (safety):
    - Add an explict check to extrainfo_parse_entry_from_string() for NULL
      inputs. We don't believe this can actually happen, but it may help
      silence a warning from the Clang analyzer. Closes ticket 21496.
+3 −0
Original line number Diff line number Diff line
@@ -2030,6 +2030,9 @@ extrainfo_parse_entry_from_string(const char *s, const char *end,
   * parse that's covered by the hash. */
  int can_dl_again = 0;

  if (BUG(s == NULL))
    return NULL;

  if (!end) {
    end = s + strlen(s);
  }