Skip to content
  • deuce's avatar
    Fix issue introduced in 1.244 where a line with exactly the number of · fc420692
    deuce authored
    characters as the buffer width terminated by a linefeed would cause an
    extra blank line to be inserted due to incorrect end-of-line detection.
    
    The number of lines to allocate was calculated correctly, so this resulted
    in writing past the last line in the screen buffer, corrupting memory after
    the allocation.  Glibc detected this condition and crashed with a double-
    free or corruption message.
    fc420692