diff options
-rw-r--r-- | ui/base/clipboard/clipboard_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc index 08f14b1..a376ba5 100644 --- a/ui/base/clipboard/clipboard_win.cc +++ b/ui/base/clipboard/clipboard_win.cc @@ -520,8 +520,8 @@ void Clipboard::ReadHTML(Clipboard::Buffer buffer, string16* markup, html_start == std::string::npos) return; - DCHECK_GE(start_index, html_start); - DCHECK_GE(end_index, html_start); + if (start_index < html_start || end_index < start_index) + return; std::vector<size_t> offsets; offsets.push_back(start_index - html_start); |