A safer File.readln

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 22 17:52:53 PST 2017


On Sun, 22 Jan 2017 21:29:39 +0000, Markus Laker wrote:

> It's pretty easy to DoS a D program that uses File.readln or
> File.byLine:

The /dev/zero version at least could be solved by calling stat on the file 
and limiting reads to the reported size.


More information about the Digitalmars-d mailing list