message: Deal with large resizes in the serializer properly.
diff: @@ -23,7 +23,9 @@ class Serializer {
  private:
  inline void PotentialResize(size_t new_element_size) {
  if (blob.size + new_element_size >= maximum_size) {
  + do {
  maximum_size *= 2;
  + } while(blob.size + new_element_size > maximum_size);
  auto new_data = new uint8_t[maximum_size];
  memcpy(new_data, data, blob.size);
  data = new_data;
  