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/02/18 12:25:10 UTC
svn commit: r628685 -
/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
Author: manjula
Date: Mon Feb 18 03:25:02 2008
New Revision: 628685
URL: http://svn.apache.org/viewvc?rev=628685&view=rev
Log:
Fixing an Invalid write which cause the crash in windows.
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=628685&r1=628684&r2=628685&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Mon Feb 18 03:25:02 2008
@@ -95,7 +95,7 @@
axis2_char_t * mime_boundary)
{
axis2_char_t *buffer = NULL;
- int size = 10 * AXIOM_MIME_PARSER_BUFFER_SIZE;
+ int size = AXIOM_MIME_PARSER_BUFFER_SIZE;
int len = 0;
axis2_char_t *root_mime = NULL;
axis2_char_t *soap_body_str = NULL;
@@ -295,7 +295,7 @@
mime_binary = AXIS2_MALLOC(env->allocator,
sizeof(char) * (mime_binary_len + 1));
memcpy(mime_binary, temp_mime_binary, mime_binary_len);
- mime_binary[mime_binary_len + 1] = '\0';
+ mime_binary[mime_binary_len] = '\0';
}
if (mime_parser->mime_parts_map)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org