Skip to content

misc: Change all uses of 'eval_str=True' to 'eval_str=False'#5700

Open
mudit2812 wants to merge 4 commits intomainfrom
mudit/eval_str_false
Open

misc: Change all uses of 'eval_str=True' to 'eval_str=False'#5700
mudit2812 wants to merge 4 commits intomainfrom
mudit/eval_str_false

Conversation

@mudit2812
Copy link
Collaborator

inspect.signature(..., eval_str=True) and inspect.get_annotations(..., eval_str=True) can be used to inject arbitrary code as type hints, which can become a source of vulnerability for environments that install xDSL. Security tools like bandit cannot catch such code injection. This PR changes the problematic functions to use eval_str=False.

@mudit2812
Copy link
Collaborator Author

I seem to have screwed up formatting, will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant