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

Fix #2313: Defect in j.n.InetAddress#createIPStringFromByteArray #2348

Merged

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Aug 11, 2021

Previously, createIPStringFromByteArray would ignore last group if it was equal to 0. A simple test for the issue was added as well. Since JVM uses lowercase characters in String addresses, explicit String comparison would not work here.

Previously, if values in the last group were all equal to 0,
they would be ignored in the string.
@jchyb jchyb changed the title Fix #2313 Defect in j.n.InetAddress#createIPStringFromByteArray Fix #2313: Defect in j.n.InetAddress#createIPStringFromByteArray Aug 11, 2021
@WojciechMazur WojciechMazur linked an issue Aug 11, 2021 that may be closed by this pull request
@WojciechMazur WojciechMazur merged commit 4e0de6f into scala-native:master Aug 11, 2021
WojciechMazur pushed a commit to WojciechMazur/scala-native that referenced this pull request Aug 25, 2021
…teArray (scala-native#2348)

* Fix createIPStringFromByteArray ignoring last group

Previously, if values in the last group were all equal to 0,
they would be ignored in the string.

* Add test for issue
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.

Defect in j.n.InetAddress#createIPStringFromByteArray
2 participants