CVS: rdesktop/doc HACKING,1.5,1.6

Peter Åstrand <[email protected]> Fri, 27 Oct 2006 05:59:40 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop/doc
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31555/doc

Modified Files:
	HACKING 
Log Message:
Prevent segfaults in out of memory conditions by checking the pointer returned from XGetImage.

Index: HACKING
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/doc/HACKING,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** HACKING	18 Jun 2004 01:38:35 -0000	1.5
--- HACKING	27 Oct 2006 12:59:38 -0000	1.6
***************
*** 27,28 ****
--- 27,37 ----
  -------------
  http://dev.remotenetworktechnology.com/refdata.htm
+ 
+ 
+ Checking for out of memory conditions
+ -------------------------------------
+ Try to handle out of memory conditions gracefully. Use the xmalloc
+ routines from rdesktop.c, instead of calling malloc manually. Also,
+ remember that several Xlib functions can return NULL. This includes
+ XGetImage. Use exit_if_null to verify returned pointers. 
+ 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642