The CWE-703/CWE-392/compliant03.py
code has an error on line 22
ret = list()
invalid_arg = 0
try:
for res in result_gen:
ret.append(res)
invalid_arg += 1
return ret
Not sure if its a typo, got flagged while using pyre.
Need to have a close look to understand the original intention of this code in order to fix it.