Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config.read_config_file - use safe_load_file if available #1385

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

MSP-Greg
Copy link
Contributor

Description

Psych 4+ may change load_file behavior. Noticed this issue running YARD with Ruby master/main/head build, as it recently crashed.

Also, using Psych.safe_load_file when available is probably better from a security standpoint...

Completed Tasks

  • I have read the Contributing Guide.
  • The pull request is complete (implemented / written).
  • Git commits have been cleaned up (squash WIP / revert commits).
  • I ran bundle exec rake locally (if code is attached to PR) and ran CI in my fork.

Psych 4+ may change load_file behavior
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 93.41% when pulling 285278b on MSP-Greg:psych-4 into b589fa0 on lsegal:main.

@lsegal lsegal merged commit 4c0c9c8 into lsegal:main Jun 1, 2022
@MSP-Greg MSP-Greg deleted the psych-4 branch June 13, 2022 17:10
MSP-Greg added a commit to MSP-Greg/yard that referenced this pull request Jun 13, 2022
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.

None yet

3 participants