A vulnerability fixing code detection meth includes that obtaining commit information of open-source software, where the commit information includes a code snippet in a commit and text information associated with the code snippet; inputting the commit information into a first language model for identification, to obtain function change information and test case information; inputting the function change information into a vulnerability fixing identification model to obtain a vulnerability fixing code snippet for a target vulnerability, and inputting the test case information into a vulnerability test case identification model to obtain a test case code snippet for the target vulnerability; and then inputting the vulnerability fixing code snippet for the target vulnerability and the test case code snippet for the target vulnerability into a second language model for integration and identification, to obtain an identification result.
Full Text
What is claimed is: