https://bugs.winehq.org/show_bug.cgi?id=39265
Bug ID: 39265 Summary: winhttp may try to decrypt one more ssl message than needed Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winhttp Assignee: wine-bugs@winehq.org Reporter: 7element@mail.bg Distribution: ---
In net.c:642 in read_ssl_chunk there is no break if buf_len == ssl_buf_size. If buf_len actually becomes equal to ssl_buf_size after buf_len += size, the loop should break, otherwise a new ssl message will be tried to be read. Code needs something like this on line 643: if(buf_len == ssl_buf_size) break;