Add raw EXIF data to metadata response

Copy metadata input buffer to match pipeline

Prevents possible metadata segfault under load
This commit is contained in:
Lovell Fuller
2015-06-28 23:35:40 +01:00
parent 86490bedfb
commit 6ac47c1ef8
7 changed files with 58 additions and 17 deletions

View File

@@ -184,7 +184,7 @@ class PipelineWorker : public NanAsyncWorker {
// Input
ImageType inputImageType = ImageType::UNKNOWN;
VipsImage *image = NULL;
if (baton->bufferInLength > 1) {
if (baton->bufferInLength > 0) {
// From buffer
inputImageType = DetermineImageType(baton->bufferIn, baton->bufferInLength);
if (inputImageType != ImageType::UNKNOWN) {