?At this stage,it has a good effect in detecting vulnerabilities caused by function calls in a single file,however,thecomplex function call relationships may?
involve multiple files,the vulnerability detection for multiple files is one of the current detectiondifficulties. Therefore,we propose a new graph represent-
ation PDGcross based on the dependency graph of the source code program,which is generated by merging other called files from one file entry. Node-
2Vec graph embedding algorithm is used to further processPDGcross into feature matrix. Long Short Term Memory Network is used to train the vulnera-
bility classification model,and a method ofsource code detection based on cross-file program dependence graph representation and deep learning is implemented. In the experiment,Fortify and PDG representation have low detection efficiency for vulnerabilities generated by cross-file function calls,while the detectionmethod based on PDGcross representation proposed is significantly better than these two methods.