|
|
Chromium Code Reviews
DescriptionInitialize renderer ppapi host in ppapi_unittests to fix nullptr access.
Otherwise, PepperPluginInstanceImpl will call
host_impl->CreateInProcessResourceCreationAPI(this) on nullptr.
The bug was found by running the tests under UBSan.
BUG=607996
Committed: https://crrev.com/dd5416a6158105826292b69875c214464000d7b3
Cr-Commit-Position: refs/heads/master@{#429027}
Patch Set 1 #Patch Set 2 : Export CreateOnModuleForInProcess #
Messages
Total messages: 30 (19 generated)
krasin@chromium.org changed reviewers: + tommi@chromium.org
The CQ bit was checked by krasin@chromium.org to run a CQ dry run
Description was changed from ========== Initialy renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 ========== to ========== Initialize renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 ==========
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
On 2016/10/31 23:08:54, krasin1 wrote: So, the issue here is a missing link time dependency on https://cs.chromium.org/chromium/src/content/renderer/pepper/renderer_ppapi_h... An input from a code owner is appreciated.
The CQ bit was checked by krasin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by krasin@chromium.org
The CQ bit was checked by krasin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/10/31 23:38:22, krasin1 wrote: > On 2016/10/31 23:08:54, krasin1 wrote: > > So, the issue here is a missing link time dependency on > https://cs.chromium.org/chromium/src/content/renderer/pepper/renderer_ppapi_h... Turns out the problem was not with a dependency, but with the fact that CreateOnModuleForInProcess had hidden visibility. I have fixed it with adding CONTENT_EXPORT. An alternative would be using MockRendererPpapiHost, which I have tried and the change started to be quite intrusive, as I had to change RendererPpapiHostImpl into RendererPpapiHost in many places. I am okay to do the change, if it feels like a better way to go. Another alternative would be to check if host_impl is NULL here: https://cs.chromium.org/chromium/src/content/renderer/pepper/pepper_plugin_in... which feels wrong.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by tommi@chromium.org
lgtm
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
krasin@chromium.org changed reviewers: + bbudge@chromium.org
Hello Bill, can you please review and approve the content/renderer/pepper/ change? It's a one liner. Thanks, krasin
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
lgtm
The CQ bit was checked by krasin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Initialize renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 ========== to ========== Initialize renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Initialize renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 ========== to ========== Initialize renderer ppapi host in ppapi_unittests to fix nullptr access. Otherwise, PepperPluginInstanceImpl will call host_impl->CreateInProcessResourceCreationAPI(this) on nullptr. The bug was found by running the tests under UBSan. BUG=607996 Committed: https://crrev.com/dd5416a6158105826292b69875c214464000d7b3 Cr-Commit-Position: refs/heads/master@{#429027} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/dd5416a6158105826292b69875c214464000d7b3 Cr-Commit-Position: refs/heads/master@{#429027} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
