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

Issue 3421029: Fix a c_str() use-after-free bug in the chrome frame code. (Closed)

Created:
10 years, 3 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
Reviewers:
amit
CC:
chromium-reviews, amit
Visibility:
Public.

Description

Fix a c_str() use-after-free bug in the chrome frame code. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60233

Patch Set 1 #

Total comments: 1

Patch Set 2 : Eliminate temporary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome_frame/chrome_active_document.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
ncarter (slow)
Hi Amit, Please review. I happened across this when searching the code.
10 years, 3 months ago (2010-09-22 21:24:09 UTC) #1
amit
10 years, 3 months ago (2010-09-22 21:39:23 UTC) #2
LGTM! Thanks for spotting this.

http://codereview.chromium.org/3421029/diff/1/2
File chrome_frame/chrome_active_document.cc (right):

http://codereview.chromium.org/3421029/diff/1/2#newcode935
chrome_frame/chrome_active_document.cc:935: LPCWSTR popup_wnd_url =
url_wide.c_str();
nit: I think we can get rid of a temporary or two.

Powered by Google App Engine
This is Rietveld 408576698