Java code patching method of Java card
A patch and code technology, applied in the Java code patch field of Java cards, can solve problems such as the inability to guarantee the operating efficiency of Java cards, the large space of Java cards, and the large memory of applications, so as to reduce table lookup operations and meet time-sensitive applications needs, small memory effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] A kind of Java code patch method of Java card, comprises the following steps:
[0050] (1) In the Java card chip, an area is allocated in EEPROM in advance as a patch management table for Java code. When patching different packages, an area is dynamically allocated from EEPROM as a patch information table for Java code. If each If the number of patches in the package exceeds 10, a multi-level patch information table is required;
[0051] The Java code patch consists of a patch management table, a patch information table, and a patch code;
[0052] The size of the patch management table is the number of Java packages solidified into the ROM area × 3 bytes, in which the 3 bytes of data are the offset address of the patch number of 1 byte and the patch information table of 2 bytes; patch management The structure of the table is shown in Table 1.
[0053] Table 1 Structure of patch management table
[0054]
[0055] The size of each level of patch information table is...
Embodiment 2
[0064] The method for patching the Java package stored in the ROM comprises the following steps:
[0065] ①Locate the card to the patch management table, access the static array variable of the patch management table, increase the number of patch methods, and check whether there is a patch information table. If it does not exist, additional space needs to be allocated to store the patch information table;
[0066] ② Add a new patch method information in the patch information table, including three parts: the absolute address of the method, the offset address of the abnormal information of the corrected method, and the offset address of the method body of the corrected method;
[0067] ③If the patch information in the patch information table is full, you need to apply for new space from EEPROM, build the next level of patch information table, and write the offset address of the new table at the end of the existing patch information table, and then go to the second step Continue...
Embodiment 3
[0072] The method for patching the Java package stored in the EEPROM comprises the following steps:
[0073] ①The card locates the method body of the original method, and updates the first byte to 0;
[0074] ② Allocate space from EEPROM to store the patch code, and write the offset address of the patch code into the 2nd and 3rd bytes of the method body of the original method.
[0075] like image 3 The Java package patching mechanism for the EEPROM area shown.
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com