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

Unified Diff: android_webview/native/intercepted_request_data_impl.cc

Issue 11428052: [android_webview] Fix use after free in intercepted requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | « android_webview/native/android_protocol_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/intercepted_request_data_impl.cc
diff --git a/android_webview/native/intercepted_request_data_impl.cc b/android_webview/native/intercepted_request_data_impl.cc
index 894eb7c70886688ed2b30387d5375d6cff56f8b4..675d5234394c5e1f668722771959cad7145b45e9 100644
--- a/android_webview/native/intercepted_request_data_impl.cc
+++ b/android_webview/native/intercepted_request_data_impl.cc
@@ -35,14 +35,14 @@ class StreamReaderJobDelegateImpl :
virtual bool GetMimeType(JNIEnv* env,
net::URLRequest* request,
- const android_webview::InputStream& stream,
+ android_webview::InputStream* stream,
std::string* mime_type) OVERRIDE {
return intercepted_request_data_impl_->GetMimeType(env, mime_type);
}
virtual bool GetCharset(JNIEnv* env,
net::URLRequest* request,
- const android_webview::InputStream& stream,
+ android_webview::InputStream* stream,
std::string* charset) OVERRIDE {
return intercepted_request_data_impl_->GetCharset(env, charset);
}
« no previous file with comments | « android_webview/native/android_protocol_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698