static void InitXCFImage(XCFLayerInfo *outLayer)
{
  outLayer->image->page.x=outLayer->offset_x;
  outLayer->image->page.y=outLayer->offset_y;
  outLayer->image->page.width=outLayer->width;
  outLayer->image->page.height=outLayer->height;
  (void) SetImageProperty(outLayer->image,"label",(char *)outLayer->name);
}

The product dereferences a pointer that it expects to be valid but is NULL.