JPS63132334A - Parameter delivery system - Google Patents

Parameter delivery system

Info

Publication number
JPS63132334A
JPS63132334A JP27843586A JP27843586A JPS63132334A JP S63132334 A JPS63132334 A JP S63132334A JP 27843586 A JP27843586 A JP 27843586A JP 27843586 A JP27843586 A JP 27843586A JP S63132334 A JPS63132334 A JP S63132334A
Authority
JP
Japan
Prior art keywords
program
parameter
call
recognition data
called
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27843586A
Other languages
Japanese (ja)
Inventor
Hisanori Takahashi
高橋 久則
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP27843586A priority Critical patent/JPS63132334A/en
Publication of JPS63132334A publication Critical patent/JPS63132334A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a abnormal termination due to an unjust parameter under a parameter processing by adding call recognition data, capable of deciding exactly that a program is called, to the delivery parameter of the called program. CONSTITUTION:The parameters AP-1-AP-n 102 to be processed by the program B2, and further, the call recognition data 101 are defined in the parameter AP 100. The program A1 is used for calling the program B2, and the data of 'Program B' is stored in the call recognition data 101 of it. When a CALL statement 200 to call the program B2 is executed in the proceeding part AP 20 of the program A1, a control is delivered to the program B2. At that time, the parameter AP 100 is delivered to the program B2. The program B2 checks the call recognition data 101, which is placed in the parameter AP 100 at first. Because the called program can check the call recognition data before the processing of the parameter in such a way, the abnormal termination due to the unjust parameter under the parameter processing can be prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はプログラム呼出し方式に関し、特にそのパラメ
ータ受渡し方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a program calling method, and particularly to its parameter passing method.

(従来の技術) 従来、この種のパラメータ構造し方式は、呼出される側
で受取られたパラメータ構造に従つ。
BACKGROUND OF THE INVENTION Conventionally, this type of parameter structuring scheme follows the parameter structure received by the callee.

て、f!−出し側でパラメータ金作成してい友。T-f! - A friend who creates parameter money on the issuing side.

(発明が解決しようとする問題点) 上述した従来のパラメータ受渡し方式は、呼出される側
で受取られたパラメータ構造に従って呼出し側でパラメ
ータを作成しているため、受渡しパラメータのなかに呼
出されたプログラム自身が呼出されたことを明確に判断
できるデータを保持していないと云う欠点がある。
(Problems to be Solved by the Invention) In the conventional parameter passing method described above, parameters are created on the calling side according to the parameter structure received on the called side, so the called program is included in the passing parameters. The drawback is that it does not hold data that can clearly determine that it has been called.

このため、不正な呼出し、および不正なパラメータ構造
での呼出しに対して、呼出されたプログラムがチェック
できずに、PF出されたプログラムの動作中に異常終了
すると云う欠点がある。
For this reason, the called program cannot be checked against illegal calls and calls with incorrect parameter structures, resulting in abnormal termination during the operation of the program issued by the PF.

本発明の目的は、プログラムが呼出されたことt明確に
判断できる吐出し認識データを、呼出されたプログラム
の受渡しパラメータに付加して呼出しを実行することに
より上記欠点を除去し、呼出されたプログラムの動作中
に異常終了することがないように構成し几パラメータ受
渡し方式を提供することにある。
An object of the present invention is to eliminate the above-mentioned drawbacks by adding discharge recognition data that can clearly determine that a program has been called to the passing parameters of the called program, and to execute the call. The object of the present invention is to provide a method for passing parameters in a manner that prevents abnormal termination during operation.

(問題点を解決するための手段) 本発明によるパラメータ受渡し方式は、パラメータ受渡
しを伴うプログラム呼出し文により他のプログラムを呼
出す方式t−育するコンピュータシステムのパラメータ
受渡し方式であって。
(Means for Solving the Problems) The parameter passing method according to the present invention is a parameter passing method for a computer system that uses a method for calling another program using a program call statement that involves passing parameters.

付加手段と認識手段とを具備して構成し次ものである。It is constructed by comprising an adding means and a recognition means as follows.

付加手段は、呼出されたことを明確に判断できる呼出し
認識データケ、呼出されたプログラムの受渡しパラメー
タに付加するためのものである。
The addition means is for adding call recognition data that can clearly determine that the program has been called, and to the transfer parameters of the called program.

認識手段は、呼出し認識データの付加されたプログラム
ラ呼出すためのものである。
The recognition means is for calling a program to which call recognition data has been added.

(実施例) 次に1本発明について図面を参照して説明する。(Example) Next, one embodiment of the present invention will be explained with reference to the drawings.

第1図は、本発明によるパラメータ受渡し方式の一実施
例の動作を示す流れ図である。
FIG. 1 is a flowchart showing the operation of one embodiment of the parameter passing method according to the present invention.

第1図において、10は判定ステップ、2υ。In FIG. 1, 10 is a determination step and 2υ.

