fix Issue 9466 - Compiler crash with code-coverage generation with large files

valgrind once again found the problem.

https://d.puremagic.com/issues/show_bug.cgi?id=9466