[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #7014 [Tor]: fmt_addr used more than once in parameter lists
#7014: fmt_addr used more than once in parameter lists
--------------------+-------------------------------------------------------
Reporter: dcf | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor | Version:
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
`fmt_addr` is called twice as an argument to `log_notice`, in two places
in `transport_resolve_conflicts`. Maybe other places too. Because
`fmt_addr` writes to a static buffer, one call clobbers the result of the
other.
With this `torrc`,
{{{
ClientTransportPlugin dummy socks4 1.1.1.1:10001
ClientTransportPlugin dummy socks4 2.2.2.2:10001
Log "notice stderr"
}}}
you get the log (observe wrongly repeated address)
{{{
[notice] You tried to add transport 'dummy' at '2.2.2.2:10001' but the
same transport already exists at '2.2.2.2:10001'. Skipping.
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7014>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs