Skip to content

Commit 8f2ac09

Browse files
tsepezcopybara-github
authored andcommitted
Remove some pragma allow_unsafe_buffers from partition alloc headers.
These were added out of an abundance of caution to avoid breaking builds. Remove the ones that are not in play given a quick visual inspection. Change-Id: I020f584bdb9607f929840af73c27d0d50e20c086 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6828945 Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#1498608} NOKEYCHECK=True GitOrigin-RevId: 90be100d36ba8ee21713b46938dffe53aebb73c0
1 parent 4a3b2fb commit 8f2ac09

23 files changed

+0
-114
lines changed

src/partition_alloc/address_pool_manager_types.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_ADDRESS_POOL_MANAGER_TYPES_H_
116
#define PARTITION_ALLOC_ADDRESS_POOL_MANAGER_TYPES_H_
127

src/partition_alloc/oom_callback.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_OOM_CALLBACK_H_
116
#define PARTITION_ALLOC_OOM_CALLBACK_H_
127

src/partition_alloc/page_allocator_internal.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PAGE_ALLOCATOR_INTERNAL_H_
116
#define PARTITION_ALLOC_PAGE_ALLOCATOR_INTERNAL_H_
127

src/partition_alloc/partition_alloc_base/compiler_specific.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_COMPILER_SPECIFIC_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_COMPILER_SPECIFIC_H_
127

src/partition_alloc/partition_alloc_base/component_export.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_COMPONENT_EXPORT_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_COMPONENT_EXPORT_H_
127

src/partition_alloc/partition_alloc_base/cxx20_is_constant_evaluated.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_CXX20_IS_CONSTANT_EVALUATED_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_CXX20_IS_CONSTANT_EVALUATED_H_
127

src/partition_alloc/partition_alloc_base/immediate_crash.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_IMMEDIATE_CRASH_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_IMMEDIATE_CRASH_H_
127

src/partition_alloc/partition_alloc_base/ios/ios_util.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_IOS_IOS_UTIL_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_IOS_IOS_UTIL_H_
127

src/partition_alloc/partition_alloc_base/memory/page_size.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_PAGE_SIZE_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_PAGE_SIZE_H_
127

src/partition_alloc/partition_alloc_base/memory/scoped_policy.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#ifdef UNSAFE_BUFFERS_BUILD
6-
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
7-
#pragma allow_unsafe_buffers
8-
#endif
9-
105
#ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_SCOPED_POLICY_H_
116
#define PARTITION_ALLOC_PARTITION_ALLOC_BASE_MEMORY_SCOPED_POLICY_H_
127

0 commit comments

Comments
 (0)