diff options
-rw-r--r-- | src/plugins/png_extractor.c | 4 | ||||
-rw-r--r-- | src/plugins/real_extractor.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/png_extractor.c b/src/plugins/png_extractor.c index 7e35e8a..07243a1 100644 --- a/src/plugins/png_extractor.c +++ b/src/plugins/png_extractor.c | |||
@@ -80,8 +80,8 @@ static struct | |||
80 | }; | 80 | }; |
81 | 81 | ||
82 | 82 | ||
83 | #define ADD(t,s) do { if (0 != (ret = proc (proc_cls, "tar", t, EXTRACTOR_METAFORMAT_UTF8, "text/plain", s, strlen(s)+1))) goto FINISH; } while (0) | 83 | #define ADD(t,s) do { if (0 != (ret = proc (proc_cls, "png", t, EXTRACTOR_METAFORMAT_UTF8, "text/plain", s, strlen(s)+1))) goto FINISH; } while (0) |
84 | #define ADDF(t,s) do { if ( (s != NULL) && (0 != (ret = proc (proc_cls, "tar", t, EXTRACTOR_METAFORMAT_UTF8, "text/plain", s, strlen(s)+1))) ) { free(s); goto FINISH; } if (s != NULL) free (s); } while (0) | 84 | #define ADDF(t,s) do { if ( (s != NULL) && (0 != (ret = proc (proc_cls, "png", t, EXTRACTOR_METAFORMAT_UTF8, "text/plain", s, strlen(s)+1))) ) { free(s); goto FINISH; } if (s != NULL) free (s); } while (0) |
85 | 85 | ||
86 | 86 | ||
87 | static int | 87 | static int |
diff --git a/src/plugins/real_extractor.c b/src/plugins/real_extractor.c index d96dd6c..5b3538c 100644 --- a/src/plugins/real_extractor.c +++ b/src/plugins/real_extractor.c | |||
@@ -95,8 +95,6 @@ processMediaProperties (const Media_Properties * prop, | |||
95 | return 0; | 95 | return 0; |
96 | 96 | ||
97 | mime_type_size = prop->data[prop->stream_name_size]; | 97 | mime_type_size = prop->data[prop->stream_name_size]; |
98 | if (mime_type_size > 2048) | ||
99 | return 0; /* unrealistic */ | ||
100 | if (prop_size > prop->stream_name_size + sizeof (UINT8) + | 98 | if (prop_size > prop->stream_name_size + sizeof (UINT8) + |
101 | +mime_type_size + sizeof (Media_Properties)) | 99 | +mime_type_size + sizeof (Media_Properties)) |
102 | { | 100 | { |