mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Make log message warn about detected attempts to exploit 21018.
This commit is contained in:
parent
d978216dea
commit
0fb3058ece
@ -1327,8 +1327,10 @@ rend_cache_store_v2_desc_as_client(const char *desc,
|
|||||||
intro_size);
|
intro_size);
|
||||||
if (n_intro_points <= 0) {
|
if (n_intro_points <= 0) {
|
||||||
log_warn(LD_REND, "Failed to parse introduction points. Either the "
|
log_warn(LD_REND, "Failed to parse introduction points. Either the "
|
||||||
"service has published a corrupt descriptor or you have "
|
"service has published a corrupt descriptor, or you have "
|
||||||
"provided invalid authorization data.");
|
"provided invalid authorization data, or (maybe!) the "
|
||||||
|
"server is deliberately serving broken data in an attempt "
|
||||||
|
"to crash you with bug 21018.");
|
||||||
retval = -2;
|
retval = -2;
|
||||||
goto err;
|
goto err;
|
||||||
} else if (n_intro_points > MAX_INTRO_POINTS) {
|
} else if (n_intro_points > MAX_INTRO_POINTS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user