Open ChrisTimperley opened 1 year ago
@rshariffdeen It looks like this is still an issue. Below is an except from the localization.json
for tests/program-features/switch-case
:
[
{
"constraint": "((@var(integer, b) - 6) != 0)",
"distance": 1,
"location": "/CrashRepair/tests/program-features/switch-case/src/test.c:19:5",
"values-file": "/CrashRepair/tests/program-features/switch-case/analysis/values/#CrashRepair#tests#program-features#switch-case#src#test.c:21:13.csv",
"variables": []
},
{
"constraint": "((@var(integer, b) - 6) != 0)",
"distance": 5,
"location": "/CrashRepair/tests/program-features/switch-case/src/test.c:19:5",
"values-file": "/CrashRepair/tests/program-features/switch-case/analysis/values/#CrashRepair#tests#program-features#switch-case#src#test.c:20:9.csv",
"variables": [
{
"column": 13,
"line": 20,
"name": "a",
"type": "integer"
}
]
}
]
Notice that we have two entries for the same location but those entries have conflicting distances and variable information. The value files for each of them also look wrong.
I am not able to reproduce this, which commit was used for this @ChrisTimperley ? Actually I don't see any location in line 19 is localized after commit 9b2d69f
@rshariffdeen Heads up that some fix locations are being reported twice, leading to duplicate candidate patches. For example, libxml2/CVE-2016-1838. Below is a snippet from the report.json for that bug scenario: