Skip to content

validator/val_sigcrypt.c:1346:10: runtime error: signed integer overflow: -823674496 - 1513296000 cannot be represented in type 'int' #170

Description

@noloader

Hi Everyone,

I'm working from master and using instrumented builds. Building on Ubuntu 18.04 with UBsan. Running make test results in:

test signature verify:./testdata/test_signatures.9
validator/val_sigcrypt.c:1346:10: runtime error: signed integer overflow: -823674496 - 1513296000 cannot be represented in type 'int'
Makefile:316: recipe for target 'test' failed

You can setup the test rig by exporting CFLAGS with UBsan enabled:

$ git clone https://github.com/NLnetLabs/unbound.git
$ cd unbound
$ export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover"
$ ./make-master.sh
...
$ make test
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions