JPH11306005A - Analyzing method for patch application state - Google Patents

Analyzing method for patch application state

Info

Publication number
JPH11306005A
JPH11306005A JP12402998A JP12402998A JPH11306005A JP H11306005 A JPH11306005 A JP H11306005A JP 12402998 A JP12402998 A JP 12402998A JP 12402998 A JP12402998 A JP 12402998A JP H11306005 A JPH11306005 A JP H11306005A
Authority
JP
Japan
Prior art keywords
patch
version
buffer
edition
byte
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
JP12402998A
Other languages
Japanese (ja)
Inventor
Kazuo Morofuji
一雄 諸藤
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP12402998A priority Critical patent/JPH11306005A/en
Publication of JPH11306005A publication Critical patent/JPH11306005A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily confirm the application of patch by performing the comparison and totalization of files of different versions. SOLUTION: An execution file 1 is read by a reading part 2, and the version number 3 and the size 5 of program data are measured and stored in a reading buffer 6 separately from each other. Then an execution file of a 2nd version is read, and a comparison/totalization part 10 takes the version number 7, program data 8 and size 9 out of the buffer 6. Then the part 10 performs comparison between the program data of 1st and 2nd versions, checks a specific order of byte counted from the head where the patch is applied and stores the totalization result in a totalization result buffer 12. Meanwhile, the version number 7 of a 1st version, the data 8 and the size 9 are erased from the buffer 6 and an execution file of a 3rd version is read out of the buffer 6. The part 10 takes the number 7, data 8 and size 9 out of the buffer 6, performs comparison between the program data of 2nd and 3rd versions, checks a specific order of byte from the head where the patch is applied and stores the totalization result 11 in the buffer 12.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータプロ
グラムを改訂する場合のパッチ適用状況の解析方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of analyzing a patch application situation when a computer program is revised.

【0002】[0002]

【従来の技術】コンピュータプログラムの改変等には、
パッチ適用状況解析ツールが使用される。ロードモジュ
ールファイルの何版で、何番地から何番地にかけて、パ
ッチが適用されているといった管理が行われていない場
合、各版のロードモジュールファイルを比較して、版毎
に何番地から何番地までにパッチが適用されているかを
示す表を作成するのが、パッチ適用状況解析ツールであ
る。尚、「パッチ」とはプログラムの応急修正である。
2. Description of the Related Art For modification of a computer program, etc.,
A patch application status analysis tool is used. If the patch is not applied to which version of the load module file, from what address to what address, the load module file of each version is compared, and from what address to what address for each version The patch application status analysis tool creates a table that indicates whether patches have been applied to the application. Note that a “patch” is an emergency correction of a program.

【0003】プログラムの実行ファイルにパッチがどの
ように適用されているかを調べる従来方法として、次の
2つの方法が知られている。
[0003] The following two methods are known as conventional methods for examining how a patch is applied to an executable file of a program.

【0004】(1)パッチリストからパッチが適用され
ている箇所を調べ、紙に打ち出したソースリスト上に、
そのパッチを書き込む。
(1) A patch list is used to check the location where a patch has been applied.
Write that patch.

【0005】(2)ファイルを比較するユーティリティ
ソフトを使い、元の実行ファイルと、パッチが適用され
ている実行ファイルを比較し、差分を比較することで、
パッチの適用状況を知る。
(2) By using utility software for comparing files, the original executable file is compared with the executable file to which the patch is applied, and the difference is compared.
Know the patch application status.

【0006】[0006]

【発明が解決しようとする課題】しかし、ソースリスト
上にパッチを書き込む方法は、全ての作業が手作業であ
る為に手間がかかるという欠点があった。また、ファイ
ルを比較するユーティリティソフトを使用する場合は、
第1版と第2版の実行ファイルの違い、第2版と第3版
の実行ファイルの違い、・・・・といったように対でしか違
いがわからない。つまり、第1版から第3版にかけてど
のようにパッチが適用されたかの履歴が分からない。更
に、一般に、ソースソフトは数10ページから数100
ページに及ぶので、ソースリスト上にパッチを書き込む
方法では一目でパッチの適用状況を把握するのが難しい
という欠点がある。
However, the method of writing a patch on the source list has a drawback that it takes much time and labor because all operations are manual. When using utility software to compare files,
Differences between the first and second versions of the executable file, the differences between the second and third version of the executable file,... That is, the history of how the patch was applied from the first edition to the third edition is not known. Furthermore, in general, source software requires several tens of pages to several hundreds of pages.
The method has a drawback in that it is difficult to grasp the patch application status at a glance by the method of writing the patch on the source list because it covers pages.

【0007】そこで、本発明の目的は、第1版、第2
版、第3版、・・・・とパッチが適用されているロードモジ
ュールファイルを比較して、どの版の何番地にパッチが
適用されたかが容易に分かるパッチ適用状況の解析方法
を提供することにある。
Therefore, an object of the present invention is to provide a first edition, a second edition,
To provide a method of analyzing the patch application status in which it is possible to easily compare the edition, the third edition,... And the load module file to which the patch is applied, and to which address of which edition the patch was applied. is there.

【0008】[0008]

【課題を解決するための手段】前述の課題を解決するた
めに、本発明によるパッチ適用状況の解析方法は、次の
ような特徴的な構成を備えている。
Means for Solving the Problems To solve the above-mentioned problems, a patch application status analyzing method according to the present invention has the following characteristic configuration.

【0009】(1)第1版、第2版、第3版、・・・・と複
数世代のロードモジュールファイルのパッチ適用状況を
解析する方法において、前記ファイルをファイルの読み
込み部に前記第1版、第2版、第3版、・・・・と世代を追
って読み込むことと、前記異なる版のファイルを比較集
計部で比較集計することを有し、前記ファイルのどこに
パッチが適用されたか世代を追って把握するパッチ適用
状況の解析方法。
(1) In a method for analyzing a patch application status of a load module file of a plurality of generations, such as a first edition, a second edition, a third edition,... .., And sequentially counting the generations, and comparing and counting the files of the different versions by a comparison and counting unit. A method of analyzing patch application status that is tracked in the future.

【0010】(2)前記ファイルの読み込み部は版数、
プログラムデータ及びサイズを測定する(1)のパッチ
適用状況の解析方法。
(2) The reading section of the file is a version number,
The patch application status analysis method of (1) for measuring program data and size.

【0011】(3)前記ファイルの読み込み部の出力を
前記版数、プログラムデータ及びサイズに分離して格納
する読み込みバッファを有する(2)のパッチ適用状況
の解析方法。
(3) The patch application status analysis method according to (2), further comprising a reading buffer for separating and outputting the output of the file reading section into the version number, program data and size.

【0012】[0012]

【発明の実施の形態】以下、添付図を参照して、本発明
のパッチ適用状況の解析方法の好適実施形態例を詳細に
説明する。先ず、実行ファイルの概念図を示す図1を参
照して説明する。実行ファイルは、所定位置、例えば先
頭位置である図の左端に版数(リビジョン)が記録され
ているものとする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of a patch application status analysis method according to the present invention will be described below in detail with reference to the accompanying drawings. First, a description will be given with reference to FIG. 1 showing a conceptual diagram of an execution file. It is assumed that the execution file has a version number (revision) recorded at a predetermined position, for example, at the left end of the figure, which is the top position.

【0013】次に、図2はコンピュータ上でのデータフ
ローダイヤグラムの例を示す。実行ファイルは第1版、
第2版、第3版及び第4版の4版があるものと仮定す
る。
Next, FIG. 2 shows an example of a data flow diagram on a computer. The executable file is the first version,
It is assumed that there are four editions, a second edition, a third edition, and a fourth edition.

【0014】実行ファイル1を、ファイルの読み込み部
2で読み込み、版数3とプログラムデータのサイズ5を
測定する。この測定された版数3とプログラムデータの
サイズ5とに分離して読み込みバッファ(メモリ)6に
格納する。最初に、第1版の実行ファイルを読み込んだ
時の、読み込みバッファ6の様子は図3に示すとおりで
ある。
The execution file 1 is read by the file reading unit 2, and the version number 3 and the program data size 5 are measured. The measured version number 3 and the program data size 5 are separated and stored in the read buffer (memory) 6. First, the state of the reading buffer 6 when the first version of the execution file is read is as shown in FIG.

【0015】次に、ファイルの読み込み部2は、第2版
の実行ファイルを読み込む。その際の読み込みバッファ
6の内容は図4のとおりである。
Next, the file reading section 2 reads the second version of the execution file. The contents of the read buffer 6 at that time are as shown in FIG.

