From 9d6448157175d8e03a42d6942d4c058b93daf42b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 21 Nov 2020 13:12:31 -0500 Subject: Handle negative numbers in QIntC::range_check (fuzz issue 26994) --- libtests/qtest/qintc/qintc.out | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libtests/qtest/qintc/qintc.out') diff --git a/libtests/qtest/qintc/qintc.out b/libtests/qtest/qintc/qintc.out index 2a2ff9f5..5520c635 100644 --- a/libtests/qtest/qintc/qintc.out +++ b/libtests/qtest/qintc/qintc.out @@ -13,3 +13,16 @@ QIntC::to_uchar(i2): 81 Q PASSED QIntC::to_uchar(c1): integer out of range converting ÷ from a 1-byte signed type to a 1-byte unsigned type PASSED QIntC::to_uchar(c2): W W PASSED QIntC::to_char(c2): W W PASSED +1 + 2: okay PASSED +-1 + 2: okay PASSED +-100 + -200: okay PASSED +max_ll + 0LL: okay PASSED +max_ll + 1LL: adding 1 to 9223372036854775807 would cause an integer overflow PASSED +max_ll + 0LL: okay PASSED +max_ll + 1LL: adding 1 to 9223372036854775807 would cause an integer overflow PASSED +max_ull + 0ULL: okay PASSED +max_ull + 1ULL: adding 1 to 18446744073709551615 would cause an integer overflow PASSED +min_ll + 0LL: okay PASSED +min_ll + -1LL: adding -1 to -9223372036854775808 would cause an integer underflow PASSED +max_sc + max_sc: adding  to  would cause an integer overflow PASSED +'!' + '#': okay PASSED -- cgit v1.2.3-54-g00ecf