Public bug reported:

This test is failing on armhf:

```
=== RUN   TestGenerateRangeGuard
    TestGenerateRangeGuard: generate_test.go:81: expected

        @ IN SOA ns.test. hostmaster.test. ( 1 8h 2h 7d 1d )
        $GENERATE 0-2 dhcp-${2147483647,4,d} A 10.0.0.$

        to fail, but got no error
--- FAIL: TestGenerateRangeGuard (0.01s)
```
I believe this was introduced in commit 
c0283a2028317d3fb6574f9a06e68443cf6b89cd which added this check:
```golang
                        if r.start+offset < 0 || r.end+offset > 1<<31-1 {
                                return 0, r.parseError("bad offset in 
$GENERATE", si+3+sep)
                        }
```

The test will reach (1<<31-1)+2, meaning `r.end+offset` on 32bits
systems will become negative and thus not trigger the condition above.

Upstream bug report: https://github.com/miekg/dns/issues/1129

** Affects: golang-github-miekg-dns (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1884152

Title:
  Integer overflow on armhf, test error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-github-miekg-dns/+bug/1884152/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to