message: [tf.data] Avoid accessing possibly uninitialized memory in the `RepeatDatasetOp` kernel.
diff: @@ -232,26 +232,26 @@ class RepeatDatasetOp::Dataset : public DatasetBase {
  TF_RETURN_IF_ERROR(dataset()->input_->MakeIterator(
  ctx, this, prefix(), &input_impl_));
  }
  - Status s = input_impl_->GetNext(ctx, out_tensors, end_of_sequence);
  + TF_RETURN_IF_ERROR(
  + input_impl_->GetNext(ctx, out_tensors, end_of_sequence));
  DCHECK(!*end_of_sequence || out_tensors->empty());
  if (first_call_ && *end_of_sequence && !ctx->split_provider()) {
  - // If the first call to GetNext() fails because the end
  - // of sequence has been reached, we terminate the
  - // iteration immediately. (Otherwise, this iterator
  - // would loop infinitely and never produce a value.)
  + // If the first call to GetNext() fails because the end of sequence
  + // has been reached, we terminate the iteration immediately.
  + // Otherwise, this iterator would loop infinitely and never produce a
  + // value.
  input_impl_.reset();
  return Status::OK();
  }
  first_call_ = false;
  if (!*end_of_sequence) {
  - return s;
  - } else {
  + return Status::OK();
  + }
  if (ctx->split_provider()) {
  TF_RETURN_IF_ERROR(ctx->split_provider()->Reset());
  }
  input_impl_.reset();
  first_call_ = true;
  - }
  } while (true);
  }
  