-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Closed
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:ES|QL
Description
Elasticsearch Version
latest
Installed Plugins
No response
Java Version
bundled
OS Version
serverless
Problem Description
In ParseIp.java, the leadingZerosAreOctal() function is missing the bounds check if (v > 255) { throw invalid(string); } that exists in both leadingZerosRejected() (line 105) and leadingZerosAreDecimal() (line 151).
Before
Steps to Reproduce
ROW
input = "192.400.168.1"
| EVAL octal = TO_IP(input, {"leading_zeros":"octal"})
| EVAL decimal = TO_IP(input, {"leading_zeros":"decimal"})
| EVAL reject = TO_IP(input, {"leading_zeros":"reject"})
Produces:
reject = null
decimal = null
octal = 192.144.168.1
Logs (if relevant)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:ES|QL