aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2019-01-07 09:54:28 -0800
committerDavid Reyna <David.Reyna@windriver.com>2019-01-07 09:54:28 -0800
commit89a07b2546cfed66ed833c0960ddfc2bc69be9fc (patch)
treee77092fb17285b4ce1d3a8fdd93e6e50bdd61299 /bin
parentc3acf93ab9e35ee815e12a60bddff00c2c5ae794 (diff)
downloadsrtool-89a07b2546cfed66ed833c0960ddfc2bc69be9fc.zip
srtool-89a07b2546cfed66ed833c0960ddfc2bc69be9fc.tar.gz
srtool-89a07b2546cfed66ed833c0960ddfc2bc69be9fc.tar.bz2
srtool: fix parsing CVE reference separator
The initial implementation of passing CVE references used ';' as a separator. However, some URLs use this charater to include git branch information, for example: http://git.qemu-project.org/?p=qemu.git;a=commitdiff;h=4c65fed8b... Changing the separator characted to a tab fixes this and other unexpected characters. [YOCTO #13121] Signed-off-by: David Reyna <David.Reyna@windriver.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nist/srtool_nist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nist/srtool_nist.py b/bin/nist/srtool_nist.py
index 8cc4238..0952b0c 100755
--- a/bin/nist/srtool_nist.py
+++ b/bin/nist/srtool_nist.py
@@ -564,7 +564,7 @@ def fetch_cve(cve_name,cve_source_file):
summary['ref_list'] = ''
for i, ref in enumerate(CVE_Item['cve']['references']['reference_data']):
- summary['ref_list'] += '%s%s;%s;%s' % ('|' if i>0 else '',ref['url'],','.join([tag for tag in ref['tags']]),ref['refsource'])
+ summary['ref_list'] += '%s%s\t%s\t%s' % ('|' if i>0 else '',ref['url'],','.join([tag for tag in ref['tags']]),ref['refsource'])
# Return the results
for key in summary.keys():