message: [core] Added check for output buffer
diff: @@ -593,6 +593,11 @@ bool GetImageInfo(const void* srcdata, int datasize, int* width, int* height,
  namespace {
  bool CompressInternal(const uint8* srcdata, int width, int height,
  const CompressFlags& flags, tstring* output) {
  + if (output == nullptr)
  + LOG(ERROR) << "Output buffer is null: ";
  + return false;
  + }
  +
  output->clear();
  const int components = (static_cast<int>(flags.format) & 0xff);
  