Skip to content

Commit

Permalink
Revert unretained dangling ptr detector crash by default (fixes #3693)
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed May 6, 2024
1 parent 0580f93 commit 69ce47a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions patch/patch.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -801,5 +801,12 @@ patches = [
# Reverts
# https://chromium-review.googlesource.com/c/chromium/src/+/5454331
'name': 'win_partition_freelist_entry_336007395'
},
{
# Revert unretained dangling ptr detector crash by default.
# https://github.com/chromiumembedded/cef/issues/3693
# Reverts
# https://chromium-review.googlesource.com/c/chromium/src/+/5351597
'name': 'base_allocator_unretained_dangling_ptr_5351597'
}
]
13 changes: 13 additions & 0 deletions patch/patches/base_allocator_unretained_dangling_ptr_5351597.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git base/allocator/partition_alloc_features.cc base/allocator/partition_alloc_features.cc
index a2616fced0f5b..cacd41b0ffa23 100644
--- base/allocator/partition_alloc_features.cc
+++ base/allocator/partition_alloc_features.cc
@@ -36,7 +36,7 @@ const base::FeatureParam<UnretainedDanglingPtrMode>
kUnretainedDanglingPtrModeParam = {
&kPartitionAllocUnretainedDanglingPtr,
"mode",
- UnretainedDanglingPtrMode::kCrash,
+ UnretainedDanglingPtrMode::kDumpWithoutCrashing,
&kUnretainedDanglingPtrModeOption,
};

0 comments on commit 69ce47a

Please sign in to comment.