mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
stop reading uninitialized/outofbounds memory. possible backport,
quite related to bug 455. svn:r10835
This commit is contained in:
parent
98ce45bebf
commit
4b719cbae0
@ -892,7 +892,7 @@ router_parse_list_from_string(const char **s, const char *eos,
|
|||||||
}
|
}
|
||||||
end = tor_memstr(*s, eos-*s, "\nrouter-signature");
|
end = tor_memstr(*s, eos-*s, "\nrouter-signature");
|
||||||
if (end)
|
if (end)
|
||||||
end = tor_memstr(end, eos-*s, "\n-----END SIGNATURE-----\n");
|
end = tor_memstr(end, eos-end, "\n-----END SIGNATURE-----\n");
|
||||||
if (end)
|
if (end)
|
||||||
end += strlen("\n-----END SIGNATURE-----\n");
|
end += strlen("\n-----END SIGNATURE-----\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user