[OT] parsing with sscanf is accidentally quadratic due to strlen

Kagamin spam at here.lot
Wed Mar 3 11:36:54 UTC 2021


On Wednesday, 3 March 2021 at 11:09:04 UTC, Patrick Schluter 
wrote:
> Yes, sscanf() calls strlen(). I got bitten by it also some 
> years ago when I memory mapped some log files to parse

I think you had another bug there? Memory mapped files are not 
null terminated with probability 1/4096.


More information about the Digitalmars-d mailing list