bin: detect overflows in conversion functions
* bin/common_conv.cc (to_int, to_unsigned): Here. * bin/common_range.cc (parse_range): And there. * tests/core/ltlgrind.test, tests/core/genaut.test, tests/core/randaut.test: Add test cases.
This commit is contained in:
parent
05edab3f5a
commit
96c3972c5c
5 changed files with 41 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2014, 2015, 2019 Laboratoire de Recherche et Développement
|
||||
# Copyright (C) 2014, 2015, 2019, 2023 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -198,3 +198,6 @@ checkopt_noparse -F input/2 --format '%<,%f,%>,%F,%L' <<EOF
|
|||
1,0,3,input,1
|
||||
1,1,3,input,1
|
||||
EOF
|
||||
|
||||
ltlgrind -f 'a U b' -m 999999999999999999999999999 2>err && exit 1
|
||||
grep 'too large' err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue