diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-23 10:23:49 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-23 10:23:49 +0000 |
commit | 071030190a7d45b6cca8cf71f9f513f4c12c50a1 (patch) | |
tree | b8b5e9de3fc46cd01c03baf288386a01e6a48170 /src | |
parent | f0314c16b1392a2021874136f80fd9350f16fe84 (diff) |
fixed buffer overflow in conv_jistoeuc().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@186 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/codeconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codeconv.c b/src/codeconv.c index 7273af40..cf6021d6 100644 --- a/src/codeconv.c +++ b/src/codeconv.c @@ -136,7 +136,7 @@ static gchar *conv_jistoeuc(const gchar *inbuf, gint *error) JISState state = JIS_ASCII; gint error_ = 0; - outbuf = g_malloc(strlen(inbuf) + 1); + outbuf = g_malloc(strlen(inbuf) * 2 + 1); out = outbuf; while (*in != '\0') { |