Bug 20590 – Filenames with NUL bytes in them are incorrectly accepted

Status
NEW
Severity
minor
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2020-02-20T21:44:42Z
Last change time
2024-12-01T16:36:24Z
Assigned to
No Owner
Creator
elronnd
Moved to GitHub: phobos#10408 →

Comments

Comment #0 by elronnd — 2020-02-20T21:44:42Z
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 by robert.schadek — 2024-12-01T16:36:24Z
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