# US 2008/0307006 A1 · File mutation method and system using file section information and mutation rules

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0307006 A1
- Document ID: US20080307006A1
- Status: Published application
- Kind: A1
- Application number: 12/037,985
- Filed: 2008-02-27
- Published: 2008-12-11
- Earliest claimed: 2007-06-05
- Assignees: Electronics and Telecommunications Research Institute
- Inventors: Dong Hyun LEE; Dae Sik CHOI; Do Hoon LEE
- Web page: https://patentgrep.com/patent/US20080307006A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a file mutation method and a system using file section information and mutation rules. The file mutation system includes: a file section information extraction module obtaining file section information with respect to a sample file of a known file format; a file section information production module producing file section information with respect to a sample file of an unknown format; a mutation rule production module receiving a user input that a mutation rule is applied and producing a mutation rule, the mutation rule defining a mutation function that is to be applied to each data type; and a file mutation module receiving the sample file and producing a plurality of test case files that are created by mutating the sample file through the file section information processed in the file section information extraction module and the file section information production module and the mutation rule from the mutation rule production module.

## Claims

### Claim 1

A file mutation system using file section information and mutation rules, the system comprising:
a file section information extraction module obtaining file section information with respect to a sample file of a known file format;
a file section information production module producing file section information with respect to a sample file of an unknown format;
a mutation rule production module receiving a user input that a mutation rule is applied and producing a mutation rule, the mutation rule defining a mutation function that is to be applied to each data type; and
a file mutation module receiving the sample file and producing a plurality of test case files that are created by mutating the sample file through the file section information processed in the file section information extraction module and the file section information production module and the mutation rule from the mutation rule production module.

### Claim 2 (depends on 1)

The file mutation system of claim 1, wherein the file section information production module produces file section information instead of a portion with respect to the sample file of the known file format, the portion being not realized in the file section information extraction module, or edits the produced file format information.

### Claim 3 (depends on 1)

The file mutation system of claim 1, wherein the mutation rule production module edits the produced mutation rule.

### Claim 4 (depends on 1)

The file mutation system of claim 1, wherein the file section information extraction module comprises:
an input process module receiving the sample file and loading it to an internal memory;
a file type identifier accessing the memory and determining whether a file type of the sample file can be processed or not; and
a plurality of interpreters receiving an identifiable sample file from the file type identifier to interpret a file section of the sample file through file format information of a corresponding file type, the interpreters being provided in a number corresponding to the number of processable file types; and
an output processor recording contents interpreted by the interpreter.

### Claim 5 (depends on 4)

The file mutation system of claim 4, wherein the interpreter and the file type identifier are realized in a plug-in form.

### Claim 6 (depends on 1)

The file mutation system of claim 1, wherein the file section information production module comprises:
an input processor receiving the section information user input and load it to an internal memory;
a converter receiving the section information user input from the input processor and standardize it to be appropriate for a format of the file section information; and
an output processor recording the standardized file section information user input as file section information.

### Claim 7 (depends on 1)

The file mutation system of claim 1, wherein the mutation rule production module comprises:
an input processor receiving mutation information and load it to an internal memory;
a converter standardizing the mutation information to be appropriate for a format of a mutation rule; and
an output processor recording the standardized mutation information to be appropriate for the mutation rule.

### Claim 8 (depends on 1)

The file mutation system of claim 1, wherein the file mutation module comprises:
an input processor receiving the sample file and loading it to an internal memory;
a file section information interpreter receiving the file section information and loading it to an internal memory for interpreting the file section information;
a mutation rule interpreter receiving the mutation rule and loading it to an internal memory for interpreting the mutation rule;
a mutation selector receiving the interpreted file section information and the interpreted mutation rule interpreted by the file section information interpreter and the mutation rule interpreter, respectively, to select which mutation rule among the interpreted mutation rules is applied with respect to the interpreted file section information;
a mutation applier applying a mutation method with respect to the selected file section information to execute mutation, the mutation method being selected by the mutation selector; and
an output processor recording the execution result, mutated in the mutation applier, as the test case file.

### Claim 9 (depends on 8)

The file mutation system of claim 8, wherein the mutation applier executes file mutation on one section or on a plurality of sections simultaneously.

### Claim 10

A file mutation method using file section information and mutation rules, comprising:
obtaining file section information with respect to a sample file of a known file format in a file section information extraction module;
producing file section information with respect to a sample file of an unknown file format in the file section information production module;
producing a mutation rule defining a mutation function that is applied to each data type by receiving mutation information that the mutation rule is applied in the mutation rule production module; and
receiving the sample file as an input to produce a plurality of test case files that are created by mutating the sample files through the file section information and the mutation rule in a file mutation module.

### Claim 11 (depends on 10)

The file mutation method of claim 10, further comprising editing previously-produced file format information after the obtaining of the file section information or the producing of the file section information.

### Claim 12 (depends on 10)

The file mutation method of claim 10, further comprising reproducing a mutation rule for editing a mutation rule or a previously-produced mutation rule after the producing of the mutation rule.

### Claim 13 (depends on 10)

The file mutation method of claim 10, wherein the obtaining of the file section information comprises:
loading the sample file to an internal memory of the file section information extraction module;
accessing the memory and identifying what file type the sample file is;
calling an interpreter corresponding to the sample file;
interpreting a file section of the sample file in the interpreter; and
recording contents interpreted by the interpreter on an output processor as file section information.

### Claim 14 (depends on 10)

The file mutation method of claim 10, wherein the producing of the section information comprises:
loading the section information user input to a memory in the file section information production module;
receiving the section information user input to standardize it to be appropriate for a format of the file section information; and
recording the standardized file section information user input as the file section information.

### Claim 15 (depends on 12)

The file mutation method of claim 12, wherein the reproducing of the mutation rule comprises:
loading the mutation information to a memory in the mutation rule production module;
receiving the mutation information to standardize it to be appropriate for a format of a mutation rule; and
recording the mutation information to be appropriate for the standardized mutation rule.

### Claim 16 (depends on 10)

The file mutation method of claim 10, wherein the producing of the file section information and the mutation rule comprises:
receiving the sample file and loading it to an internal memory;
receiving the file section information and loading it an internal memory to interpret the file section information;
receiving the mutation rule and loading it to an internal memory to interpret the mutation rule;
receiving the interpreted file section information, and the interpreted mutation rule and sample file to select which mutation rule among the interpreted mutation rules is applied to the interpreted file section information;
executing mutation according to the selected mutation rule; and
recording the execution result as the test case file.

### Claim 17 (depends on 10)

The file mutation method of claim 10, wherein the file section information comprises an ADDR field representing a starting address of a section of the sample file, a LENGTH field representing a section size of the sample file, an ID field representing an original number that indicates the section of the sample file, and a TYPE field representing a type of data used in the section of the sample file.

### Claim 18 (depends on 10)

The file mutation method of claim 10, wherein the mutation rule comprises a type filed serving as a foreign key and a mutation data field representing a mutation method that is to be applied to the type field.
