Skip to content

Fix IPv4 address validation#1406

Merged
fwsGonzo merged 2 commits intomasterfrom
unknown repository
Aug 3, 2017
Merged

Fix IPv4 address validation#1406
fwsGonzo merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 12, 2017

The regex had an en-dash instead of a hyphen in the character range

@jenkins-includeos
Copy link
Copy Markdown

Can one of the admins verify this patch with one of the following commands:

  • "jenkins test please" for a one time test run
  • "ok to test" to accept latest and future commits on this pull request for testing
  • "add to whitelist" to add the author to the whitelist

@ingve
Copy link
Copy Markdown
Contributor

ingve commented Jul 12, 2017

ok to test

Comment thread api/net/ip4/addr.hpp Outdated
"(25[0–5]|2[0–4]\\d|[01]?\\d\\d?)\\."
"(25[0–5]|2[0–4]\\d|[01]?\\d\\d?)\\s*$"
#define OCTET_PATTERN "(25[0-5]|2[0-4]\\d|[01]?\\d\\d?)"
"^\\s*" OCTET_PATTERN "\\." OCTET_PATTERN "\\." OCTET_PATTERN "\\." OCTET_PATTERN "\\s*$",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a trailing comma(,) I'm seeing there?

Although it's calling the second constructor on this list, it's better off not being there...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@fwsGonzo fwsGonzo merged commit 44e4b3f into includeos:master Aug 3, 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

Development

Successfully merging this pull request may close these issues.

5 participants