【0016】第1版と第2版の2つの実行ファイルが読
み込まれた後に、比較と集計部10は、読み込みバッフ
ァ6から、版数7とプログラムデータ8、サイズ9を取
り出す。そして、第1版のプログラムデータと第2版の
プログラムデータとを比較し、先頭から何バイト目にパ
ッチが適用されているかを調べ、集計結果を集計結果バ
ッファ12に格納する。
After reading the two executable files of the first and second versions, the comparing and counting unit 10 extracts the version number 7, program data 8 and size 9 from the reading buffer 6. Then, the program data of the first version is compared with the program data of the second version, it is checked in which byte from the beginning the patch is applied, and the counting result is stored in the counting result buffer 12.

【0017】次に、第1版と第2版の実行ファイルを比
較集計した結果を図5に示す。図5の例では、第1版の
実行ファイルに対して第2版は、00060Hバイト目
から00066Hバイト目まで、00082Hバイト目
から00088Hバイト目まで、00102Hバイト目
から00104Hバイト目まで、00223Hバイト目
から0022FHバイト目まで、及び07D00Hバイ
ト目から07D30Hバイト目までの5つのパッチが適
用されていることを示す。
Next, FIG. 5 shows the result of comparing and compiling the first and second edition executable files. In the example of FIG. 5, the second version of the first version of the executable file is from the byte 00060H to the byte 00006H, from the byte 00008H to the byte 00008H, from the byte 0102H to the byte 000010H, and to the byte 20023H. To the 0022FH byte and the five patches from the 07D00H byte to the 07D30H byte.

【0018】更に、ファイルの読み込み部2は、読み込
みバッファ6から、第1版の版数7とプログラムデータ
8、サイズ9を消去してから、第3版の実行ファイルを
読み込む。この際の、読み込みバッファ6の内容は、図
6に示すとおりである。
Further, the file reading section 2 deletes the first edition 7 and the program data 8 and the size 9 from the reading buffer 6, and then reads the third edition execution file. At this time, the contents of the read buffer 6 are as shown in FIG.

【0019】第3版の実行ファイルが読み込まれた後、
比較と集計部10は、読み込みバッファ6から、版数
7、プログラムデータ8及びサイズ9を取り出す。そし
て、第2版のプログラムデータと第3版のプログラムデ
ータとを比較し、先頭から何バイト目にパッチが適用さ
れているかを調べ、集計結果11を集計結果バッファ1
2に格納する。
After the third version of the executable file is read,
The comparing and counting unit 10 extracts the version number 7, the program data 8, and the size 9 from the read buffer 6. Then, the program data of the second edition is compared with the program data of the third edition, and it is checked at which byte from the beginning the patch is applied.
2 is stored.

【0020】次に、第2版と第3版の実行ファイルを比
較集計した結果を図7に示す。図7に示す例では、第2
版の実行ファイルに対して、第3版は、00073Hバ
イト目から00074Hバイト目まで、00155Hバ
イト目から00157Hバイト目まで、07D20Hバ
イト目から07D28Hバイト目まで、及び07D31
Hバイト目から07D3FHバイト目までの4つのパッ
チが適用されていることを示している。
Next, FIG. 7 shows the result of comparing and compiling the executable files of the second and third editions. In the example shown in FIG.
With respect to the version of the executable file, the third version is from the 0773H byte to the 0774H byte, from the 0155H byte to the 00157H byte, from the 07D20H byte to the 07D28H byte, and to the 07D31 byte.
This indicates that four patches from the H-th byte to the 07D3FH-th byte have been applied.

【0021】次に、ファイルの読み込み部2は、読み込
みバッファ6から第2版の版数、プログラムデータ及び
サイズを消去してから、第4版の実行ファイルを読み込
む。このときの読み込みバッファ6の内容は図8のよう
になる。
Next, the file reading section 2 deletes the version number, program data and size of the second edition from the reading buffer 6 and then reads the fourth edition execution file. The contents of the read buffer 6 at this time are as shown in FIG.

【0022】第4版の実行ファイルが読み込まれた後、
比較と集計部10は、読み込みバッファ6から版数7、
プログラムデータ8及びサイズ9を取り出す。そして、
第3版のプログラムデータと第4版のプログラムデータ
を比較し、先頭から何バイト目にパッチが適用されてい
るかを調べ、集計結果11を集計結果バッファ12に格
納する。
After the fourth version of the executable file is read,
The comparing and counting unit 10 reads the version number 7 from the read buffer 6,
The program data 8 and the size 9 are taken out. And
The third-version program data and the fourth-version program data are compared to determine the number of the byte from the beginning where the patch is applied, and the tally result 11 is stored in the tally result buffer 12.

【0023】次に、図9に第3版と第4版の実行ファイ
ルを比較集計した結果を示す。図9では、第3版の実行
ファイルに対して、第4版は、00226Hバイト目か
ら00228Hバイト目まで、及び07D40Hバイト
目から07D4AHバイト目までの2つのパッチが適用
されていることを示している。
Next, FIG. 9 shows the result of comparing and compiling the third and fourth edition executable files. In FIG. 9, the fourth edition shows that two patches from the 226th byte to the 22828th byte and the 07D40Hth byte to the 07D4AH byte are applied to the third edition of the executable file. I have.

【0024】最後に、集計結果の出力部14が、集計結
果バッファ12から集計結果13を得て、ハードディス
ク装置18、表示装置19又はプリンタ20に出力す
る。
Finally, the tallying result output unit 14 obtains the tallying result 13 from the tallying result buffer 12 and outputs it to the hard disk device 18, the display device 19 or the printer 20.

【0025】以上、本発明のパッチ適用状況の解析方法
の好適実施例を詳述したが、本発明の要旨を逸脱するこ
となく種々の変形変更が可能であること当業者には容易
に理解できよう。
The preferred embodiment of the patch application status analysis method of the present invention has been described in detail above. However, those skilled in the art can easily understand that various modifications can be made without departing from the gist of the present invention. Like.

【0026】[0026]

【発明の効果】上述の説明から理解される如く、本発明
のパッチ適用状況の解析方法によると、実行ファイルの
どの箇所にパッチが適用されているのかが容易に把握で
きる。版数が増えるに従って、どこにパッチが適用され
ていったのかという履歴が一目瞭然で判明する。また、
所謂「パッチのパッチ」、即ちある障害をパッチで修正
したものの、障害を完全に解決できず、そのパッチ自体
をパッチで修正するパッチの階層が把握できる。更に、
仕様書(マニュアル)等の文書が整備されていないプロ
グラムを他の担当者から引き継ぐ際に役立つという副次
的効果もある。
As can be understood from the above description, according to the patch application status analysis method of the present invention, it is possible to easily grasp where in the executable file the patch is applied. As the number of versions increases, the history of where the patch was applied can be seen at a glance. Also,
A so-called "patch patch", that is, although a certain failure is corrected by a patch, the failure cannot be completely solved, and the hierarchy of patches that correct the patch itself with a patch can be grasped. Furthermore,
There is also a secondary effect that it is useful when taking over programs for which documents such as specifications (manuals) are not prepared from other persons in charge.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態における実行ファイルの構成
を示す図である。
FIG. 1 is a diagram showing a configuration of an execution file according to an embodiment of the present invention.

【図2】本発明の一実施形態におけるパッチ適用状況の
解析方法のデータフローダイヤグラムを示す図である。
FIG. 2 is a diagram illustrating a data flow diagram of a method for analyzing a patch application status according to an embodiment of the present invention.

【図3】本発明の実施形態における第1版の実行ファイ
ルを読み込んだ時の、読み込みバッファ6の様子を示す
図である。
FIG. 3 is a diagram showing a state of a read buffer 6 when a first version of the executable file is read in the embodiment of the present invention.

【図4】本発明の実施形態における第2版の実行ファイ
ルを読み込む際の読み込みバッファ6の内容を示す図で
ある。
FIG. 4 is a diagram showing the contents of a read buffer 6 when a second version of the executable file is read in the embodiment of the present invention.

【図5】第1版と第2版の実行ファイルを比較し集計し
た結果を示す図である。
FIG. 5 is a diagram illustrating a result of comparing and totaling the executable files of the first and second versions.

【図6】本発明の実施形態における第3版の実行ファイ
ルを読み込む際の読み込みバッファ6の内容を示す図で
ある。
FIG. 6 is a diagram showing the contents of a read buffer 6 when a third version of the executable file is read in the embodiment of the present invention.

【図7】本発明の実施形態における第2版と第3版の実
行ファイルを比較し集計した結果を示す図である。
FIG. 7 is a diagram showing a result obtained by comparing and totaling the executable files of the second version and the third version in the embodiment of the present invention.

【図8】本発明の実施形態における第4版の実行ファイ
ルを読み込む際の読み込みバッファ6の内容を示す図で
ある。
FIG. 8 is a diagram showing the contents of a read buffer 6 when a fourth version of the executable file is read in the embodiment of the present invention.

【図9】本発明の実施形態における第3版と第4版の実
行ファイルを比較し集計した結果を示す図である。
FIG. 9 is a diagram illustrating a result obtained by comparing and compiling the third and fourth edition executable files in the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 実行ファイル 2 ファイルの読み込み部 6 読み込みバッファ 10 比較と集計部 12 集計結果バッファ DESCRIPTION OF SYMBOLS 1 Execution file 2 File reading part 6 Reading buffer 10 Comparison and totaling part 12 Totaling result buffer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】第1版、第2版、第3版、・・・・と複数世代
のロードモジュールファイルのパッチ適用状況を解析す
る方法において、 前記ファイルをファイルの読み込み部に前記第1版、第
2版、第3版、・・・・と世代を追って読み込むことと、 前記異なる版のファイルを比較集計部で比較集計するこ
とを有し、 前記ファイルのどこにパッチが適用されたか世代を追っ
て把握することを特徴とするパッチ適用状況の解析方
法。
1. A method for analyzing a patch application status of a load module file of a plurality of generations, such as a first edition, a second edition, a third edition,... , The second edition, the third edition,..., And the generations, and comparing and counting the files of the different versions by a comparison and counting unit. A patch application status analysis method characterized by grasping later.
【請求項2】前記ファイルの読み込み部は版数、プログ
ラムデータ及びサイズを測定することを特徴とする請求
項1のパッチ適用状況の解析方法。
2. The patch application status analysis method according to claim 1, wherein said file reading unit measures a version number, program data and size.
【請求項3】前記ファイルの読み込み部の出力を前記版
数、プログラムデータ及びサイズに分離して格納する読
み込みバッファを有することを特徴とする請求項2のパ
ッチ適用状況の解析方法。
3. The patch application status analysis method according to claim 2, further comprising a reading buffer for separating and outputting the output of the file reading section into the version number, program data and size.
JP12402998A 1998-04-17 1998-04-17 Analyzing method for patch application state Pending JPH11306005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12402998A JPH11306005A (en) 1998-04-17 1998-04-17 Analyzing method for patch application state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12402998A JPH11306005A (en) 1998-04-17 1998-04-17 Analyzing method for patch application state

Publications (1)

Publication Number Publication Date
JPH11306005A true JPH11306005A (en) 1999-11-05

Family

ID=14875277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12402998A Pending JPH11306005A (en) 1998-04-17 1998-04-17 Analyzing method for patch application state

Country Status (1)

Country Link
JP (1) JPH11306005A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100710845B1 (en) * 2006-01-23 2007-04-23 염찬섭 Method for preventing repetition patch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100710845B1 (en) * 2006-01-23 2007-04-23 염찬섭 Method for preventing repetition patch

Similar Documents

Publication Publication Date Title
US8418053B2 (en) Division program, combination program and information processing method
US7581209B2 (en) Method for determining code coverage
JPWO2006033159A1 (en) Business model diagram creation support program, business model diagram creation support method, and business model diagram creation support device
JP2006031687A (en) External metadata processing
JP3699154B2 (en) Method and apparatus for self-describing encoding of data
TW434478B (en) Method for testing the integrity of software pre-installed in a computer hard disk
JP2012150535A (en) Program verification method and program verification program
US20040003326A1 (en) Method, program, and storage medium for acquiring logs
Minnaard et al. Timestomping ntfs
US20070226172A1 (en) File-management apparatus, file-management method, and computer product
JPH11306005A (en) Analyzing method for patch application state
US7533314B2 (en) Unit test extender
US9645869B2 (en) Using exception information
US9285956B2 (en) Information processing device, information processing method and information processing program
Nelson XML conversion of the windows registry for forensic processing and distribution
JP5343644B2 (en) Test item table generation program and test item table generation method
JP2731047B2 (en) Program operand check method
JP5821528B2 (en) Data check program, data check method, and data check device
JP4483163B2 (en) Program test debugging device
JP5061086B2 (en) Job management method, execution apparatus and program thereof
JP5494133B2 (en) Database management device, export method and program, import method and program
JP2001084163A (en) Device and method for preliminarily examining influence of update processing and device and method for testing operation of update processing program
WO2012066635A1 (en) Test method, test device, and test execution program
JPH1165837A (en) Data exception detecting method for external file data and storage medium where data exception detection program for external file data is recorded
JP2005078466A (en) Installation method of more than one computer