Skip to contentSkip to conversation

cve-check and FC30

DISCUSSION Johnathan Mantey 1 participant 1 message Nov 7, 2019

lore
Share & tools
lore
#0 lore raw

I'm unable to build with the latest upstream changes.  I've isolated the problem to this commit:

3e36ab8dadab36bb286dc6d750ac6c4934f50d04 cve-check: ensure all known CVEs are in the report

The error is:
     0272:    placeholder = ",".join("?" * len(cves))
     0273:    query = "SELECT * FROM NVD WHERE id IN (%s)" % placeholder 0274:    conn = sqlite3.connect(db_file)
     0275:    cur = conn.cursor()
 *** 0276:    for row in cur.execute(query, tuple(cves)):
     0277:        cve_data[row[0]] = {}
     0278:        cve_data[row[0]]["summary"] = row[1]
     0279:        cve_data[row[0]]["scorev2"] = row[2]
     0280:        cve_data[row[0]]["scorev3"] = row[3]
Exception: sqlite3.OperationalError: too many SQL variables

When I revert this change I am able to build.

Has anyone else seen this, and, if so, created a solution?

Signature · 6 lines
Johnathan Mantey
Senior Software Engineer
*azad te**chnology partners*
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: [email protected] <mailto:[email protected]>