Convert to UNSAFE_TODO in services
This is an automated #cleanup patch using the [Script] below.
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.
This CL was uploaded by git cl split.
| 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. |
| Auto-Submit | +1 |
Hi Daniel,
Could you please take a look?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Hi Daniel,
Could you please take a look?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM w/optional nit
(I'm guessing that the current insertion is probably based on ranges suggested by clang)
UNSAFE_TODO(EXPECT_EQ(This UNSAFE_TODO() should be around the memcmp(), no?
UNSAFE_TODO(EXPECT_EQ(hprof.SizeOfType(i), correct_sizes[i]));Similarly here and below, it should be around `correct_sizes[i]`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
This UNSAFE_TODO() should be around the memcmp(), no?
The range are coming from clang. Since `EXPECT_EQ` is a macro, I suspect it can't identify the part of the argument that lead to the unsafe error, so it ends up flagging the macro invocation instead.
So, this is the best I can do, in an automated way. I don't believe this matter much, but if you insist, I am happy to invert the two macros.
UNSAFE_TODO(EXPECT_EQ(hprof.SizeOfType(i), correct_sizes[i]));Similarly here and below, it should be around `correct_sizes[i]`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
5 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: services/tracing/public/cpp/perfetto/java_heap_profiler/hprof_buffer_android_unittest.cc
Insertions: 2, Deletions: 2.
The diff is too large to show. Please review the diff.
```
```
The name of the file: services/tracing/public/cpp/perfetto/fuchsia_perfetto_producer_connector_unittest.cc
Insertions: 2, Deletions: 2.
The diff is too large to show. Please review the diff.
```
Convert to UNSAFE_TODO in services
This is an automated #cleanup patch using the [Script] below.
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.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |