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

valgrind once again found the problem.