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
...
Hi Everyone,
I'm working from master and using instrumented builds. Building on Ubuntu 18.04 with UBsan. Running
make testresults in:You can setup the test rig by exporting
CFLAGSwith UBsan enabled: