Comments (3)
The fix for the ipv6 case is live now on grepip
version 1.2.1 and ipinfo
2.4.1.
from cli.
Error log:
panic: runtime error: index out of range [3] with length 0
goroutine 1 [running]:
encoding/binary.bigEndian.Uint32(...)
/usr/lib/go-1.17/src/encoding/binary/binary.go:112
github.com/ipinfo/cli/lib.IPFromStdIP({0x0, 0xc00001e160, 0x82784c})
/go/pkg/mod/github.com/ipinfo/[email protected]/lib/ip.go:24 +0x45
github.com/ipinfo/cli/lib.CmdGrepIP.func1({0x7ffffd27babe, 0x13}, {0x82d580, 0xc000010550})
/go/pkg/mod/github.com/ipinfo/[email protected]/lib/cmd_grepip.go:265 +0x766
github.com/ipinfo/cli/lib.CmdGrepIP.func2({0x7ffffd27babe, 0x13})
/go/pkg/mod/github.com/ipinfo/[email protected]/lib/cmd_grepip.go:326 +0x5f
github.com/ipinfo/cli/lib.CmdGrepIP({0x1, 0x1, 0x0, 0x0, 0x0, 0x1, 0x0, 0x1}, {0xc0000719f0, 0x1, ...}, ...)
/go/pkg/mod/github.com/ipinfo/[email protected]/lib/cmd_grepip.go:343 +0x8a2
main.cmdGrepIP()
/go/pkg/mod/github.com/ipinfo/[email protected]/ipinfo/cmd_grepip.go:65 +0x105
main.main()
/go/pkg/mod/github.com/ipinfo/[email protected]/ipinfo/main.go:55 +0x1ef
from cli.
The currrent ipv6 regex seems to have issues properly parsing compressed IPv6 forms where the compression happens in the middle (but works fine if in the start or end). But after some testing it turns out the issue is not with the regex itself but that we were not using the POSIX version of the regex parser. Using that fixes things.
However the error log you shared doesn't happen for me when run against the input IPs shown above even without the fix. It seems to happen for IPv4 cases only, and also seems to be a replica of #62 but not sure how that's possible as the regex is pretty solid now.
If you could help me find an exact input that caused that error, it should be an easy fix.
from cli.
Related Issues (20)
- Country flag emoji oddly displayed HOT 10
- Implement netIP functionalities in CLI HOT 1
- Bug in `ipinfo tool upper` HOT 1
- Windows 11 (Defender): Trojan:Win32/Bearfoos.B!ml Trojan Virus HOT 3
- Piping a list of IP addresses to map and summarize is NOT working HOT 1
- More basic IP tools
- "ipinfo tool aggregate" weirdness HOT 3
- Linux aarch64 not supported HOT 3
- API endpoint for usage HOT 3
- Tool → aggregate function throwing error at file input HOT 1
- Tool → `aggregate` function does not print IPs as is HOT 5
- IPinfo CLI tool command → `aggregate` closer inspection of operation recommended HOT 1
- Even with installation failure the CLI indicates success HOT 1
- Different GLIBC version in 3.3.0? HOT 3
- How it the CLI handles manual input of tokens?
- ipinfo no longer works on Windows 7, Windows Server 2008 HOT 1
- IPinfo CLI Download command: Invalid character 'U' looking for beginning of value
- Windows Defender flagging as Name: Trojan:Win32/Bearfoos.A!ml
- brew install ipinfo-cli
- The aggregate tool does not support IP range aggregation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.