Skip to content

Commit 57104f1

Browse files
tsepezcopybara-github
authored andcommitted
Remove base/allocator from unsafe_buffers_paths.txt file.
Blatantly suppress the unsafe buffer warnings in every file by automatically inserting the header. This avoids breaking the build and allows removal of the suppression from, e.g. raw_ptr.h as desired in a follow-up CL. Fully automated change. Bug: 435068772 Change-Id: I020180ede0495622df2dfe6a44c63f14551d3716 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6807180 Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Tom Sepez <[email protected]> Reviewed-by: Arthur Sonzogni <[email protected]> Cr-Commit-Position: refs/heads/main@{#1495686} NOKEYCHECK=True GitOrigin-RevId: d9b8153d34deb93f08d6a61eb12b6cd04486dbd9
1 parent f5d9c0b commit 57104f1

File tree

346 files changed

+1729
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+1729
-0
lines changed

src/partition_alloc/aarch64_support.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#ifndef PARTITION_ALLOC_AARCH64_SUPPORT_H_
611
#define PARTITION_ALLOC_AARCH64_SUPPORT_H_
712

src/partition_alloc/address_pool_manager.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#include "partition_alloc/address_pool_manager.h"
611

712
#include <atomic>

src/partition_alloc/address_pool_manager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#ifndef PARTITION_ALLOC_ADDRESS_POOL_MANAGER_H_
611
#define PARTITION_ALLOC_ADDRESS_POOL_MANAGER_H_
712

src/partition_alloc/address_pool_manager_bitmap.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#include "partition_alloc/address_pool_manager_bitmap.h"
611

712
#include "partition_alloc/buildflags.h"

src/partition_alloc/address_pool_manager_bitmap.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#ifndef PARTITION_ALLOC_ADDRESS_POOL_MANAGER_BITMAP_H_
611
#define PARTITION_ALLOC_ADDRESS_POOL_MANAGER_BITMAP_H_
712

src/partition_alloc/address_pool_manager_types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#ifndef PARTITION_ALLOC_ADDRESS_POOL_MANAGER_TYPES_H_
611
#define PARTITION_ALLOC_ADDRESS_POOL_MANAGER_TYPES_H_
712

src/partition_alloc/address_pool_manager_unittest.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#include "partition_alloc/address_pool_manager.h"
611

712
#include <cstdint>

src/partition_alloc/address_space_randomization.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#include "partition_alloc/address_space_randomization.h"
611

712
#include "partition_alloc/build_config.h"

src/partition_alloc/address_space_randomization.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#ifndef PARTITION_ALLOC_ADDRESS_SPACE_RANDOMIZATION_H_
611
#define PARTITION_ALLOC_ADDRESS_SPACE_RANDOMIZATION_H_
712

src/partition_alloc/address_space_randomization_unittest.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
#include "partition_alloc/address_space_randomization.h"
611

712
#include <cstdint>

0 commit comments

Comments
 (0)