commit | dbd7f8723c13e5b23ea44b68850732df40c7f5e5 | [log] [tgz] |
---|---|---|
author | Chris Hamilton <chrisha@chromium.org> | Wed Aug 01 23:38:38 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 01 23:38:38 2018 |
tree | a4721073dc91398d0eca453e8f774562f27fcd3f | |
parent | 805e3710b293694b5ef613bfd9589dd7f47412cf [diff] |
Fix use after free in I18nSourceStream. This adds explicit lifetime management between URLRequestChromeJob and URLDataSourceImpl, by having the job own a shared_refptr to the data source. This allows the data source to be detached from the backend yet remain alive as long as the request job is still alive (which eventually wants to use its i18n template replacements map). BUG=863318 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I84caa70dff1e1c65ac430fca11656e85e4a6eebd Reviewed-on: https://chromium-review.googlesource.com/1156625 Commit-Queue: Chris Hamilton <chrisha@chromium.org> Reviewed-by: Tommy Li <tommycli@chromium.org> Reviewed-by: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#579994}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .