Skip to content

std: Fix peeling ports from addresses - #23097

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:issue-23076
Mar 7, 2015
Merged

std: Fix peeling ports from addresses#23097
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:issue-23076

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

The rsplitn call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes #23076

The `rsplitn` call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes rust-lang#23076
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@aturon

aturon commented Mar 6, 2015

Copy link
Copy Markdown
Contributor

@bors: r+ 65b4eda

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 6, 2015
 The `rsplitn` call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes rust-lang#23076
@Manishearth

Copy link
Copy Markdown
Member

This seems to be causing panics within panics on Windows (only)

@retep998 got a sortof-backtrace

Image

@retep998

retep998 commented Mar 6, 2015

Copy link
Copy Markdown
Contributor

Note that error was from building the rollup PR which happened to include this PR. I am still working on building just this PR. Unfortunately LLVM really likes to rebuild all the time.

@retep998

retep998 commented Mar 6, 2015

Copy link
Copy Markdown
Contributor

This is the error I get when running make check-stage2-std on this PR.
Image

@Manishearth

Copy link
Copy Markdown
Member

Yeah, same test, just that the doublepanic doesn't happen

@alexcrichton

Copy link
Copy Markdown
Member Author

This is not the cause of the double panic.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 6, 2015
The `rsplitn` call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes rust-lang#23076
@bors
bors merged commit 65b4eda into rust-lang:master Mar 7, 2015
@alexcrichton
alexcrichton deleted the issue-23076 branch March 7, 2015 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UdpSocket::bind() accepts invalid IPv6 address

6 participants