diff options
Diffstat (limited to 'src/main/extractor_ipc.c')
-rw-r--r-- | src/main/extractor_ipc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/extractor_ipc.c b/src/main/extractor_ipc.c index 61b0fe9..7f509da 100644 --- a/src/main/extractor_ipc.c +++ b/src/main/extractor_ipc.c | |||
@@ -67,7 +67,7 @@ EXTRACTOR_IPC_process_reply_ (struct EXTRACTOR_PluginList *plugin, | |||
67 | size--; | 67 | size--; |
68 | data++; | 68 | data++; |
69 | continue; | 69 | continue; |
70 | case MESSAGE_SEEK: /* Seek */ | 70 | case MESSAGE_SEEK: /* Seek */ |
71 | if (size < sizeof (struct SeekRequestMessage)) | 71 | if (size < sizeof (struct SeekRequestMessage)) |
72 | { | 72 | { |
73 | plugin->seek_request = -1; | 73 | plugin->seek_request = -1; |
@@ -88,13 +88,13 @@ EXTRACTOR_IPC_process_reply_ (struct EXTRACTOR_PluginList *plugin, | |||
88 | } | 88 | } |
89 | memcpy (&meta, cdata, sizeof (meta)); | 89 | memcpy (&meta, cdata, sizeof (meta)); |
90 | /* check hdr for sanity */ | 90 | /* check hdr for sanity */ |
91 | if (meta.value_size > MAX_META_DATA) | 91 | if (meta.value_size > MAX_META_DATA) |
92 | { | 92 | { |
93 | LOG ("Meta data exceeds size limit\n"); | 93 | LOG ("Meta data exceeds size limit\n"); |
94 | return -1; /* not allowing more than MAX_META_DATA meta data */ | 94 | return -1; /* not allowing more than MAX_META_DATA meta data */ |
95 | } | 95 | } |
96 | if (size < sizeof (meta) + meta.mime_length + meta.value_size) | 96 | if (size < sizeof (meta) + meta.mime_length + meta.value_size) |
97 | { | 97 | { |
98 | plugin->seek_request = -1; | 98 | plugin->seek_request = -1; |
99 | return ret; | 99 | return ret; |
100 | } | 100 | } |
@@ -108,7 +108,7 @@ EXTRACTOR_IPC_process_reply_ (struct EXTRACTOR_PluginList *plugin, | |||
108 | if ('\0' != mime_type[meta.mime_length - 1]) | 108 | if ('\0' != mime_type[meta.mime_length - 1]) |
109 | { | 109 | { |
110 | LOG ("Mime type not 0-terminated\n"); | 110 | LOG ("Mime type not 0-terminated\n"); |
111 | return -1; | 111 | return -1; |
112 | } | 112 | } |
113 | } | 113 | } |
114 | if (0 == meta.value_size) | 114 | if (0 == meta.value_size) |
@@ -117,7 +117,7 @@ EXTRACTOR_IPC_process_reply_ (struct EXTRACTOR_PluginList *plugin, | |||
117 | value = &cdata[sizeof (struct MetaMessage) + meta.mime_length]; | 117 | value = &cdata[sizeof (struct MetaMessage) + meta.mime_length]; |
118 | if (meta.meta_type >= EXTRACTOR_metatype_get_max ()) | 118 | if (meta.meta_type >= EXTRACTOR_metatype_get_max ()) |
119 | meta.meta_type = EXTRACTOR_METATYPE_UNKNOWN; | 119 | meta.meta_type = EXTRACTOR_METATYPE_UNKNOWN; |
120 | proc (proc_cls, | 120 | proc (proc_cls, |
121 | plugin, | 121 | plugin, |
122 | (enum EXTRACTOR_MetaType) meta.meta_type, | 122 | (enum EXTRACTOR_MetaType) meta.meta_type, |
123 | (enum EXTRACTOR_MetaFormat) meta.meta_format, | 123 | (enum EXTRACTOR_MetaFormat) meta.meta_format, |