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

Filenames with NUL bytes in them are incorrectly accepted #10408

Open
dlangBugzillaToGithub opened this issue Feb 20, 2020 · 0 comments
Open
Labels
OS:Linux Issues specific to Linux Severity:Minor

Comments

@dlangBugzillaToGithub
Copy link

elronnd reported this on 2020-02-20T21:44:42Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=20590

Description

Sample code:

import std.stdio;                                                                                                                      
import std.file: readText;

void main() {
        writeln(readText("foo.txt\0blah"));
}

The file 'foo.txt\0blah' /can't/ exist on unix (idk about windows), but foo.txt exists and is read.
@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS:Linux Issues specific to Linux Severity:Minor
Projects
None yet
Development

No branches or pull requests

2 participants