This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 8386b12  Fix potential buffer overflow in 
http_response_writer_print_int
8386b12 is described below

commit 8386b12338b162ada4144bd499d589c8f4a45571
Author: William Blough <de...@blough.us>
AuthorDate: Sun Aug 30 21:31:00 2020 -0400

    Fix potential buffer overflow in http_response_writer_print_int
---
 src/core/transport/http/common/http_response_writer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/transport/http/common/http_response_writer.c 
b/src/core/transport/http/common/http_response_writer.c
index eec2422..bcc59de 100644
--- a/src/core/transport/http/common/http_response_writer.c
+++ b/src/core/transport/http/common/http_response_writer.c
@@ -149,7 +149,7 @@ axis2_http_response_writer_print_int(
     const axutil_env_t * env,
     int i)
 {
-    axis2_char_t int_str[10];
+    axis2_char_t int_str[12];
     sprintf(int_str, "%10d", i);
     return axis2_http_response_writer_print_str(response_writer, env, int_str);
 }

Reply via email to