mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-07 14:25:44 +00:00
Fix bounds check in internal parser
This commit is contained in:
@@ -2228,7 +2228,7 @@ class PyReflector:
|
||||
src = "\n" * (line - 1) + func
|
||||
|
||||
node = ast.parse(src)
|
||||
if not isinstance(node, ast.Module) or len(node.body) == []:
|
||||
if not isinstance(node, ast.Module) or len(node.body) == 0:
|
||||
return "", "", ""
|
||||
node = node.body[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user