draw: check for an integer overflow when computing stride