axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r632968 - /webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
Date Mon, 03 Mar 2008 07:33:34 GMT
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


Mime
View raw message