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.