You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ma...@apache.org on 2008/02/20 15:16:52 UTC

svn commit: r629467 - /webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c

Author: manjula
Date: Wed Feb 20 06:16:51 2008
New Revision: 629467

URL: http://svn.apache.org/viewvc?rev=629467&view=rev
Log:
fixed to handle when attachment size greater than
configured handling size.

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=629467&r1=629466&r2=629467&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Wed Feb 20 06:16:51 2008
@@ -138,6 +138,14 @@
                 cb_ctx->chunked_stream, env))
         {
             read = 0;
+            
+            if(buf_num > (mime_parser->max_chunk_buffers - 1))
+            {
+                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                    "Attachment size exceeds the system MTOM configuration parameters");
+                return NULL;
+            }
+
             buf_array[buf_num] = AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * (size + 1));
             do
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org