public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: pty: Fix a bug in the code removing "CSI > Pm m".
@ 2020-11-23 15:23 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-11-23 15:23 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=65ee05d326ddbbc5cb60668bc5b9d631fa72ede8

commit 65ee05d326ddbbc5cb60668bc5b9d631fa72ede8
Author: Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com>
Date:   Mon Nov 23 20:03:02 2020 +0900

    Cygwin: pty: Fix a bug in the code removing "CSI > Pm m".
    
    - The code added by 8121b606e843c001d5ca5213d24099e04ebc62ca has a
      bug which fails to remove multiple "CSI > Pm m" sequences. This
      patch fixes the bug.

Diff:
---
 winsup/cygwin/fhandler_tty.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 600de085c..911945675 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -2063,6 +2063,7 @@ fhandler_pty_master::pty_master_fwd_thread ()
 		memmove (&outbuf[start_at], &outbuf[i+1], rlen-i-1);
 		rlen = wlen = start_at + rlen - i - 1;
 		state = 0;
+		i = start_at - 1;
 		continue;
 	      }
 	    else


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-23 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 15:23 [newlib-cygwin] Cygwin: pty: Fix a bug in the code removing "CSI > Pm m" Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).