30はそれぞれ処理ステップである。第1図は、呼出さ
れるプログラムBの入口の直後に本発明に関する処理を
追加した実例である。プログラムBの入口の直後では、
本プログラムを呼出すためのデータと呼出し認識データ
とが一致しているかをチェックする処理ステップ10が
追加して置かれている。正常な叶出しの場合には、処理
ステップ20にニクプログラムBの処理が継続して実行
される。
30 are processing steps. FIG. 1 is an example in which processing related to the present invention is added immediately after the entrance of program B to be called. Immediately after the entrance to program B,
A processing step 10 is additionally provided to check whether the data for calling this program and the call recognition data match. In the case of normal leaf development, the process of Niku program B continues to be executed in process step 20.

不正な呼出しの場合には、処理ステップ30にエフ不正
呼出しとして異常終了させる。
In the case of an illegal call, processing step 30 causes the process to terminate abnormally as an illegal call.

第2図は、本発明によるパラメータ受渡し方式による一
実施例を示すため、吐出すプログラムと呼出されるプロ
グラムとの関連図を示す説明図である。第2図において
、プログラムはプログラムA1とプログラムB2とから
成立つ。
FIG. 2 is an explanatory diagram showing a relation between a discharge program and a called program in order to show an embodiment of the parameter passing method according to the present invention. In FIG. 2, the program consists of program A1 and program B2.

プログラムAIはデータ記述部ADIOと手続き部AP
20とから取立ち、プログラムB2を呼出す。データ記
述部ADIOはプログラムB2を呼出すときの受渡しパ
ラメータとなる呼出uR’f’−夕101 ト、/< 
−5メ−p A P −1−−−−−−AP−n102
とから構成されているパラメータAPI00t−もって
いる。手続き部AP20はプログラム82t−呼出すた
めのCALL命令200をもっている。
Program AI consists of data description section ADIO and procedure section AP.
20 and call program B2. The data description part ADIO is the call uR'f'-Y101 which is the passing parameter when calling the program B2, /<
-5me-p AP-1-------AP-n102
It has a parameter API00t-, which consists of The procedure section AP20 has a CALL instruction 200 for calling the program 82t.

プログラムB2では処理ステップ300で呼出し認識デ
ータ101の内容をチェックし、その判定が真のときに
は処理ステップ310によりパラメータAP100を処
理するが、偽のときには不正呼出しt−呼出しプログラ
ムに返す九めの処理ステップ320t?実行する。
In program B2, the content of the call recognition data 101 is checked in processing step 300, and if the judgment is true, the parameter AP100 is processed in processing step 310, but if it is false, the illegal call is returned to the calling program. 320t? Execute.

ここで、いずれのプログラムも本実施例に関連する部分
のみ記述してあり、プログラムを構成する他のデータお
よび手続きについては図示していない。
Here, in each program, only the portions related to the present embodiment are described, and other data and procedures constituting the program are not illustrated.

次に、プログラムA1がプログラムB2を呼出す場合に
ついて説明する。プログラムA1は、プログラムB2に
受渡すパラメータAPII)0金デ一タ記述部ADIO
に定義する。パラメータAP 100には、プログラム
B2によって処理すべきパラメータAP−1〜AP−n
102が定義され、さらに呼出し認識データ101が定
義されている。
Next, a case where program A1 calls program B2 will be explained. Program A1 passes parameters to program B2 (APII) 0 gold data description section ADIO
Define. Parameter AP 100 includes parameters AP-1 to AP-n to be processed by program B2.
102 is defined, and call recognition data 101 is further defined.

プログラムAIは、プログラムB2t−呼出すもので、
その呼出し認識データ101には9プログラムB″と云
うデータを格納する。プログラムA10手続き部AP2
0でプログラムB2を呼出すCALL文200が実行さ
れると、プログラムB2に制御が渡る。このとき、パラ
メータAP100がプログラムB2に渡される。
Program AI calls program B2t,
The call recognition data 101 stores data called 9 program B''.Program A10 Procedure section AP2
When the CALL statement 200 that calls program B2 is executed at 0, control is passed to program B2. At this time, parameter AP100 is passed to program B2.

プログラムB2は、最初にパラメータAPI口0のなか
に置かれている呼出し認識データ101をチェックする
処理ステップ300を実行する。
Program B2 first executes a process step 300 that checks the call recognition data 101 placed in parameter API port 0.

本実施例では呼出されるプログラムがプログラムB2で
あるので、呼出し認識データl Olが”プログラムB
′でなければならないとしている。もし、呼出し認識デ
ータ101が1プログラムB”−11−なければ、不正
呼出しをlPF出しプログラムA1に返すための処理ス
テップ320が実行され、プログラムAIK戻る。呼出
し認識データ101が”プログラムB”であるならば、
正しい呼出しであると判断して、バラメーpkP−1〜
AP−nへの処理ステップ310全実行し、プログラム
A1に戻る。
In this embodiment, since the program to be called is program B2, the call recognition data lOl is "Program B2".
'. If the call recognition data 101 is not 1 program B"-11-, processing step 320 for returning the illegal call to the IPF issuing program A1 is executed, and the program AIK returns. The call recognition data 101 is "Program B". If so,
Judging that it is a correct call, the parameter pkP-1~
All processing steps 310 for AP-n are executed, and the process returns to program A1.

