Avoid a potentially invalid LargeConsoleRead line.
Avoid a potentially invalid LargeConsoleRead line.

I think it might be possible for m_dirtyLineCount to be greater than the
windowRect.top() + windowRect.height().  If it is, then scanForDirtyLines
will perform an invalid read while trying to initialize prevLineAttr.

fracting/winpty,fracting/winpty,rprichard/winpty,fracting/winpty,rprichard/winpty,rprichard/winpty,rprichard/winpty,fracting/winpty