patch 9.1.0639: channel timeout may wrap around

Commit: 
https://github.com/vim/vim/commit/0bee82b1d0a46a6ca6fb4ffcebd6a63d4141a355
Author: Ken Takata <ken...@csc.jp>
Date:   Mon Jul 29 20:39:12 2024 +0200

    patch 9.1.0639: channel timeout may wrap around
    
    Problem:  channel timeout may wrap around
    Solution: Correct timeout calculation when GetTickCount() wraps around
              (Ken Takata)
    
    closes: #15390
    
    Signed-off-by: Ken Takata <ken...@csc.jp>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/channel.c b/src/channel.c
index b99b3a90a..69bbff24e 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2277,7 +2277,7 @@ channel_parse_json(channel_T *channel, ch_part_T part)
        {
            int timeout;
 #ifdef MSWIN
-           timeout = GetTickCount() > chanpart->ch_deadline;
+           timeout = (int)(GetTickCount() - chanpart->ch_deadline) > 0;
 #else
            {
                struct timeval now_tv;
diff --git a/src/version.c b/src/version.c
index f8d1762b8..97414a08a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    639,
 /**/
     638,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sYVMl-001q0l-8Q%40256bit.org.

Raspunde prin e-mail lui