From: Gonzalo A. <ga...@us...> - 2006-12-15 17:45:00
|
Update of /cvsroot/mod-c/ehtml/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv811/src Modified Files: Request.cpp Log Message: * Fix a possible infinite loop. Index: Request.cpp =================================================================== RCS file: /cvsroot/mod-c/ehtml/src/Request.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Request.cpp 6 Dec 2006 15:30:02 -0000 1.25 --- Request.cpp 15 Dec 2006 17:44:56 -0000 1.26 *************** *** 279,287 **** ProfileMe(); char *aux = buf, *eol, *eop, *eo_name; ! bool is_file, again = false; DEBUG_UPLOAD("ProcessUploadChunk: nbytes=%u boundary_length=%u", nbytes, boundary_length); if (nbytes < boundary_length) return; ! do switch (state) { case 0: // must skip until boundary DEBUG_UPLOAD("ProcessUploadChunk: state: 0"); --- 279,289 ---- ProfileMe(); char *aux = buf, *eol, *eop, *eo_name; ! bool is_file, again; DEBUG_UPLOAD("ProcessUploadChunk: nbytes=%u boundary_length=%u", nbytes, boundary_length); if (nbytes < boundary_length) return; ! do { ! again = false; ! switch (state) { case 0: // must skip until boundary DEBUG_UPLOAD("ProcessUploadChunk: state: 0"); *************** *** 390,393 **** --- 392,396 ---- nbytes = 0; break; + } } while (again); nbytes -= aux-buf; |