check_overflow: check for memset() issues