[Stackless-checkins] CVS: slpdev/src/2.3/src/PC getpathp.c, 1.1.1.3, 1.2

Christian Tismer tismer at centera.de
Mon Dec 19 15:26:43 CET 2005


Update of /home/cvs/slpdev/src/2.3/src/PC
In directory centera.de:/tmp/cvs-serv23512/src/2.3/src/PC

Modified Files:
	getpathp.c 
Log Message:
compatibility patches for 64 bit, partially taken from CCP

Index: getpathp.c
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/src/PC/getpathp.c,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -C2 -d -r1.1.1.3 -r1.2
*** getpathp.c	8 Jan 2004 22:09:50 -0000	1.1.1.3
--- getpathp.c	19 Dec 2005 14:26:41 -0000	1.2
***************
*** 628,633 ****
  			   start of the path in question - even if this
  			   is one character before the start of the buffer
  			*/
! 			while (*look != DELIM && look >= module_search_path)
  				look--;
  			nchars = lookEnd-look;
--- 628,634 ----
  			   start of the path in question - even if this
  			   is one character before the start of the buffer
+ 			   CCP Change: Fix, so that bound check is before dereferencing!
  			*/
! 			while (look >= module_search_path && *look != DELIM)
  				look--;
  			nchars = lookEnd-look;


_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins



More information about the Stackless-checkins mailing list