Set the buffer size to 0 to indicate an error in exif_loader_get_buf.