Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integer overflow #9

Open
asquelt opened this issue Dec 31, 2019 · 2 comments
Open

integer overflow #9

asquelt opened this issue Dec 31, 2019 · 2 comments

Comments

@asquelt
Copy link
Contributor

asquelt commented Dec 31, 2019

+ /usr/local/sbin/ovh-cli domain zone newrecord ojap.pl --field TXT --target foobarszcz --sub _acme-challenge --ttl 60 --json
Error: json: cannot unmarshal number 5098376462 into Go struct field ZoneRecord.id of type int

is there an easy fix?

@asquelt
Copy link
Contributor Author

asquelt commented Dec 31, 2019

it appears that your binary on Releases page is 32-bit.
i've recompiled with 64-bit alpine (docker) and now I get:

Error: strconv.ParseInt: parsing "5098367970": value out of range
Error: strconv.ParseInt: parsing "5098379894": value out of range
Error: strconv.ParseInt: parsing "5059102756": value out of range
Error: strconv.ParseInt: parsing "5098368058": value out of range
Error: strconv.ParseInt: parsing "5098376460": value out of range
Error: strconv.ParseInt: parsing "5098366593": value out of range
Error: strconv.ParseInt: parsing "5098366704": value out of range

no good :(

@asquelt
Copy link
Contributor Author

asquelt commented Dec 31, 2019

i've replaced all occurences of: strconv.ParseInt(sth, 10, 32)
to: strconv.ParseInt(sth, 10, 64) (in domain.go)
and it fixed a problem, yay!

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

No branches or pull requests

1 participant