[crypto] Convert to UNSAFE_TODO
[crypto] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
Script: https://docs.google.com/document/d/1ORQGBNn2R-CEvNbDTjRd-GrOBOFlCxIHdcvSUA_EhR4/edit?usp=sharing
AX-Relnotes: N/A
Cleanup: This is an automated #cleanup.
Bug: 409340989
Change-Id: I996f659024ed96da05c01acc0b1b74575fa2faab
[ios] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[ios] Convert to UNSAFE_TODO
[ios] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
diff --git a/ios/chrome/app/perf_tests_hook_logging.mm b/ios/chrome/app/perf_tests_hook_logging.mm
index 9a55334e..819efd9 100644
--- a/ios/chrome/app/perf_tests_hook_logging.mm
+++ b/ios/chrome/app/perf_tests_hook_logging.mm
@@ -2,11 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifdef UNSAFE_BUFFERS_BUILD
-// TODO(crbug.com/474474271): Address use of unsafe formatting functions.
-#pragma allow_unsafe_buffers
-#endif
-
// clang-format off
#import "ios/chrome/app/tests_hook.h"
// clang-format on
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[ios] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hello!
Could you please take a look?
#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/474474271): Address use of unsafe formatting functions.
#pragma allow_unsafe_buffers
#endifHans:
I see you added it here:
https://source.chromium.org/chromium/chromium/src/+/28b09ac53bbaad2ddfbaa58cb39ce92f9e5dc36d
But I don't see what line would be problematic.
Can I merge this?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[content] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[content] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[content] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[content] Convert to UNSAFE_TODO
[content] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[components] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
diff --git a/components/language/ios/browser/language_detection_javascript_unittest.mm b/components/language/ios/browser/language_detection_javascript_unittest.mm
index 46d1946..79f5d877 100644
--- a/components/language/ios/browser/language_detection_javascript_unittest.mm
+++ b/components/language/ios/browser/language_detection_javascript_unittest.mm
@@ -2,11 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifdef UNSAFE_BUFFERS_BUILD
-// TODO(crbug.com/390223051): Remove C-library calls to fix the errors.
-#pragma allow_unsafe_libc_calls
-#endif
-
+#include "base/compiler_specific.h"
#import "base/test/ios/wait_util.h"
#import "components/language/ios/browser/ios_language_detection_tab_helper.h"
#import "ios/web/public/test/javascript_test.h"
@@ -24,7 +20,7 @@
// Returns an NSString filled with the char 'a' of length `length`.
NSString* GetLongString(NSUInteger length) {
NSMutableData* data = [[NSMutableData alloc] initWithLength:length];
- memset([data mutableBytes], 'a', length);
+ UNSAFE_TODO(memset([data mutableBytes], 'a', length));
NSString* long_string = [[NSString alloc] initWithData:data
encoding:NSASCIIStringEncoding];
return long_string;
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[content] Convert to UNSAFE_TODO
We are migrating from coarse-grained file-level suppression (#pragma
allow_unsafe_buffers) to granular, expression-level markers
(UNSAFE_TODO()). The pragma disables safety checks for an entire file,
whereas UNSAFE_TODO() isolates specific potentially unsafe operations,
allowing the rest of the file to be enforced as safe.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |