Fixed #6272 (Improve check: multifile checking in checkbufferoverrun)