Skip to content

Commit

Permalink
fix: usr: Memecheck stack might be a list
Browse files Browse the repository at this point in the history
According to the xml schema https://github.com/tbert/vigilante/blob/master/data/xmlschemas/valgrind-memcheck-xml-output.xsd#L122, stack has an unbounded max attributes. To have one single data type, force it to always be parsed as a list.
  • Loading branch information
dajose authored and carlos-jenkins committed Sep 18, 2018
1 parent 20076b4 commit 438f15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flowbber/plugins/sources/valgrind/memcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def collect(self):
'No such file {}'.format(infile)
)

doc = parse(infile.read_text(), force_list=('error',))
doc = parse(infile.read_text(), force_list=('error', 'stack',))
return doc['valgrindoutput']


Expand Down

0 comments on commit 438f15d

Please sign in to comment.