Print CVE when parsing vulnxml.
modified pkg/audit.c
@@ -64,17 +64,21 @@ struct audit_versions {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -268,7 +272,7 @@ parse_pattern(struct audit_entry *e, char *pattern, size_t len)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -312,7 +316,7 @@ parse_db_portaudit(const char *path, struct audit_head *h)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -329,11 +333,12 @@ enum vulnxml_parse_state {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -358,6 +363,7 @@ vulnxml_start_element(void *data, const char *element, const char **attributes)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -369,14 +375,18 @@ vulnxml_start_element(void *data, const char *element, const char **attributes)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -417,7 +427,7 @@ vulnxml_end_element(void *data, const char *element)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -430,6 +440,9 @@ vulnxml_end_element(void *data, const char *element)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -471,7 +484,9 @@ vulnxml_handle_data(void *data, const char *content, int length)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -501,6 +516,16 @@ vulnxml_handle_data(void *data, const char *content, int length)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -517,7 +542,7 @@ vulnxml_handle_data(void *data, const char *content, int length)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -544,7 +569,7 @@ parse_db_vulnxml(const char *path, struct audit_head *h)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -556,6 +581,8 @@ parse_db_vulnxml(const char *path, struct audit_head *h)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -609,14 +636,14 @@ audit_entry_compare(const void *a, const void *b)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -625,7 +652,7 @@ preprocess_db(struct audit_head *h)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -706,6 +733,7 @@ is_vulnerable(struct audit_entry_sorted *a, struct pkg *pkg)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -747,6 +775,13 @@ is_vulnerable(struct audit_entry_sorted *a, struct pkg *pkg)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -762,15 +797,16 @@ is_vulnerable(struct audit_entry_sorted *a, struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -779,19 +815,25 @@ free_audit_list(struct audit_head *h)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -885,7 +927,7 @@ exec_audit(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -930,7 +972,7 @@ exec_audit(int argc, char **argv)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -946,7 +988,7 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|