mirror of
https://github.com/lovell/sharp.git
synced 2026-02-11 00:56:14 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user