summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_match.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-01-04 06:54:46 -0800
committerAndres Noetzli <andres.noetzli@gmail.com>2019-01-04 06:54:46 -0800
commit72d91341f53c1f2717c37264603aaab42f96c478 (patch)
tree0f9770160fa3d6e062176dd420762f9a94f7adc5 /src/theory/quantifiers/inst_match.cpp
parent491a7c8d1889dfb848de31d5581d0c784167eaec (diff)
C++ API: Fix OOB read in unit testfixNightlyAsan
There were two typos in the unit tests that caused OOB accesses. Instead of doing `d_solver.mkConst(CONST_BITVECTOR, std::string("101"), 6)`, the closing parenthesis was in the wrong place resulting in `std::string("101", 6)`. The second argument to `std::string(const char*, size_t)` says how many characters to copy and results in undefined behavior if the number is greater than the length of the string, thus the OOB access. The commit fixes the typo and removes one of the tests because it should not actually fail (16 is an accepted base).
Diffstat (limited to 'src/theory/quantifiers/inst_match.cpp')
0 files changed, 0 insertions, 0 deletions
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback