freebsd-ports/net-im/gaim/files/patch-src::proxy.c
Jacques Vidrine 5872ad0839 Patch almost a dozen vulnerabilities, see
<URL:http://security.e-matters.de/advisories/012004.txt>.

Some fixes were
Obtained from:	Gaim CVS, originally submitted by Stefan Esser
2004-01-26 13:06:02 +00:00

19 lines
562 B
C

*** src/proxy.c.orig Thu Jan 22 08:27:26 2004
--- src/proxy.c Thu Jan 22 08:28:05 2004
***************
*** 974,980 ****
gaim_input_remove(phb->inpa);
! while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) {
if (inputline[pos - 1] == '\n')
nlc++;
else if (inputline[pos - 1] != '\r')
--- 974,980 ----
gaim_input_remove(phb->inpa);
! while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) {
if (inputline[pos - 1] == '\n')
nlc++;
else if (inputline[pos - 1] != '\r')