A function insertion method, a patch package generation method, a device, an apparatus and a medium

By constructing a function call graph and instrumenting only the root node with an in-degree of 0, the problem of excessive instrumentation in hotfix is ​​solved, thereby reducing the size of the software package and the consumption of system resources.

CN115544512BActive Publication Date: 2026-06-16BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2021-06-30
Publication Date
2026-06-16

Smart Images

  • Figure CN115544512B_ABST
    Figure CN115544512B_ABST
Patent Text Reader

Abstract

The present disclosure provides a function insertion method, a patch generation method, a device, an apparatus and a storage medium. The function insertion method comprises: obtaining a function call relationship graph corresponding to a target application program by analyzing source code of the target application program. A node in the function call relationship graph is used to represent a function in the source code, and a directed edge between adjacent nodes in the function call relationship is used to represent a call relationship between the adjacent nodes. The function corresponding to the node with an in-degree of 0 in the function call relationship graph is stored in a preset function list. In the source code of the target application program, the functions in the preset function list are inserted to obtain a software package corresponding to the target application program. Since the present disclosure only inserts the functions corresponding to the root nodes with an in-degree of 0 in the function call relationship graph of the application program, the number of inserted functions of the application program is greatly reduced, the size of the software package of the application program is reduced, and the excessive occupation of system resources of the user is avoided.
Need to check novelty before this filing date? Find Prior Art