• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

containernetworking / plugins
53%
master: 55%

Build:
Build:
LAST BUILD BRANCH: pkg-ip-host-local-topofspace-panic
DEFAULT BRANCH: master
Repo Added 15 Nov 2017 08:41AM UTC
Files 69
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH pkg-ip-host-local-topofspace-panic
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • CNV-75526
  • CORENET-7391
  • add-aks-integration
  • bridge-error
  • bridge-mac-pinning
  • bridge-port-isolation
  • bugfix/wrong_startrange
  • bump-go-1.26.4
  • bump-go-version
  • bump-go-version-2
  • bump-golang-ci
  • bump-insomniacslk-dhcp-583
  • bump-libcni
  • codeql
  • comment-fix
  • contact-info
  • coryright-attribution
  • deletevlaniface
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.18
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.19
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.20
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.21
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.22
  • dependabot/docker/dot-github/actions/retest-action/alpine-3.23
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/actions/setup-go-7
  • dependabot/github_actions/golangci/golangci-lint-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-5
  • dependabot/github_actions/golangci/golangci-lint-action-6
  • dependabot/github_actions/golangci/golangci-lint-action-9
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.10.0
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.11.0
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.11.1
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.9.10
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.9.7
  • dependabot/go_modules/github.com/Microsoft/hcsshim-0.9.9
  • dependabot/go_modules/github.com/containerd/containerd-1.6.26
  • dependabot/go_modules/github.com/coreos/go-iptables-0.7.0
  • dependabot/go_modules/github.com/networkplumbing/go-nft-0.3.0
  • dependabot/go_modules/github.com/networkplumbing/go-nft-0.4.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.11.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.12.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.12.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.13.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.13.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.8.3
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.8.4
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.9.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.9.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.9.4
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.9.7
  • dependabot/go_modules/github.com/onsi/gomega-1.25.0
  • dependabot/go_modules/github.com/onsi/gomega-1.26.0
  • dependabot/go_modules/github.com/onsi/gomega-1.27.1
  • dependabot/go_modules/github.com/onsi/gomega-1.27.10
  • dependabot/go_modules/github.com/onsi/gomega-1.27.2
  • dependabot/go_modules/github.com/onsi/gomega-1.27.3
  • dependabot/go_modules/github.com/onsi/gomega-1.27.8
  • dependabot/go_modules/github.com/onsi/gomega-1.27.9
  • dependabot/go_modules/github.com/onsi/gomega-1.28.0
  • dependabot/go_modules/github.com/onsi/gomega-1.30.0
  • dependabot/go_modules/github.com/opencontainers/selinux-1.11.0
  • dependabot/go_modules/golang-09a819dc01
  • dependabot/go_modules/golang-0ff27c0dc8
  • dependabot/go_modules/golang-103bedb26b
  • dependabot/go_modules/golang-1eaf3aa819
  • dependabot/go_modules/golang-28bf83e400
  • dependabot/go_modules/golang-29835453c6
  • dependabot/go_modules/golang-2a2975bc13
  • dependabot/go_modules/golang-2cb2537523
  • dependabot/go_modules/golang-2d6cee5bad
  • dependabot/go_modules/golang-2f005b8ca9
  • dependabot/go_modules/golang-383d838611
  • dependabot/go_modules/golang-439c5fc513
  • dependabot/go_modules/golang-4dd97b104e
  • dependabot/go_modules/golang-51f3cddb77
  • dependabot/go_modules/golang-5c8df2ff5e
  • dependabot/go_modules/golang-61257cff18
  • dependabot/go_modules/golang-6263b2479d
  • dependabot/go_modules/golang-6a6949385a
  • dependabot/go_modules/golang-6a70725da1
  • dependabot/go_modules/golang-7e0ee1aacf
  • dependabot/go_modules/golang-82cdb19fbc
  • dependabot/go_modules/golang-82e3264b6f
  • dependabot/go_modules/golang-8bfbea899d
  • dependabot/go_modules/golang-8c40cefe07
  • dependabot/go_modules/golang-8d073ec575
  • dependabot/go_modules/golang-8f3a99df9e
  • dependabot/go_modules/golang-98d539f651
  • dependabot/go_modules/golang-9b7ee4a467
  • dependabot/go_modules/golang-9fbc68838b
  • dependabot/go_modules/golang-a01909eac1
  • dependabot/go_modules/golang-a90ed34d00
  • dependabot/go_modules/golang-ac7443b549
  • dependabot/go_modules/golang-b1fd1a5525
  • dependabot/go_modules/golang-b711640f48
  • dependabot/go_modules/golang-c05031af0a
  • dependabot/go_modules/golang-c722575f0f
  • dependabot/go_modules/golang-cbe0ec1090
  • dependabot/go_modules/golang-db9f2d353e
  • dependabot/go_modules/golang-e423e5d544
  • dependabot/go_modules/golang-e5a06e9046
  • dependabot/go_modules/golang-efff583b38
  • dependabot/go_modules/golang-f04424bbb8
  • dependabot/go_modules/golang-f1c86e0e78
  • dependabot/go_modules/golang-f6d18035b1
  • dependabot/go_modules/golang-fb115483cc
  • dependabot/go_modules/golang-fd31490dbe
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • dependabot/go_modules/golang.org/x/net-0.23.0
  • dependabot/go_modules/golang.org/x/net-0.36.0
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • dependabot/go_modules/golang.org/x/net-0.55.0
  • dependabot/go_modules/golang.org/x/sys-0.10.0
  • dependabot/go_modules/golang.org/x/sys-0.11.0
  • dependabot/go_modules/golang.org/x/sys-0.13.0
  • dependabot/go_modules/golang.org/x/sys-0.4.0
  • dependabot/go_modules/golang.org/x/sys-0.5.0
  • dependabot/go_modules/golang.org/x/sys-0.7.0
  • dependabot/go_modules/golang.org/x/sys-0.8.0
  • dependabot/go_modules/golang.org/x/sys-0.9.0
  • dependabot/go_modules/google.golang.org/grpc-1.56.3
  • dependabot/go_modules/google.golang.org/grpc-1.79.3
  • dependabot/go_modules/google.golang.org/grpc-1.82.1
  • dependabot/go_modules/google.golang.org/protobuf-1.33.0
  • dhcp-daemon-terminate-iface-nonexist
  • enable-vlan-uplink-interface
  • feat/host-local-gc
  • feature/go_version_bump
  • feature/group-fwd-mask
  • feature/modernize_forvar
  • feature/modernize_update
  • fix
  • fix-bw-nil
  • fix-dhcp-release-issue-1278
  • fix-firewall-ci
  • fix-integ-tests
  • fix-long-hostvethname
  • fix-portmap_nftables
  • fix-unshare
  • fix-windows-ginko
  • fix/dhcp-suppress-gateway
  • fix/nftables-fallback-when-iptables-missing
  • fix/portmap
  • fix/portmap-del-flush-conntrack
  • fix/vrf-del-idempotent
  • fix/vrf-ipv6-ecmp-default-route
  • fix_bridge_test_linux7
  • fix_dhcp_ipam_release
  • fixdad
  • fixglobalroutes
  • fixvlantrunk
  • fixvrfglobalroutes
  • go-1.25
  • go-mod-separate
  • go-mod-verify
  • go-version
  • go1.24
  • host-device
  • host-device-l3-info
  • increatetimeoutvrf
  • ingress-same-bridge-isolate
  • jell/per_if_sysctl
  • jell/vlan-1
  • jell/vlan-2
  • keeponaddripv6
  • macvlan/stop-setting-proxy-arp
  • main
  • master
  • multiple_routes_same_prefix1
  • new-maintainers
  • oif_rule
  • patch-1
  • pin-actions-to-sha
  • pkg-ip-host-local-topofspace-panic
  • portmap-autodetect
  • portmap-last-write-wins
  • refs/tags/v0.9.0
  • refs/tags/v0.9.1
  • refs/tags/v1.0.0
  • refs/tags/v1.0.0-rc1
  • refs/tags/v1.0.1
  • refs/tags/v1.1.0
  • refs/tags/v1.1.1
  • refs/tags/v1.2.0
  • refs/tags/v1.4.0
  • refs/tags/v1.4.1
  • refs/tags/v1.5.0
  • refs/tags/v1.5.1
  • release-1.1
  • remove-bryan
  • remove-release-sh2
  • retry
  • revert_c1069bd
  • scorecard
  • setpreservedefaultvlanfalse
  • test-ipam-ecmp1
  • v0.8.2
  • v0.8.3
  • v0.8.4
  • v0.8.5
  • v0.8.6
  • v0.8.7
  • wip-remove-dup
  • xuxiaowei/loong64
  • zerofix

