* [PULL v2 0/1] Ui patches @ 2025-08-07 10:31 marcandre.lureau 2025-08-07 10:31 ` [PULL v2 1/1] ui/curses: Fix infinite loop on windows marcandre.lureau 2025-08-07 19:00 ` [PULL v2 0/1] Ui patches Stefan Hajnoczi 0 siblings, 2 replies; 3+ messages in thread From: marcandre.lureau @ 2025-08-07 10:31 UTC (permalink / raw) To: qemu-devel; +Cc: Marc-André Lureau, stefanha From: Marc-André Lureau <marcandre.lureau@redhat.com> The following changes since commit e0006a86615baa70bc9d8b183e528aed91c1ac90: Update version for the v10.1.0-rc2 release (2025-08-05 15:05:57 -0400) are available in the Git repository at: https://gitlab.com/marcandre.lureau/qemu.git tags/ui-pull-request for you to fetch changes up to c7ac771ee750e37808928b62388fd27dcbf00f46: ui/curses: Fix infinite loop on windows (2025-08-07 14:08:06 +0400) ---------------------------------------------------------------- UI-fix for v10.1.0-rc3 ---------------------------------------------------------------- William Hu (1): ui/curses: Fix infinite loop on windows ui/curses.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.50.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL v2 1/1] ui/curses: Fix infinite loop on windows 2025-08-07 10:31 [PULL v2 0/1] Ui patches marcandre.lureau @ 2025-08-07 10:31 ` marcandre.lureau 2025-08-07 19:00 ` [PULL v2 0/1] Ui patches Stefan Hajnoczi 1 sibling, 0 replies; 3+ messages in thread From: marcandre.lureau @ 2025-08-07 10:31 UTC (permalink / raw) To: qemu-devel; +Cc: Marc-André Lureau, stefanha, William Hu From: William Hu <purplearmadillo77@proton.me> Replace -1 comparisons for wint_t with WEOF to fix infinite loop caused by a 65535 == -1 comparison. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2905 Signed-off-by: William Hu <purplearmadillo77@proton.me> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> [ Marc-André - Add missing similar code change, remove a comment ] Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <tSO5to8--iex6QMThG3Z8ElfnNOUahK_yitw2G2tEVRPoMKV936CBdrpyfbeNpVEpziKqeQ1ShBwPOoDkofgApM8YWwnPKJR_JrPDThV8Bc=@proton.me> --- ui/curses.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/curses.c b/ui/curses.c index a39aee8762..161f78c35c 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -265,7 +265,8 @@ static int curses2foo(const int _curses2foo[], const int _curseskey2foo[], static void curses_refresh(DisplayChangeListener *dcl) { - int chr, keysym, keycode, keycode_alt; + wint_t chr = 0; + int keysym, keycode, keycode_alt; enum maybe_keycode maybe_keycode = CURSES_KEYCODE; curses_winch_check(); @@ -284,8 +285,9 @@ static void curses_refresh(DisplayChangeListener *dcl) /* while there are any pending key strokes to process */ chr = console_getch(&maybe_keycode); - if (chr == -1) + if (chr == WEOF) { break; + } #ifdef KEY_RESIZE /* this shouldn't occur when we use a custom SIGWINCH handler */ @@ -304,9 +306,9 @@ static void curses_refresh(DisplayChangeListener *dcl) /* alt or esc key */ if (keycode == 1) { enum maybe_keycode next_maybe_keycode = CURSES_KEYCODE; - int nextchr = console_getch(&next_maybe_keycode); + wint_t nextchr = console_getch(&next_maybe_keycode); - if (nextchr != -1) { + if (nextchr != WEOF) { chr = nextchr; maybe_keycode = next_maybe_keycode; keycode_alt = ALT; -- 2.50.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL v2 0/1] Ui patches 2025-08-07 10:31 [PULL v2 0/1] Ui patches marcandre.lureau 2025-08-07 10:31 ` [PULL v2 1/1] ui/curses: Fix infinite loop on windows marcandre.lureau @ 2025-08-07 19:00 ` Stefan Hajnoczi 1 sibling, 0 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2025-08-07 19:00 UTC (permalink / raw) To: marcandre.lureau; +Cc: qemu-devel, Marc-André Lureau, stefanha [-- Attachment #1: Type: text/plain, Size: 116 bytes --] Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-07 19:01 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-08-07 10:31 [PULL v2 0/1] Ui patches marcandre.lureau 2025-08-07 10:31 ` [PULL v2 1/1] ui/curses: Fix infinite loop on windows marcandre.lureau 2025-08-07 19:00 ` [PULL v2 0/1] Ui patches Stefan Hajnoczi
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.