Skip to content

Conversation

RasmusWL
Copy link
Member

No description provided.

For now, this is how we're trying to structure things -- all in all it doesn't
matter too much, since everything is still marked as private.
```
In [6]: yaml.load("!!python/object/new:os.system [echo EXPLOIT!]", yaml.CLoader)
EXPLOIT!
Out[6]: 0
```
Not really that important. But easy to do while I was working on this library.
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Only request is that the (otherwise nice) added headings in the test file now suggest an organisation of calls into those which are safe and those which are unsafe. If we keep those headings, we should also follow this organisation in the rest of the file and fold in the load_all variants and the C-based loaders.

@RasmusWL
Copy link
Member Author

Done 👍

@RasmusWL RasmusWL requested a review from yoff March 19, 2021 08:53
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might have added a heading also at the top, but I do not feel strongly about it.

@yoff yoff merged commit 37036b5 into github:main Mar 19, 2021
@RasmusWL RasmusWL deleted the small-pyyaml-improvements branch March 19, 2021 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants