[Issue 13367] New: Buffer overflow when setting PATH
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 23 19:54:23 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13367
Issue ID: 13367
Summary: Buffer overflow when setting PATH
Product: D
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
/////////////////////////// testPath.d ///////////////////////////
import std.process;
void main()
{
foreach (n; 0..50)
environment["PATH"] = environment["PATH"] ~ `;C:\Example`;
}
//////////////////////////////////////////////////////////////////
This program will freeze on Win32 and crash on Win64. The stack trace is
corrupted, I assume a buffer on the stack is being overflown.
Introduced in https://github.com/D-Programming-Language/phobos/pull/2332
--
More information about the Digitalmars-d-bugs
mailing list