You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ma...@apache.org on 2008/03/03 08:33:34 UTC
svn commit: r632968 -
/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
Author: manjula
Date: Sun Mar 2 23:33:23 2008
New Revision: 632968
URL: http://svn.apache.org/viewvc?rev=632968&view=rev
Log:
Fixing the segfault when sending large attachments through
tcpmon.
Modified:
webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c?rev=632968&r1=632967&r2=632968&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Sun Mar 2 23:33:23 2008
@@ -221,6 +221,13 @@
buffer[read+1] = '\0';
buf_len = read;
+
+ if(buf_len < cb_ctx->content_length)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+ "All the data in the message does not recieved");
+ return NULL;
+ }
}
if (buffer)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org