17 Aug 2026 01:05PM UTC coverage: 52.578%. First build
32033213785

Pull #1293

github

thc1006
pkg/ip: preserve address family and reject underflow in intToIP

intToIP decided the result length from the minimal big.Int encoding, so a low IPv6 value whose leading bytes are zero (NextIP(::ff:ffff)) came back as a 4-byte IPv4 address. And because big.Int.Bytes returns the absolute value, PrevIP below the first address of a family returned the wrapped value instead of nil.

Decide the family width first, reject sign-negative underflow and oversized overflow, and always return the family's fixed width. Add regressions for IPv6 family preservation and both family minima.

Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
Pull Request #1293: pkg/ip, host-local: fix panic on a RangeStart at the top of a family

17 of 17 new or added lines in 2 files covered. (100.0%)

5018 of 9544 relevant lines covered (52.58%)

27.88 hits per line

Relevant lines Covered
Build:
Build:
9544 RELEVANT LINES 5018 COVERED LINES
27.88 HITS PER LINE
Source Files on master
  • Tree
  • List 69
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32033213785 pkg-ip-host-local-topofspace-panic pkg/ip: preserve address family and reject underflow in intToIP intToIP decided the result length from the minimal big.Int encoding, so a low IPv6 value whose leading bytes are zero (NextIP(::ff:ffff)) came back as a 4-byte IPv4 address. And beca... Pull #1293 17 Aug 2026 01:30PM UTC thc1006 github
52.58
32019706688 pkg-ip-host-local-topofspace-panic pkg/ip, host-local: fix panic on a RangeStart at the top of a family {"ipam":{"type":"host-local","ranges":[[{"subnet":"255.255.255.252/30","rangeStart":"255.255.255.255","gateway":"255.255.255.255"}]]}} LoadIPAMConfig accepts this config. Range... Pull #1293 17 Aug 2026 10:30AM UTC thc1006 github
52.54
32004892701 pkg-ip-host-local-topofspace-panic pkg/ip, host-local: fix panic on a RangeStart at the top of a family {"ipam":{"type":"host-local","ranges":[[{"subnet":"255.255.255.252/30","rangeStart":"255.255.255.255","gateway":"255.255.255.255"}]]}} LoadIPAMConfig accepts this config. Range... Pull #1293 17 Aug 2026 07:23AM UTC thc1006 github
52.54
31987809796 dependabot/go_modules/golang-8d073ec575 build(deps): bump the golang group across 1 directory with 6 updates Bumps the golang group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/buger/jsonparser](https://github.com/buger/jsonparser) | `1.... Pull #1291 17 Aug 2026 02:32AM UTC web-flow github
52.5
31955427999 bump-insomniacslk-dhcp-583 dhcp: bump insomniacslk/dhcp for nclient4 ReadFrom panic fix The dhcp IPAM plugin uses insomniacslk/dhcp/dhcpv4/nclient4 as its DHCP client. lease.go calls nclient4.New for the acquire and renew paths, which open the default broadcast raw socket.... Pull #1290 16 Aug 2026 03:31PM UTC thc1006 github
52.45
31351429766 feat/host-local-gc host-local: implement CNI v1.1 GC Adds the GC verb to host-local, replacing the FIXME placeholder in main. The runtime hands GC the complete set of attachments it still considers live, and every reservation outside that set is released. That is h... Pull #1289 10 Aug 2026 03:11AM UTC ravi-arnan github
52.93
31350959963 feat/host-local-gc host-local: implement CNI v1.1 GC Adds the GC verb to host-local, replacing the FIXME placeholder in main. The runtime hands GC the complete set of attachments it still considers live, and every reservation outside that set is released. That is h... Pull #1289 10 Aug 2026 03:02AM UTC ravi-arnan github
52.93
31349650068 dependabot/go_modules/golang-2a2975bc13 build(deps): bump the golang group across 1 directory with 5 updates Bumps the golang group with 4 updates in the / directory: [github.com/buger/jsonparser](https://github.com/buger/jsonparser), [github.com/mattn/go-shellwords](https://github.com... Pull #1287 10 Aug 2026 02:33AM UTC web-flow github
52.5
31240136843 fix/nftables-fallback-when-iptables-missing test: drop flaky PATH-based PreferNFTablesDefault case Pull #1288 08 Aug 2026 04:53AM UTC Dean Chen github
52.55
30822465701 host-device-l3-info host-device: copy host interface IP addresses and routes into container Pull #1257 03 Aug 2026 02:33PM UTC Sebastian Scheinkman github
52.87
See All Builds (1536)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc