Skip to content

Commit 08c91ec

Browse files
committed
Added the non-vulnerable function samples.
1 parent c9c5b06 commit 08c91ec

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed
3.29 MB
Binary file not shown.
372 KB
Binary file not shown.
425 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ $ bash Anaconda3-5.0.1-Linux-x86_64.sh
2121

2222
The Vulnerabilities_info.xlsx file contains information of the collected function-level vulnerabilities. These vulnerabilities are from 3 open source projects: [FFmpeg](https://github.com/FFmpeg/FFmpeg), [LibTIFF](https://github.com/vadz/libtiff) and [LibPNG](https://github.com/glennrp/libpng). And vulnerability information was collected from [National Vulnerability Database(NVD)](https://nvd.nist.gov/) until the mid of July 2017.
2323

24-
The "Data" folder contains the source code of vulnerable functions within the Zip file of the 3 projects. After unzipping the files, one will find that the source code of each function was named with its CVE ID.
24+
The "Data" folder contains the source code of vulnerable functions and vulnerable functions within the Zip file of the 3 projects. After unzipping the files, one will find that the source code of each vulnerable function was named with its CVE ID. For the non-vulnerable functions, they were named with "{filename}_{functionname}.c".
2525

2626
The "Code" folder contains the Python code samples.
27-
1) ProcessCFilesWithCodeSensor.py file is for invoking the CodeSensor to parse functions to ASTs in serialized formart (for detail information and usage of CodeSensor, please visiter the author's blog: http://codeexploration.blogspot.com.au/)
27+
1) ProcessCFilesWithCodeSensor.py file is for invoking the CodeSensor to parse functions to ASTs in serialized formart (for detail information and usage of CodeSensor, please visit the author's blog: http://codeexploration.blogspot.com.au/)
2828
2) ProcessRawASTs_DFT.py file is to process the output of ProcessCFilesWithCodeSensor.py and convert the serialized ASTs to textual vectors.
2929
3) BlurProjectSpecific.py file is to blur the project specific content and convert the textual vectors (the output of ProcessRawASTs_DFT.py) to numeric vectors which can be used as the input of ML algorithms.
3030
4) LSTM.py file contains the Python code sample for implementing LSTM based on Keras with Tensorflow backend.

0 commit comments

Comments
 (0)