You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/include/duckdb/core_functions/aggregate/sum_helpers.hpp:59:15: runtime error: signed integer overflow: 9223372036854775807 + 9223372036854775807 cannot be represented in type 'long int'
#233
Closed
fuzzerofducks opened this issue
Jun 6, 2023
· 1 comment
Issue found by DuckFuzz (Functions) on git commit hash 57912 using seed 759764102.
To Reproduce
createtableall_typesasselect* exclude(small_enum, medium_enum, large_enum) from test_all_types();
SELECT sum_no_overflow(c1) FROM test_vector_types(CAST(NULLASBIGINT)) AS test_vector_types(c1);
Error Message
src/include/duckdb/core_functions/aggregate/sum_helpers.hpp:59:15: runtime error: signed integer overflow: 9223372036854775807 + 9223372036854775807 cannot be represented in type 'long int'
The text was updated successfully, but these errors were encountered:
As indicated by the name sum_no_overflow allows overflows on purpose - perhaps we should disallow either users or the fuzzer from generating this function.
Issue found by DuckFuzz (Functions) on git commit hash 57912 using seed 759764102.
To Reproduce
Error Message
The text was updated successfully, but these errors were encountered: