CN113791838A - Program file calling method and device and storage medium - Google Patents
Program file calling method and device and storage medium Download PDFInfo
- Publication number
- CN113791838A CN113791838A CN202110960916.1A CN202110960916A CN113791838A CN 113791838 A CN113791838 A CN 113791838A CN 202110960916 A CN202110960916 A CN 202110960916A CN 113791838 A CN113791838 A CN 113791838A
- Authority
- CN
- China
- Prior art keywords
- file
- sequence number
- program
- calling
- target
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0808—Diagnosing performance data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a program file calling method, a program file calling device and a storage medium, which are used for calling a program file and improving the safety of file processing. The application program file calling method comprises the following steps: acquiring a program file calling instruction; acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character; determining a corresponding code symbol according to the position sequence number; replacing the position sequence number with the encoding character to generate a target calling file; and calling the target calling file to run a program.
Description
Technical Field
The present application relates to the field of automotive technologies, and in particular, to a method and an apparatus for calling a program file, and a storage medium.
Background
The automobile diagnosis equipment is a professional equipment for automobile detection, can detect the performance of a vehicle in real time and can detect vehicle faults. When an application program in the automobile diagnostic equipment runs, a lot of diagnostic data are generated, and the application program converts the acquired diagnostic data into a special file of words or graphics which can be recognized by a user, and the diagnostic data files are usually stored in a local storage space.
The memory that can be used when an application program in an automotive diagnostic device runs is limited, for example, in a standard 32-bit operating system, the maximum memory space theoretically used for supporting the running of the application program is 4G, and the memory space that can be occupied when an actual program runs is far less than 4G. Because a lot of data, such as protocol data and flash data, are generated in the automobile diagnosis process, if the data volume generated in the diagnosis process is large and exceeds the maximum memory space volume which can be used by the program, the application program cannot load the data content in the diagnosis data file into the memory opened by the relevant program at one time, and in addition, if too much memory is occupied due to the loading of the diagnosis data file, the program is likely to fall into a paralyzed state. Therefore, when the generated data volume is relatively large, the data file can be stored in the disk selectively, but the data file is directly stored in the disk without being processed, so that the hidden danger problem of data information leakage is caused, and the safety of the file data is poor.
Disclosure of Invention
The application provides a program file calling method, a program file calling device and a storage medium, which are used for calling a program file and improving the safety of file processing.
In order to achieve the above object, a first aspect of the present application discloses a method for calling a program file, including:
acquiring a program file calling instruction;
acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character;
determining a corresponding code symbol according to the position sequence number;
replacing the position sequence number with the encoding character to generate a target calling file;
and calling the target calling file to run a program.
Optionally, before the acquiring the target program file set according to the call instruction, the method further includes:
acquiring a source file of a program;
extracting a code symbol in a source file;
creating variable fields for the code symbols, wherein each variable field corresponds to a different code symbol;
storing a corresponding encoder using the variable field.
Optionally, before the acquiring the target program file set according to the call instruction, the method includes:
traversing a first code symbol having identical data in the source file;
determining a position sequence number of the first code symbol in the source file;
and generating the sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
Optionally, before the acquiring the target program file set according to the call instruction, the method includes:
traversing all of the coders of the source file;
generating different serial number files according to the coding symbols of different data;
and collecting the different sequence number files to generate a target program file collection.
Optionally, before the acquiring the target program file set according to the call instruction, the method includes:
and establishing a mapping relation between the sequence number file and the variable field according to the file identifier.
Optionally, the determining a corresponding code symbol according to the position sequence number specifically includes:
determining a sequence number file to which the position sequence number belongs;
extracting the file identification of the sequence number file;
determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
extracting a target code symbol stored in the target variable field;
and determining the target code symbol as the code symbol corresponding to the position sequence number.
A second aspect of the present application provides a program file calling apparatus, including:
the first acquisition unit is used for acquiring a program file calling instruction;
the second acquisition unit is used for acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character;
a determining unit, configured to determine a corresponding code symbol according to the position sequence number;
the replacing unit is used for replacing the position serial number with the coding character and generating a target calling file;
and the calling unit is used for calling the target calling file to run a program.
Optionally, the apparatus further comprises: a first processing unit to:
acquiring a source file of a program;
extracting a code symbol in a source file;
creating variable fields for the code symbols, wherein each variable field corresponds to a different code symbol;
storing a corresponding encoder using the variable field.
A third aspect of the present application provides a program file calling apparatus, including:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to perform the method of any of the first aspect and the first aspect.
A fourth aspect of the present application provides a computer readable storage medium having a program stored thereon, which when executed on a computer performs the method of any one of the first aspect and the first aspect.
According to the technical scheme, the method has the following advantages:
in the program file calling method provided by the application, when a terminal calls a file, an acquired program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character; the terminal determines a corresponding code symbol according to the position serial number; replacing the position sequence number with the encoding character to generate a target calling file; and calling the target calling file to run a program. By the method, the sequence number file can be converted into the target calling file, and the safety of the calling file is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart illustrating an embodiment of a method for calling a program file provided in the present application;
FIG. 2 is a flowchart illustrating another embodiment of a method for calling a program file provided in the present application;
FIG. 3 is a block diagram illustrating an exemplary program file calling apparatus provided in the present application;
fig. 4 is a schematic structural diagram of another embodiment of a program file calling device provided in the present application.
Detailed Description
The memory that can be used when an application program in an automotive diagnostic device runs is limited, for example, in a standard 32-bit operating system, the maximum memory space theoretically used for supporting the running of the application program is 4G, and the memory space that can be occupied when an actual program runs is far less than 4G. Because a lot of data, such as protocol data and flash data, are generated in the automobile diagnosis process, if the data volume generated in the diagnosis process is large and exceeds the maximum memory space volume which can be used by the program, the application program cannot load the data content in the diagnosis data file into the memory opened by the relevant program at one time, and in addition, if too much memory is occupied due to the loading of the diagnosis data file, the program is likely to fall into a paralyzed state. Therefore, when the generated data volume is relatively large, the data file can be stored in the disk selectively, but the data file is directly stored in the disk without being processed, so that the hidden danger problem of data information leakage is caused, and the safety of the file data is poor.
Based on this, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application.
It should be noted that the program file calling method provided by the present application may be applied to a terminal, a system, or a server, for example, the terminal may be a fixed terminal such as a smart phone or a computer, a tablet computer, a smart television, a smart watch, a portable computer terminal, or a desktop computer. For convenience of explanation, the terminal is taken as an execution subject for illustration in the present application.
In the automobile diagnosis process, many data files are generated, and the data content in these files is usually data in a designated numerical form, such as binary, octal, decimal, hexadecimal, etc., and the data with the diagnosis data being hexadecimal is exemplified in this application.
A first aspect of the present application discloses a method for calling a program file, please refer to fig. 1, where fig. 1 is a schematic flow diagram of an embodiment of the method for calling a program file provided by the present application, and the method includes the following steps:
101. and acquiring a program file calling instruction.
102. Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character.
After a terminal acquires a program file calling instruction, a target program file set is acquired according to the calling instruction, the target program file set in the application comprises at least one sequence number file, the target program file set records the position sequence number of a source file code, in practice, one source file comprises a plurality of source file codes, each code has a unique corresponding position sequence number, for example, in automobile diagnosis, when an ECU writes by flashing, 4095 bytes of data are generally required to be sent at a time in sequence, wherein 4095 code symbols are included, and correspondingly, the position sequence number of the code symbol can be 0-4094.
103. And determining a corresponding code symbol according to the position sequence number.
The terminal determines a corresponding code symbol according to the position sequence number, for example: and if the position sequence number is determined to be 0-4094, determining all the coding symbols corresponding to 0-4094.
In a possible implementation manner, determining a corresponding code symbol according to the position sequence number may specifically be: determining a sequence number file to which the position sequence number belongs; extracting a file identifier of the sequence number file; determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field; extracting a target code symbol stored in a target variable field; and determining that the target code symbol is the code symbol corresponding to the position sequence number.
104. And replacing the position sequence number with the encoding character to generate a target calling file.
And the terminal uses the code symbols to replace the position serial numbers to generate a target calling file, and in the obtained target calling file, the code symbols are sequenced according to the corresponding position serial numbers to obtain the target calling file which can be called.
105. And calling the target calling file to run the program.
And the terminal calls the target calling file to run a corresponding program.
In the program file calling method provided by the application, when a terminal calls a file, an acquired program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character; the terminal determines a corresponding code symbol according to the position serial number; replacing the position sequence number with the encoding character to generate a target calling file; and calling the target calling file to run a program. By the method, the sequence number file can be converted into the target calling file, and the safety of the calling file is improved.
In this application, the target program file set includes at least one sequence number file, the target program file set records the position sequence number of the source file code character, and the target program file set may be pre-constructed by the terminal.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another embodiment of a method for calling a program file provided in the present application, where the embodiment includes:
201. a source file of a program is obtained.
Assume that the source data file generated in the automobile diagnosis process is instruction data generated in hexadecimal numerical form, such as 0x00, 0x05, 0x3D, 0x7F, 0xFF, and the like. Then the code symbol contained in the source file is hexadecimal number from 0 to F, the ECU flash file is composed of characters from 0 to F, and in the automobile diagnosis process, the application program can combine the characters in the file and convert the combined characters into 16-system number, such as: a4 two characters correspond to 0xA 4; f5 corresponds to 0xF5, so that both the diagnostic command and the flash command are based on 16-ary numbers of 0x 00-0 xFF, the content of the code symbols in the file is 16-ary numbers in the range of 00-FF, and the code symbols in the source file are 16-ary numbers in the range of 00-FF.
202. Extracting the code symbol in the source file, and creating variable fields for the code symbol, wherein each variable field corresponds to a different code symbol.
203. The corresponding encodings are stored using the variable fields.
After the terminal acquires the source file, extracting the code symbol in the source file, and creating a variable field for storing the code symbol, for example: a variable [ Var _00 ] is created in the program that stores a code symbol of 0x 00. Where one variable field corresponds to a different code.
204. And traversing a first code symbol with the same data in the source file, and determining the position sequence number of the first code symbol in the source file.
205. And generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
And traversing a first code symbol with the same data in the source file, and determining the position sequence number of the first code symbol in the source file. Each source file has various different coding symbols, and in order to realize the purpose of safe data transmission, the source files can be converted into a sequence number file set. Specifically, the same code symbol in the source file may be found first, and then the corresponding sequence number file may be generated according to the position sequence number of the code symbol.
For example: and traversing all the code symbols with the value of 0x00, and simultaneously creating a File (File _ A) for recording the position sequence number of the 00 appearing in the File, wherein the File (File _ A) is a sequence number File.
206. And traversing all the encoding symbols of the source file, and generating different sequence number files according to the encoding symbols of different data.
For example: in traversing a code symbol having a value of "0 x 00", a variable field "Var _ 00" may be newly established in a program to store a code symbol having a value of 0x00, by newly creating a File [ File _00 ] for recording the position number of the occurrence of the encoder having a value of 0x00 in the File, when traversing the encoder having a value of "0 x 01", a variable "Var _ 01" may be newly created in the program to store the code symbol of 0x01, and then a File [ File _01 ] is created to record the position number of the code symbol of 0x01 appearing in the File, and so on, after the data objects of the source data File are completely traversed, sequence number files such as files [ File _00 ] and [ File _01 ] are established, and the position sequence number of each code symbol in the source file is recorded in each sequence number file, and the sequence number files and the code symbols establish a one-to-one mapping relation. All of the coders of the source files are reorganized in a sequence number file.
The method comprises the steps of writing a position sequence number of a code character with a value of 0x00 in a sequence number File [ File _00 ], writing a position sequence number of a code character with a value of 0x01 in a sequence number File [ File _01 ] when the code character with a value of 0x01 is found, and recording the position sequence number of the code character in the source data File in sequence number files [ File _00 ], File _01 ], File _ FF and the like.
207. And establishing a mapping relation between the sequence number file and the variable field according to the file identifier.
And establishing a mapping relation between the sequence number file and the variable field according to the file identifier, wherein the mapping relation records the variable field where the code symbol corresponding to the position sequence number in the sequence number file is located.
For example: in the program, a code character with a value of 0x00 is newly created for a variable [ Var _00 ], and a mapping relation between a variable field [ Var _00 ] and a sequence number File [ File _ A ] is created.
208. And collecting different sequence number files to generate a target program file collection.
And collecting all the different sequence number files to generate a target program file collection.
After the target program file set is generated, the source file can be deleted, the source data file can be deleted, only the target program file set is reserved, and even if an illegal user obtains the target program file, the illegal user is difficult to crack to obtain effective data.
209. And acquiring a program file calling instruction.
210. Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character.
For example: in step 205, the sequence number File [ File _00 ] sequentially records the position sequence numbers of the identifiers with the value of 00 appearing in the File, and the sequence number File [ File _01 ] sequentially records the position sequence numbers of the source File identifiers appearing in the source data File.
211. And determining a corresponding code symbol according to the position sequence number.
Because the one-to-one mapping relation is established between the code symbols and the sequence number file, and the position sequence number of the code symbols is recorded in the sequence number file, the corresponding code symbols can be determined according to the position sequence number.
212. And replacing the position sequence number with the encoding character to generate a target calling file.
213. And calling the target calling file to run the program.
In this embodiment, steps 212 to 213 are similar to steps 104 to 105 in the previous embodiment, and are not repeated herein.
In this embodiment, the variable field is used to store the code symbols in the source file, and the position numbers of the code symbols in the source file are recorded by the sequence number file, so as to establish a mapping relationship between the sequence number file and the variable field, and in the process of restoring the file, the position numbers of each code symbol in the source file can be restored by the mapping relationship, so that the target program file can be restored to the position numbers. Through the mapping relation formed in the program, the sequential combination of the original data can be easily obtained, and the specified data can be well obtained for diagnosis.
For a clear illustration of the method provided in the present application, the following examples are given:
in practical application, the diagnosis instruction and the flash instruction are both 16-ary numbers of 0x 00-0 xFF, taking a flash file as an example, if the flash file is both 16-ary numbers ranging from 00-FF, the detailed steps are as follows:
firstly, traversing all the code symbols with the value of 0x00, simultaneously creating a File [ File _ A ] to record the sequence number of the code symbol with the value of 0x00 appearing in the File, newly creating a code symbol with the variable [ Var _00 ] stored with the value of 0x00 in a program, and creating the mapping between the variable [ Var _00 ] and the File _ A.
Sequentially traversing the code characters with the values of 0x01, 0x02, … and 0xFF, and establishing a sequence number record file and a variable mapping relation.
And when the coders with the values of 0x 00-0 xFF are all traversed, deleting the original flash file. In this way, the flash file is converted to a sequence number file.
When a program needs to use a certain piece of data or a certain byte of data in a source file, the program can utilize the existing variable and file mapping relation to sequentially combine instructions for diagnosis. For example, the ECU writes by flashing, 4095 bytes of data are generally sent in sequence at a time, then, through traversing all sequence number files, the code symbols with sequence numbers of 0-4094 are found out, after being combined in sequence, the code symbols are sent to the ECU,
and searching data with sequence numbers of 4095-8189 for the second time, and performing combined transmission.
Through the method and the steps, the diagnosis data file can be converted, and data information leakage is prevented. Meanwhile, under the condition of program-related mapping, the diagnostic file data can be well restored in sequence.
The above embodiments describe the program file calling method provided in the present application in detail, and the program file calling apparatus and the storage medium provided in the present application are described below with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a program file calling device provided in the present application, where the embodiment includes:
a first obtaining unit 301, configured to obtain a program file call instruction;
a second obtaining unit 302, configured to obtain a target program file set according to a call instruction, where the target program file set includes at least one sequence number file; the target program file set records the position sequence number of the source file code symbol;
a determining unit 303, configured to determine a corresponding code according to the position sequence number;
a replacing unit 304, configured to replace the position sequence number with the encoding symbol, and generate a target call file;
a calling unit 305 for calling the target call file to run the program.
Optionally, the apparatus further comprises: a first processing unit 306, the first processing unit 306 being configured to:
acquiring a source file of a program;
extracting a code symbol in a source file;
creating variable fields for the code symbols, wherein each variable field corresponds to a different code symbol;
the corresponding encodings are stored using the variable fields.
Optionally, the apparatus further comprises: a second processing unit 307, the third processing unit 307 is configured to:
traversing a first code symbol with the same data in a source file;
determining the position sequence number of the first code symbol in the source file;
and generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
Optionally, the apparatus further comprises: a third processing unit 308, the third processing unit 308 being configured to:
traversing all the encoding characters of the source file;
generating different serial number files according to the coding symbols of different data;
and collecting different sequence number files to generate a target program file collection.
Optionally, the apparatus further comprises: a fourth processing unit 309, the fourth processing unit 309 is configured to:
and establishing a mapping relation between the sequence number file and the variable field according to the file identifier.
Optionally, the determining unit 303 is specifically configured to:
determining a sequence number file to which the position sequence number belongs;
extracting a file identifier of the sequence number file;
determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
extracting a target code symbol stored in a target variable field;
and determining that the target code symbol is the code symbol corresponding to the position sequence number.
The present application further provides a program file calling apparatus, including:
a processor 401, a memory 402, an input-output unit 403, a bus 404;
the processor 401 is connected to the memory 402, the input/output unit 403, and the bus 404;
the memory 402 holds a program that the processor 401 calls to execute any of the program file call methods described above.
The present application also relates to a computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, causes the computer to execute any of the above program file calling methods.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
Claims (10)
1. A program file calling method, comprising:
acquiring a program file calling instruction;
acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character;
determining a corresponding code symbol according to the position sequence number;
replacing the position sequence number with the encoding character to generate a target calling file;
and calling the target calling file to run a program.
2. The method of claim 1, wherein prior to said obtaining a set of target program files according to said call instruction, said method comprises:
acquiring a source file of a program;
extracting a code symbol in a source file;
creating variable fields for the code symbols, wherein each variable field corresponds to a different code symbol;
storing a corresponding encoder using the variable field.
3. The method of claim 2, wherein prior to said obtaining a set of target program files according to said call instruction, said method comprises:
traversing a first code symbol having identical data in the source file;
determining a position sequence number of the first code symbol in the source file;
and generating the sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
4. The method of claim 3, wherein prior to said obtaining a set of target program files according to said call instruction, said method comprises:
traversing all of the coders of the source file;
generating different serial number files according to the coding symbols of different data;
and collecting the different sequence number files to generate a target program file collection.
5. The method of claim 3, wherein prior to said obtaining a set of target program files according to said call instruction, said method comprises:
and establishing a mapping relation between the sequence number file and the variable field according to the file identifier.
6. The method according to claim 5, wherein the determining the corresponding code symbol according to the position sequence number specifically includes:
determining a sequence number file to which the position sequence number belongs;
extracting the file identification of the sequence number file;
determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
extracting a target code symbol stored in the target variable field;
and determining the target code symbol as the code symbol corresponding to the position sequence number.
7. A program file calling apparatus, comprising:
the first acquisition unit is used for acquiring a program file calling instruction;
the second acquisition unit is used for acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file code character;
a determining unit, configured to determine a corresponding code symbol according to the position sequence number;
the replacing unit is used for replacing the position serial number with the coding character and generating a target calling file;
and the calling unit is used for calling the target calling file to run a program.
8. The program file calling apparatus according to claim 7, wherein said apparatus further comprises: a first processing unit to:
acquiring a source file of a program;
extracting a code symbol in a source file;
creating variable fields for the code symbols, wherein each variable field corresponds to a different code symbol;
storing a corresponding encoder using the variable field.
9. A program file calling apparatus, comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to execute the program file calling method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a program stored thereon, the program, when executed on a computer, performing the program file calling method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110960916.1A CN113791838B (en) | 2021-08-20 | 2021-08-20 | Program file calling method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110960916.1A CN113791838B (en) | 2021-08-20 | 2021-08-20 | Program file calling method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113791838A true CN113791838A (en) | 2021-12-14 |
| CN113791838B CN113791838B (en) | 2024-04-23 |
Family
ID=79181874
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110960916.1A Active CN113791838B (en) | 2021-08-20 | 2021-08-20 | Program file calling method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113791838B (en) |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030163718A1 (en) * | 2000-04-12 | 2003-08-28 | Johnson Harold J. | Tamper resistant software-mass data encoding |
| FR2967275A1 (en) * | 2010-11-10 | 2012-05-11 | Oberthur Technologies | METHOD, COMPUTER PROGRAM AND DEVICE FOR SECURING INTERMEDIATE PROGRAMMING CODE FOR ITS EXECUTION BY A VIRTUAL MACHINE |
| US20130262490A1 (en) * | 2012-03-30 | 2013-10-03 | International Business Machines Corporation | Performing a code conversion in a smaller target encoding space |
| US20170228243A1 (en) * | 2016-02-08 | 2017-08-10 | Fujitsu Limited | Non-transitory computer-readable recording medium storing control program, control device and control method |
| CN108388424A (en) * | 2018-03-09 | 2018-08-10 | 北京奇艺世纪科技有限公司 | A kind of method, apparatus and electronic equipment of calling interface data |
| CN108932407A (en) * | 2018-05-22 | 2018-12-04 | 北京奇虎科技有限公司 | A kind of program safety guard method and device |
| CN109814939A (en) * | 2017-11-20 | 2019-05-28 | 华为技术有限公司 | The production method and device of a kind of dynamic loading method, file destination |
| CN109815718A (en) * | 2019-01-18 | 2019-05-28 | 国能日新科技股份有限公司 | WAR program source file encryption protecting method and system |
| CN110727941A (en) * | 2019-08-23 | 2020-01-24 | 深圳市轱辘汽车维修技术有限公司 | Private data protection method and device, terminal equipment and storage medium |
| CN111090854A (en) * | 2019-11-25 | 2020-05-01 | 上海达梦数据库有限公司 | Target program execution and conversion method, device, terminal and storage medium |
| CN112114933A (en) * | 2020-08-14 | 2020-12-22 | 咪咕文化科技有限公司 | Application program protection method, electronic device and storage medium |
| CN112667240A (en) * | 2020-12-23 | 2021-04-16 | 平安普惠企业管理有限公司 | Program code conversion method and related device |
-
2021
- 2021-08-20 CN CN202110960916.1A patent/CN113791838B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030163718A1 (en) * | 2000-04-12 | 2003-08-28 | Johnson Harold J. | Tamper resistant software-mass data encoding |
| FR2967275A1 (en) * | 2010-11-10 | 2012-05-11 | Oberthur Technologies | METHOD, COMPUTER PROGRAM AND DEVICE FOR SECURING INTERMEDIATE PROGRAMMING CODE FOR ITS EXECUTION BY A VIRTUAL MACHINE |
| US20130262490A1 (en) * | 2012-03-30 | 2013-10-03 | International Business Machines Corporation | Performing a code conversion in a smaller target encoding space |
| US20170228243A1 (en) * | 2016-02-08 | 2017-08-10 | Fujitsu Limited | Non-transitory computer-readable recording medium storing control program, control device and control method |
| CN109814939A (en) * | 2017-11-20 | 2019-05-28 | 华为技术有限公司 | The production method and device of a kind of dynamic loading method, file destination |
| US20200278875A1 (en) * | 2017-11-20 | 2020-09-03 | Huawei Technologies Co., Ltd. | Dynamic loading method, and target file creation method and apparatus |
| CN108388424A (en) * | 2018-03-09 | 2018-08-10 | 北京奇艺世纪科技有限公司 | A kind of method, apparatus and electronic equipment of calling interface data |
| CN108932407A (en) * | 2018-05-22 | 2018-12-04 | 北京奇虎科技有限公司 | A kind of program safety guard method and device |
| CN109815718A (en) * | 2019-01-18 | 2019-05-28 | 国能日新科技股份有限公司 | WAR program source file encryption protecting method and system |
| CN110727941A (en) * | 2019-08-23 | 2020-01-24 | 深圳市轱辘汽车维修技术有限公司 | Private data protection method and device, terminal equipment and storage medium |
| CN111090854A (en) * | 2019-11-25 | 2020-05-01 | 上海达梦数据库有限公司 | Target program execution and conversion method, device, terminal and storage medium |
| CN112114933A (en) * | 2020-08-14 | 2020-12-22 | 咪咕文化科技有限公司 | Application program protection method, electronic device and storage medium |
| CN112667240A (en) * | 2020-12-23 | 2021-04-16 | 平安普惠企业管理有限公司 | Program code conversion method and related device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113791838B (en) | 2024-04-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110147722B (en) | Video processing method, video processing device and terminal equipment | |
| CN112732982A (en) | Fault code storage method and device, terminal equipment and readable storage medium | |
| CN112147983A (en) | Vehicle diagnosis method and device, electronic equipment and storage medium | |
| CN107545182B (en) | Method and system for bypassing function call chain detection in IOS application | |
| CN112948234A (en) | Interface test method and device and electronic equipment | |
| CN111460098A (en) | Text matching method and device and terminal equipment | |
| CN111708673A (en) | Log data compression method, device, equipment and storage medium | |
| CN112487265B (en) | Data processing method and device, computer storage medium and electronic equipment | |
| CN111104259A (en) | A database recovery method, device and storage medium | |
| CN114064753A (en) | Method, device and electronic device for processing time series data | |
| CN117978891A (en) | CAN message verification method, device, equipment and storage medium | |
| CN110543756B (en) | Device identification method and device, storage medium and electronic device | |
| CN108845995B (en) | Data processing method, data processing apparatus, storage medium, and electronic apparatus | |
| CN102567126B (en) | Method and device for site reproduction of hardware | |
| CN113791838A (en) | Program file calling method and device and storage medium | |
| CN116431520A (en) | Test scene determination method, device, electronic equipment and storage medium | |
| CN109471917B (en) | Data processing method, device, equipment and medium | |
| CN113342430A (en) | Fault code processing method and device, terminal equipment and readable storage medium | |
| CN117671044B (en) | Image processing method, device, electronic equipment and medium | |
| CN115933514B (en) | Control method, device, terminal and storage medium based on soft PLC | |
| CN116266799B (en) | Remote control Trojan flow early detection model construction method, device and detection method based on convolutional neural network | |
| CN117851251A (en) | Interface testing method and device, electronic equipment and readable storage medium | |
| CN118277015A (en) | Character coding mode compatible method, device, terminal equipment and storage medium | |
| CN113626296B (en) | A method, device and terminal for detecting system stability | |
| CN114296980A (en) | Method and system for identifying, detecting and extracting file system based on damaged squarshfs |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |