message: Update len before we bail out
diff: @@ -68,6 +68,7 @@ public:
  resize(allocator, new_size);
  }
  void resize(Allocator &allocator, uint64_t new_size) {
  + len = new_size;
  if (new_size == 0) {
  return;
  }
  @@ -75,7 +76,6 @@ public:
  alloc_len = new_size;
  allocated_data = allocator.Allocate(alloc_len);
  }
  - len = new_size;
  ptr = (char *)allocated_data->get();
  }
  