(発明の効果) 以上説明したように本発明は、プログラムが呼出された
ことを明確に判断できる呼出し認識データを、呼出され
九プログラムの受渡しパラメータに付加することにより
、不正な呼出し1および不正なパラメータ構造での呼出
しに対して、rJf−出されたプログラムがパラメータ
の処理に先立って呼dし認識データをチェックでき、パ
ラメータ処理中の不正パラメータによる異常終了を防止
できると云う効果がある。
(Effects of the Invention) As explained above, the present invention adds call recognition data that allows it to be clearly determined that a program has been called to the delivery parameters of the called program. When calling with a parameter structure, the program issued by rJf can call and check recognition data before processing parameters, and has the advantage that abnormal termination due to invalid parameters during parameter processing can be prevented.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明によるパラメータ受渡し方式の動作を
示す流れ図である。 第2図は、本発明によるパラメータ受渡し方式の動作を
説明するプログラム関連図である。 1.2.10,20,30・・・プログラム100.1
01,102・・・パラメータ200・・・CALL文
FIG. 1 is a flow diagram illustrating the operation of the parameter passing scheme according to the present invention. FIG. 2 is a program related diagram illustrating the operation of the parameter passing method according to the present invention. 1.2.10, 20, 30...Program 100.1
01,102...Parameter 200...CALL statement

Claims (1)

【特許請求の範囲】[Claims] パラメータ受渡しを伴うプログラム呼出し文により他の
プログラムを呼出す方式を有するコンピユータシステム
のパラメータ受渡し方式であつて、呼出されたことを明
確に判断できる呼出し認識データを呼出されたプログラ
ムの受渡しパラメータに付加するための付加手段と、前
記呼出し認識データの付加された前記プログラムを呼出
すための認識手段とを具備して構成したことを特徴とす
るパラメータ受渡し方式。
A parameter passing method for a computer system that has a method of calling another program using a program call statement that involves passing parameters, in which call recognition data that can clearly determine that the program has been called is added to the passing parameters of the called program. and recognition means for calling the program to which the call recognition data has been added.
JP27843586A 1986-11-21 1986-11-21 Parameter delivery system Pending JPS63132334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27843586A JPS63132334A (en) 1986-11-21 1986-11-21 Parameter delivery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27843586A JPS63132334A (en) 1986-11-21 1986-11-21 Parameter delivery system

Publications (1)

Publication Number Publication Date
JPS63132334A true JPS63132334A (en) 1988-06-04

Family

ID=17597300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27843586A Pending JPS63132334A (en) 1986-11-21 1986-11-21 Parameter delivery system

Country Status (1)

Country Link
JP (1) JPS63132334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011101972A1 (en) * 2010-02-18 2011-08-25 株式会社東芝 Program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011101972A1 (en) * 2010-02-18 2011-08-25 株式会社東芝 Program
US9116741B2 (en) 2010-02-18 2015-08-25 Kabushiki Kaisha Toshiba Computer program product, and information processing apparatus and method

Similar Documents

Publication Publication Date Title
US6606711B2 (en) Object security boundaries
US7055153B2 (en) Inter-object messaging
JP2003535383A (en) Object property metamodel emulator for legacy data structures
CN111835790A (en) Risk identification method, device and system
CN107040497B (en) Network account anti-theft method and device
JPS63132334A (en) Parameter delivery system
CN110597731B (en) Vulnerability detection method and device and electronic equipment
CN112417402B (en) Authority control method, authority control device, authority control equipment and storage medium
JP2004094374A (en) Logging system
CN111126930B (en) Node data processing method, device, computer equipment and storage medium
CN110750269B (en) Software implementation method based on step driving
CN111800496A (en) Interface calling method and device, computer equipment and storage medium
CN110300111A (en) Page display method, device, terminal device and server
EP4040294A1 (en) Process scheduling method and apparatus of vision software
CN108961050B (en) Processing method and device for forward transaction of bank system
JP3018359B2 (en) Online call information trace method
CN114385982A (en) Method and system for anti-debugging android application program, electronic device and storage medium
EP0945789A2 (en) Data processing apparatus, method and computer program product facilitating polymorphic behaviour from static object interfaces
JP2868336B2 (en) Additional service activation condition control method
CN109669731A (en) The service control method and device of substrate manager
JPH02159619A (en) Normal end outlet calling system
CN117591106A (en) Calling method and device of native function component, electronic equipment and storage medium
CN112132592A (en) Complaint processing method, complaint processing device, complaint processing medium and terminal equipment
CN111930537A (en) Method and system for preventing repeated account entry of same account
CN115375435A (en) Block chain-based dynamic account transaction processing method and device