[exim-dev] [Bug 2957] DoS In Proxy Protocol v2 handling

トップ ページ
このメッセージを削除
このメッセージに返信
著者: admin
日付:  
To: exim-dev
題目: [exim-dev] [Bug 2957] DoS In Proxy Protocol v2 handling
https://bugs.exim.org/show_bug.cgi?id=2957

--- Comment #4 from Kevin Massey <kevin.massey1189@???> ---
After some additional testing, it seems that referencing the
had_command_timeout variable in the outer loop will fix this issue.

----------------------------------------------------------------------------------
do
    {
    do
      {
      retmore = read(fd, (uschar*)&hdr + ret, size-ret);
      } while (retmore == -1 && errno == EINTR && !had_command_timeout);
    if (retmore == -1)
      goto proxyfail;
    ret += retmore;
    DEBUG(D_receive) debug_printf("PROXYv2: have %d/%d required octets\n", ret,
size);
    } while ((ret < size) && !had_command_timeout);


}

----------------------------------------------------------------------------------

--
You are receiving this mail because:
You are on the CC list for the bug.