Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
|
| 7 |
+
This dataset accompanies the paper *Why Not Fix It Once and for All? An Empirical Study of Multiple Patches for Vulnerability Fixes in Open-Source Software*. It contains 1,581 manually annotated and cleaned records of vulnerabilities fixed by multiple patches.
|
| 8 |
+
|
| 9 |
+
## Data Structure
|
| 10 |
+
|
| 11 |
+
MultiPatch is stored in `jsonl` format. Each line corresponds to one CVE and contains the following keys.
|
| 12 |
+
|
| 13 |
+
```json
|
| 14 |
+
{
|
| 15 |
+
"CVE_ID": "the CVE identifier, e.g. CVE-2021-3156, type: str",
|
| 16 |
+
"category": "one or more categories from the list below, type: str",
|
| 17 |
+
"patches": [
|
| 18 |
+
{
|
| 19 |
+
"commit_url": "URL of the fix commit, type: str",
|
| 20 |
+
"diff_code": "the hash value of the parent commit, type: str",
|
| 21 |
+
"owner": "owner of the repo, type: str",
|
| 22 |
+
"repo_name": "repo name, type: str",
|
| 23 |
+
"commit_message": "commit message, type: str"
|
| 24 |
+
}
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
**Category.** A CVE may belong to one or more of the following categories:
|
| 30 |
+
|
| 31 |
+
- `Fixes for Multiple Locations Across Different Branches or Projects`
|
| 32 |
+
- `Incomplete Fixes`
|
| 33 |
+
- `Fix and Documentation Updates`
|
| 34 |
+
- `Bug-Introducing Fixes`
|
| 35 |
+
- `Multi-Location Fixes`
|
| 36 |
+
- `Workaround and Formal Fix`
|
| 37 |
+
|
| 38 |
+
## Citation
|
| 39 |
+
|
| 40 |
+
```bibtex
|
| 41 |
+
@article{qi2026not,
|
| 42 |
+
title={Why Not Fix It Once and for All? An Empirical Study of Multiple Patches for Vulnerability Fixes in Open-Source Software},
|
| 43 |
+
author={Qi, Weiliang and Li, Youpeng and Wang, Xinda},
|
| 44 |
+
journal={arXiv preprint arXiv:2607.13206},
|
| 45 |
+
year={2026}
|
| 46 |
+
}
|
| 47 |
+
```
|