aboutsummaryrefslogtreecommitdiff
path: root/src/common/convert.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-13 14:53:41 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-13 14:53:41 +0000
commit9cc59c6c643744868ff01cbc47a54775281e06f1 (patch)
treeef20a84e7e8bfcf34d7e7d362ea78012c930da90 /src/common/convert.c
parent9b549615a05da521035ab9755a61fdb2ca045435 (diff)
downloadlibextractor-9cc59c6c643744868ff01cbc47a54775281e06f1.tar.gz
libextractor-9cc59c6c643744868ff01cbc47a54775281e06f1.zip
another one
Diffstat (limited to 'src/common/convert.c')
-rw-r--r--src/common/convert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/convert.c b/src/common/convert.c
index bf62a1b..dd8f489 100644
--- a/src/common/convert.c
+++ b/src/common/convert.c
@@ -46,7 +46,10 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char *cha
46 if (cd == (iconv_t) - 1) 46 if (cd == (iconv_t) - 1)
47 return strdup (i); 47 return strdup (i);
48 if (len > 1024 * 1024) 48 if (len > 1024 * 1024)
49 return NULL; /* too big for meta data */ 49 {
50 iconv_close (cd);
51 return NULL; /* too big for meta data */
52 }
50 tmpSize = 3 * len + 4; 53 tmpSize = 3 * len + 4;
51 tmp = malloc (tmpSize); 54 tmp = malloc (tmpSize);
52 if (tmp == NULL) 55 if (tmp == NULL)