Skip to content

Commit 45030d5

Browse files
authored
allow qualys hacker guardian parser to parse larger csv files (#13120)
Co-authored-by: Jino Tesauro <jino@defectdojo.com>
1 parent de1f539 commit 45030d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dojo/tools/qualys_hacker_guardian/parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import csv
22
import io
3+
import sys
34

45
from dateutil import parser as date_parser
56

@@ -88,6 +89,7 @@ def get_findings(self, filename, test):
8889
content = filename.read()
8990
if isinstance(content, bytes):
9091
content = content.decode("utf-8")
92+
csv.field_size_limit(int(sys.maxsize / 10))
9193
reader = csv.DictReader(io.StringIO(content), delimiter=",", quotechar='"')
9294
dupes = {}
9395
for row in reader:

0 commit comments

Comments
 (0)