mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
This commit is contained in:
commit
0e554f93d6
6
changes/bug2750
Normal file
6
changes/bug2750
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes
|
||||||
|
- Correct the warning displayed when a rendezvous descriptor exceeds
|
||||||
|
the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found
|
||||||
|
by John Brooks.
|
||||||
|
|
||||||
|
|
@ -4639,8 +4639,10 @@ rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
|
|||||||
eos = eos + 1;
|
eos = eos + 1;
|
||||||
/* Check length. */
|
/* Check length. */
|
||||||
if (strlen(desc) > REND_DESC_MAX_SIZE) {
|
if (strlen(desc) > REND_DESC_MAX_SIZE) {
|
||||||
|
/* XXX023 If we are parsing this descriptor as a server, this
|
||||||
|
* should be a protocol warning. */
|
||||||
log_warn(LD_REND, "Descriptor length is %i which exceeds "
|
log_warn(LD_REND, "Descriptor length is %i which exceeds "
|
||||||
"maximum rendezvous descriptor size of %i kilobytes.",
|
"maximum rendezvous descriptor size of %i bytes.",
|
||||||
(int)strlen(desc), REND_DESC_MAX_SIZE);
|
(int)strlen(desc), REND_DESC_MAX_SIZE);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user