libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit b8422c28e76e1b85611964f4c44c86707a8188e2
parent 19bd957c24f770daf9871ee30242ea6059aa2e7d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 21 Dec 2010 14:40:37 +0000

dead

Diffstat:
Msrc/plugins/png_extractor.c | 4++--
Msrc/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 @@ -80,8 +80,8 @@ static struct }; -#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) -#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) +#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) +#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) static int diff --git a/src/plugins/real_extractor.c b/src/plugins/real_extractor.c @@ -95,8 +95,6 @@ processMediaProperties (const Media_Properties * prop, return 0; mime_type_size = prop->data[prop->stream_name_size]; - if (mime_type_size > 2048) - return 0; /* unrealistic */ if (prop_size > prop->stream_name_size + sizeof (UINT8) + +mime_type_size + sizeof (Media_Properties)) {