| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index c399451a3d4886bd7187f0eb8f6000a128c0b18e..6c3dbcbb811fcbbe7bb92d59645862097f80671b 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -170,7 +170,7 @@ NOINLINE static void CrashIntentionally() {
|
| *zero = 0;
|
| }
|
|
|
| -#if defined(ADDRESS_SANITIZER)
|
| +#if defined(ADDRESS_SANITIZER) || defined(SYZYASAN)
|
| NOINLINE static void MaybeTriggerAsanError(const GURL& url) {
|
| // NOTE(rogerm): We intentionally perform an invalid heap access here in
|
| // order to trigger an Address Sanitizer (ASAN) error report.
|
| @@ -202,7 +202,7 @@ NOINLINE static void MaybeTriggerAsanError(const GURL& url) {
|
| // Make sure the assignments to the dummy value aren't optimized away.
|
| base::debug::Alias(&dummy);
|
| }
|
| -#endif // ADDRESS_SANITIZER
|
| +#endif // ADDRESS_SANITIZER || SYZYASAN
|
|
|
| static void MaybeHandleDebugURL(const GURL& url) {
|
| if (!url.SchemeIs(kChromeUIScheme))
|
| @@ -219,9 +219,9 @@ static void MaybeHandleDebugURL(const GURL& url) {
|
| base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20));
|
| }
|
|
|
| -#if defined(ADDRESS_SANITIZER)
|
| +#if defined(ADDRESS_SANITIZER) || defined(SYZYASAN)
|
| MaybeTriggerAsanError(url);
|
| -#endif // ADDRESS_SANITIZER
|
| +#endif // ADDRESS_SANITIZER || SYZYASAN
|
| }
|
|
|
| // Returns false unless this is a top-level navigation.
|
|
|