Skip to content

[v2] fix: networkipavailabilities: handle scientific notation in IP counts#3640

Merged
mandre merged 1 commit intov2from
bp-v2-7f478e1
Mar 4, 2026
Merged

[v2] fix: networkipavailabilities: handle scientific notation in IP counts#3640
mandre merged 1 commit intov2from
bp-v2-7f478e1

Conversation

@gophercloud-backport-bot
Copy link
Copy Markdown

Backport: #3639

Go's JSON decoder converts large integers to float64 when decoding into
interface{}, which causes values ≥ 1e21 to be re-encoded in scientific notation.
big.Int cannot parse that notation, crashing
any List() call that includes a network with a large IPv6 prefix such as /56 or shorter.

Fixes #2233

Go's JSON decoder converts large integers to float64 when decoding into
interface{}, which causes values ≥ 1e21 to be re-encoded in scientific notation.
big.Int cannot parse that notation, crashing
any List() call that includes a network with a large IPv6 prefix such as /56 or shorter.

Signed-off-by: Bertrand Lanson <bertrand.lanson@protonmail.com>
@github-actions github-actions bot added edit:networking This PR updates networking code v2 This PR targets v2 semver:patch No API change labels Mar 4, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 63.658% (+0.004%) from 63.654%
when pulling 69dcfc3 on bp-v2-7f478e1
into 6d9c6d0 on v2.

@mandre mandre merged commit 591c6df into v2 Mar 4, 2026
18 checks passed
@mandre mandre deleted the bp-v2-7f478e1 branch March 4, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:networking This PR updates networking code semver:patch No API change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants