Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(50)

Issue 90790044: code review 90790044: go.net/proxy: Don't pass invalid hostname length to SOC... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by robryk
Modified:
10 years, 11 months ago
Reviewers:
mikio
CC:
golang-codereviews, mikio
Visibility:
Public.

Description

go.net/proxy: Don't pass invalid hostname length to SOCKS5 proxies SOCKS5 uses a single-byte field for hostname length. This change causes dials to hostnames longer than 255 chars to fail instead of sending an invalid request to the proxy.

Patch Set 1 #

Patch Set 2 : diff -r cdbc77c5e006 https://code.google.com/p/go.net #

Patch Set 3 : diff -r cdbc77c5e006 https://code.google.com/p/go.net #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M proxy/socks5.go View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3
robryk
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.net
10 years, 11 months ago (2014-04-26 12:23:17 UTC) #1
mikio
lgtm will submit with a tweak to the cl description; s/hostname/domainname/
10 years, 11 months ago (2014-04-26 15:11:29 UTC) #2
mikio
10 years, 11 months ago (2014-04-26 15:24:44 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=b6d56582945d&repo=net ***

go.net/proxy: don't pass invalid domain name length to SOCKS5 proxies

SOCKS5 uses a single-byte field for domain name length. This change
causes dials to domain names longer than 255 chars to fail instead
of sending an invalid request to the proxy.

LGTM=mikioh.mikioh
R=golang-codereviews, mikioh.mikioh
CC=golang-codereviews
https://codereview.appspot.com/90790044

Committer: Mikio Hara <mikioh.mikioh@gmail.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b