Commit 610c0300 authored by vogelheim's avatar vogelheim Committed by Commit bot

Fix incorrect buffer length.

R=jochen@chromium.org
BUG=chromium:533243
LOG=N

Review URL: https://codereview.chromium.org/1356863002

Cr-Commit-Position: refs/heads/master@{#30830}
parent d10b2709
......@@ -458,11 +458,11 @@ void ExternalStreamingStream::ResetToBookmark() {
// bookmark_data_* => current_data_*
// (current_data_ assumes ownership of its memory.)
uint8_t* data = new uint8_t[bookmark_data_.length() - bookmark_data_offset_];
current_data_offset_ = 0;
current_data_length_ = bookmark_data_.length() - bookmark_data_offset_;
uint8_t* data = new uint8_t[current_data_length_];
CopyCharsUnsigned(data, bookmark_data_.begin() + bookmark_data_offset_,
bookmark_data_.length());
current_data_length_);
delete[] current_data_;
current_data_ = data;
bookmark_data_is_from_current_data_ = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment