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

Issue 2089016: Fix false positive reporting of exceptions picked up during calls to LoadLibr... (Closed)

Created:
10 years, 7 months ago by robertshield
Modified:
9 years, 6 months ago
Reviewers:
amit
CC:
chromium-reviews, amit
Visibility:
Public.

Description

Fix false positive reporting of exceptions picked up during calls to LoadLibrary during DllRegisterServer. BUG=44468 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47696

Patch Set 1 #

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

Messages

Total messages: 2 (0 generated)
robertshield
10 years, 7 months ago (2010-05-18 23:55:28 UTC) #1
amit
10 years, 7 months ago (2010-05-19 18:47:39 UTC) #2
OK

On Tue, May 18, 2010 at 4:55 PM, <robertshield@chromium.org> wrote:

> Reviewers: amit,
>
> Description:
> Fix false positive reporting of exceptions picked up during calls to
> LoadLibrary
> during DllRegisterServer.
>
> BUG=44468
>
>
>
> Please review this at http://codereview.chromium.org/2089016/show
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     chrome_frame/chrome_tab.cc
>
>
> Index: chrome_frame/chrome_tab.cc
> ===================================================================
> --- chrome_frame/chrome_tab.cc  (revision 47422)
> +++ chrome_frame/chrome_tab.cc  (working copy)
> @@ -28,6 +28,7 @@
>  #include "chrome_frame/chrome_active_document.h"
>  #include "chrome_frame/chrome_frame_activex.h"
>  #include "chrome_frame/chrome_frame_automation.h"
> +#include "chrome_frame/exception_barrier.h"
>  #include "chrome_frame/chrome_frame_reporting.h"
>  #include "chrome_frame/chrome_launcher.h"
>  #include "chrome_frame/chrome_protocol.h"
> @@ -234,6 +235,13 @@
>   const wchar_t kIEFrameDll[] = L"ieframe.dll";
>   const char kIERefreshPolicy[] = "IERefreshElevationPolicy";
>   HRESULT hr = E_NOTIMPL;
> +
> +  // Stick an SEH in the chain to prevent the VEH from picking up on first
> +  // chance exceptions caused by loading ieframe.dll. Use the vanilla
> +  // ExceptionBarrier to report any exceptions that do make their way to
> us
> +  // though.
> +  ExceptionBarrier barrier;
> +
>   HMODULE ieframe_module = LoadLibrary(kIEFrameDll);
>   if (ieframe_module) {
>     typedef HRESULT (__stdcall *IERefreshPolicy)();
>
>
>

Powered by Google App Engine
This is Rietveld 408576698