davidhin / linevd

Statement-level deep learning model for automated software vulnerability detection in C/C++ (Accepted in MSR 2022)
MIT License
64 stars 24 forks source link

Problems about IVDETECT #8

Open AMPLE001 opened 1 year ago

AMPLE001 commented 1 year ago

Hello, I'm running ivdetect using the code under "linevd-main\sastvd\ivdetect". And the gnnexplainer part reports an error, and here are the code and error:

image

image

The error is no "_FEAT"

And I check the BigVulDatasetIVDetect class in "linevd-main\sastvd\ivdetect\helpers.py", image I found that "_FEAT" does not exist in the getitem function.

lc338310659 commented 1 year ago

Hello, did you run the command "singularity exec main.sif python sastvd/scripts/getgraphs.py" to successfully get the graphs? I just ran this command and get a error massage like this Snipaste_2023-01-18_18-15-23 It's about the /linevd/sastvd/helpers/sast.py", line 39, in rats. I don't know why the function "cElementTree.fromstring" is here. cCn you telle me the functions do and how solve this problem? Thanks a lot.

wwptrdo commented 6 months ago

Hello, did you run the command "singularity exec main.sif python sastvd/scripts/getgraphs.py" to successfully get the graphs? I just ran this command and get a error massage like this Snipaste_2023-01-18_18-15-23 It's about the /linevd/sastvd/helpers/sast.py", line 39, in rats. I don't know why the function "cElementTree.fromstring" is here. cCn you telle me the functions do and how solve this problem? Thanks a lot.

The "rats" command is not processing successful. u should check the "rats" program env

surehaha commented 3 months ago

您好,我正在使用“linevd-main\sastvd\ivdetect”下的代码运行 ivdetect。gnnexplainer 部分报告错误,以下是代码和错误:

image

image

错误不是“_FEAT”

我检查了“linevd-main\sastvd\ivdetect\helpers.py”中的BigVulDatasetIVDetect类,image发现getitem函数中不存在“_FEAT”。

Hi. I was wondering if you could show me the results