The invention belongs to the technical field of
software management, and particularly relates to a cross-platform
repair method and
system based on a large
language model.The method comprises the steps that a cross-platform
package manager interface is used for conducting
static analysis on a dependency
list of a target
software project, a cross-platform
dependency tree is obtained, and the target
software project is repaired based on the cross-platform
dependency tree; respectively injecting lightweight monitoring probes into at least two
operating system platforms, and collecting dynamic
tracking data of each dependency component in the
dependency tree; fusing the dependency tree and the dynamic
tracking data, and establishing a cross-platform security map comprising a dependency calling edge, a version conflict edge and a platform
vulnerability association edge; according to the method, the lightweight monitoring probe is injected into the multi-
operating system platform, the loading sequence, the function call sequence and the memory
layout difference of the dependent components are dynamically collected, and the cross-platform security map is constructed in combination with the static dependency tree, so that the specific potential safety
hazard of the platform can be accurately identified, and the comprehensiveness and the accuracy of cross-platform risk
perception are remarkably improved.