mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge remote-tracking branch 'public/feature21496'
This commit is contained in:
commit
a783c5cbae
4
changes/bug21496
Normal file
4
changes/bug21496
Normal file
@ -0,0 +1,4 @@
|
||||
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.
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user