Issue 20590 - Filenames with NUL bytes in them are incorrectly accepted
Summary: Filenames with NUL bytes in them are incorrectly accepted
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All Linux
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-20 21:44 UTC by elronnd
Modified: 2024-12-01 16:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elronnd 2020-02-20 21:44:42 UTC
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.
Comment 1 dlangBugzillaToGithub 2024-12-01 16:36:24 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10408

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB