Merge branch 'trove-2018-005_032' into maint-0.3.3
This commit is contained in:
commit
80d673ccea
|
@ -204,7 +204,7 @@ parse_single_entry(const char *s, const char *end_of_entry)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* The name must not be longer than MAX_PROTOCOL_NAME_LENGTH. */
|
/* The name must not be longer than MAX_PROTOCOL_NAME_LENGTH. */
|
||||||
if (equals - s > MAX_PROTOCOL_NAME_LENGTH) {
|
if (equals - s > (int)MAX_PROTOCOL_NAME_LENGTH) {
|
||||||
log_warn(LD_NET, "When parsing a protocol entry, I got a very large "
|
log_warn(LD_NET, "When parsing a protocol entry, I got a very large "
|
||||||
"protocol name. This is possibly an attack or a bug, unless "
|
"protocol name. This is possibly an attack or a bug, unless "
|
||||||
"the Tor network truly supports protocol names larger than "
|
"the Tor network truly supports protocol names larger than "
|
||||||
|
|
Loading…
Reference in New Issue