Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3011)

Unified Diff: chrome/browser/extensions/api/sessions/sessions_api.cc

Issue 186343003: Fix index out of bounds bug which causes memory leak or browser crash in extension sessions API. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/sessions/sessions_api.cc
===================================================================
--- chrome/browser/extensions/api/sessions/sessions_api.cc (revision 254429)
+++ chrome/browser/extensions/api/sessions/sessions_api.cc (working copy)
@@ -229,7 +229,8 @@
int selected_index) {
std::string session_id = SessionId(session_tag, tab.tab_id.id()).ToString();
return CreateTabModelHelper(GetProfile(),
- tab.navigations[tab.current_navigation_index],
+ tab.navigations[
+ tab.normalized_navigation_index()],
session_id,
tab_index,
tab.pinned,
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698