aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-03 14:28:30 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-03 14:28:30 +0000
commit4ea4407d8270157813c700dacdaca84f856882fe (patch)
treeeb56233b0fb484e2942e33949be846b91183ffd0
parent59c6a50d7a8d8c368a3932224dd136dbe37e99f2 (diff)
downloadlibextractor-4ea4407d8270157813c700dacdaca84f856882fe.tar.gz
libextractor-4ea4407d8270157813c700dacdaca84f856882fe.zip
just skip over meta data that is too large
-rw-r--r--src/main/extractor_plugin_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/extractor_plugin_main.c b/src/main/extractor_plugin_main.c
index 5478421..a79815c 100644
--- a/src/main/extractor_plugin_main.c
+++ b/src/main/extractor_plugin_main.c
@@ -317,6 +317,8 @@ plugin_env_send_proc (void *cls,
317 size_t mime_len; 317 size_t mime_len;
318 unsigned char reply; 318 unsigned char reply;
319 319
320 if (data_len > MAX_META_DATA)
321 return 0; /* skip, too large */
320 if (NULL == data_mime_type) 322 if (NULL == data_mime_type)
321 mime_len = 0; 323 mime_len = 0;
322 else 324 else