Skip to content

Conversation

perlpunk
Copy link
Collaborator

Fixes #120

Otherwise $filename = ">file.yaml"; LoadFile($filename) will truncate a file.

One should check untrusted filenames in any case, though.

Fixes ingydotnet#120

Otherwise `$filename = ">file.yaml"; LoadFile($filename)` will truncate a file.

One should check untrusted filenames in any case, though.
@perlpunk perlpunk merged commit 5fe9dae into ingydotnet:master Feb 2, 2025
17 checks passed
Copy link

@shlomif shlomif left a comment

Choose a reason for hiding this comment

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

Hi! shouldn't a regression test be added?

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.

"LoadFile" uses 2-args open, allowing to truncate existing files
3 participants