Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle call to SplitV64 with IPv4-only string #13

Closed
wants to merge 1 commit into from
Closed

Handle call to SplitV64 with IPv4-only string #13

wants to merge 1 commit into from

Conversation

phil-davis
Copy link
Contributor

For example:

var_dump(Net_IPv6::SplitV64("13.1.68.3"));
array(2) {
[0] =>
string(0) ""
[1] =>
string(8) "3.1.68.3"
}

Notice that the "1" in "13" has disappeared from the front of the
string.
Fixed by this change.
Note that SplitV64 does no validation of the supposed IPv6 and IPv4
parts - that is OK, it is up to the caller to validate the parts (before
or after calling SplitV64) using other functions.

For example:
```
var_dump(Net_IPv6::SplitV64("13.1.68.3"));
array(2) {
[0] =>
string(0) ""
[1] =>
string(8) "3.1.68.3"
}
```
Notice that the "1" in "13" has disappeared from the front of the
string.
Fixed by this change.
Note that SplitV64 does no validation of the supposed IPv6 and IPv4
parts - that is OK, it is up to the caller to validate the parts (before
or after calling SplitV64) using other functions.
@phil-davis
Copy link
Contributor Author

This was first noticed and fixed in pfSense commit pfsense/pfsense@cdcd860

@phil-davis
Copy link
Contributor Author

Is anybody maintaining this here any more?
Should I be sending fixes somewhere else?

@rbgarga
Copy link

rbgarga commented Aug 10, 2016

Based on code from 1.3.0b2, this change was already applied. Maybe repo moved out of github.

@phil-davis
Copy link
Contributor Author

The Net_IPv6 repo in Github is not the master that PEAR uses. Also (for reasons unknown to me) t is not regularly updated to mirror the current PEAR code. I am making requests to the actual master PEAR SVN repo and bug list at pear.php.net

@phil-davis
Copy link
Contributor Author

See comment #14 (comment)

@rbgarga
Copy link

rbgarga commented Aug 31, 2016

@phil-davis also fixed in 1.3.0b2

@phil-davis phil-davis closed this Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants