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

Etusivu
Poista viesti
Vastaa
Lähettäjä: admin
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] [Bug 2957] DoS In Proxy Protocol v2 handling
https://bugs.exim.org/show_bug.cgi?id=2957

--- Comment #3 from Kevin Massey <kevin.massey1189@???> ---
I haven't had much time to review the timeout from that commit, but at first
glance, it seems that the timeout is only referenced in the internal loop,
while the outer loop does not:

----------------------------------------------------------------------------------
  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);


}

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

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