Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-09 Thread Ruihan Li
Hi, On Tue, Jul 09, 2024 at 06:58:41PM GMT, Marc-André Lureau wrote: > Hi > > On Tue, Jul 9, 2024 at 6:41 PM Ruihan Li wrote: > > > Hi, > > > > On Mon, Jul 08, 2024 at 03:21:58PM GMT, Marc-André Lureau wrote: > > > Hi > > > > > > On Mon, Jul 8, 2024 at 12:12 AM Ruihan Li wrote: > > > > > > > H

Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-09 Thread Marc-André Lureau
Hi On Tue, Jul 9, 2024 at 6:41 PM Ruihan Li wrote: > Hi, > > On Mon, Jul 08, 2024 at 03:21:58PM GMT, Marc-André Lureau wrote: > > Hi > > > > On Mon, Jul 8, 2024 at 12:12 AM Ruihan Li wrote: > > > > > Hi, > > > > > > Thanks for your quick review! > > > > > > On Sun, Jul 07, 2024 at 08:28:50PM GM

Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-09 Thread Ruihan Li
Hi, On Mon, Jul 08, 2024 at 03:21:58PM GMT, Marc-André Lureau wrote: > Hi > > On Mon, Jul 8, 2024 at 12:12 AM Ruihan Li wrote: > > > Hi, > > > > Thanks for your quick review! > > > > On Sun, Jul 07, 2024 at 08:28:50PM GMT, Marc-André Lureau wrote: > > > Hi > > > > > > On Sun, Jul 7, 2024 at 3:2

Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-08 Thread Marc-André Lureau
Hi On Mon, Jul 8, 2024 at 12:12 AM Ruihan Li wrote: > Hi, > > Thanks for your quick review! > > On Sun, Jul 07, 2024 at 08:28:50PM GMT, Marc-André Lureau wrote: > > Hi > > > > On Sun, Jul 7, 2024 at 3:26 PM Ruihan Li wrote: > > > > > This commit fixes a bug that causes incorrect results when pa

Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-07 Thread Ruihan Li
Hi, Thanks for your quick review! On Sun, Jul 07, 2024 at 08:28:50PM GMT, Marc-André Lureau wrote: > Hi > > On Sun, Jul 7, 2024 at 3:26 PM Ruihan Li wrote: > > > This commit fixes a bug that causes incorrect results when pasting more > > than 32 bytes, the size of the receive buffer b->buffer,

Re: [PATCH] char-mux: Don't overwrite the receive buffer

2024-07-07 Thread Marc-André Lureau
Hi On Sun, Jul 7, 2024 at 3:26 PM Ruihan Li wrote: > This commit fixes a bug that causes incorrect results when pasting more > than 32 bytes, the size of the receive buffer b->buffer, into the virtio > console. > > Example (note that the last 32 bytes are always correct, but something > goes wro

[PATCH] char-mux: Don't overwrite the receive buffer

2024-07-07 Thread Ruihan Li
This commit fixes a bug that causes incorrect results when pasting more than 32 bytes, the size of the receive buffer b->buffer, into the virtio console. Example (note that the last 32 bytes are always correct, but something goes wrong just before the last 32 bytes): Pasting abcdefghijk