Closed Bug 1308275 Opened 8 years ago Closed 8 years ago

SOCKS socket does not support spaces and other special characters (Tor 20304)

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: mcs, Assigned: mcs)

References

Details

(Whiteboard: [tor][necko-active])

Attachments

(1 file, 1 obsolete file)

Special characters, including spaces, are not decoded before the configured network.proxy.socks path is placed inside a Unix domain sockaddr. This causes the SOCKS connection to not work at all when a Unix domain socket is used with a path that contains spaces (or other URL-special characters).

Corresponding Tor Browser bug report: https://trac.torproject.org/20304
Attached patch proposed fix (obsolete) — Splinter Review
Assignee: nobody → xeonchen
Whiteboard: [tor]
Comment on attachment 8798530 [details] [diff] [review]
proposed fix

Review of attachment 8798530 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you for this patch. It looks good to me.

Daniel, would you please help to review?
Attachment #8798530 - Flags: review?(daniel)
Whiteboard: [tor] → [tor][necko-active]
Comment on attachment 8798530 [details] [diff] [review]
proposed fix

Review of attachment 8798530 [details] [diff] [review]:
-----------------------------------------------------------------

I approve!
Attachment #8798530 - Flags: review?(daniel) → review+
rebase, carry r+
Attachment #8798530 - Attachment is obsolete: true
Attachment #8801634 - Flags: review+
Assignee: xeonchen → mcs
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd162c41b684
make unix domain socket support spaces; r=bagder
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fd162c41b684
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Depends on: 1311275
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: