panic with arithmetic overflow
overflow detection without stack allocation