diff options
Diffstat (limited to 'src/common/convert.c')
-rw-r--r-- | src/common/convert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/convert.c b/src/common/convert.c index b139261..e4d8fea 100644 --- a/src/common/convert.c +++ b/src/common/convert.c | |||
@@ -45,6 +45,8 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char *cha | |||
45 | cd = iconv_open ("UTF-8", charset); | 45 | cd = iconv_open ("UTF-8", charset); |
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) | ||
49 | return NULL; /* too big for meta data */ | ||
48 | tmpSize = 3 * len + 4; | 50 | tmpSize = 3 * len + 4; |
49 | tmp = malloc (tmpSize); | 51 | tmp = malloc (tmpSize); |
50 | if (tmp == NULL) | 52 | if (tmp == NULL) |