CVS: rdesktop iso.c,1.19,1.20
Matt Chapman <[email protected]> Thu, 14 Feb 2008 03:45:17 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27171
Modified Files:
iso.c
Log Message:
Extra sanity checking.
Index: iso.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/iso.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** iso.c 8 Jan 2007 04:47:05 -0000 1.19
--- iso.c 14 Feb 2008 11:45:13 -0000 1.20
***************
*** 99,102 ****
--- 99,107 ----
}
}
+ if (length < 4)
+ {
+ error("Bad packet header\n");
+ return NULL;
+ }
s = tcp_recv(s, length - 4);
if (s == NULL)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/