[pywin32-checkins] pywin32/isapi/src FilterContext.h, 1.3, 1.4 ControlBlock.h, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2011-02-27 05:37:52
|
Update of /cvsroot/pywin32/pywin32/isapi/src In directory vz-cvs-2.sog:/tmp/cvs-serv25643/isapi/src Modified Files: FilterContext.h ControlBlock.h Log Message: prevent isapi GetServerVariable functions crashing on invalid variable names Index: ControlBlock.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/src/ControlBlock.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ControlBlock.h 3 Feb 2009 00:51:42 -0000 1.7 --- ControlBlock.h 27 Feb 2011 05:37:50 -0000 1.8 *************** *** 69,73 **** *pBuffSize = 0; ! if (lpBuff[(*pBuffSize)-1]=='\0') (*pBuffSize)--; return (bOK) ? true : false; --- 69,73 ---- *pBuffSize = 0; ! if ((int)(*pBuffSize)>0 && lpBuff[(*pBuffSize)-1]=='\0') (*pBuffSize)--; return (bOK) ? true : false; Index: FilterContext.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/src/FilterContext.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FilterContext.h 3 Feb 2009 00:51:42 -0000 1.3 --- FilterContext.h 27 Feb 2011 05:37:50 -0000 1.4 *************** *** 50,54 **** *pBuffSize = 0; ! if (lpBuff[(*pBuffSize)-1]=='\0') (*pBuffSize)--; return (bOK) ? true : false; --- 50,54 ---- *pBuffSize = 0; ! if ((int)(*pBuffSize)>0 && lpBuff[(*pBuffSize)-1]=='\0') (*pBuffSize)--; return (bOK) ? true : false; |