Convert to UNSAFE_TODO in third_party/blink
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 |
| Commit-Queue | +1 |
Hi @mk...@chromium.org
Could you please take a look:
**Manual change:**
I [reverted 3 files](https://chromium-review.googlesource.com/c/chromium/src/+/7131920/3..6), because there was too many UNSAFE_TODO(...). It is preferable to keep the file-level opt-out in this case IMO.
| 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. |
| Code-Review | +1 |
UNSAFE_TODO(a2[k]) * y2;As an aside, it would be nice if there was a way to wrap a broader expression in `UNSAFE_TODO`, as this is somewhat verbose and makes the code harder to understand.
That said, perhaps that's the point to some extent?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
UNSAFE_TODO(a2[k]) * y2;As an aside, it would be nice if there was a way to wrap a broader expression in `UNSAFE_TODO`, as this is somewhat verbose and makes the code harder to understand.
That said, perhaps that's the point to some extent?
Both!
The macro is enclosing the expression with pragma before and after.
It is possible to enclose the whole instruction as opposed to individual issues.
That's not something I can automate, because clang issue multiple range, but I can do it manually here if you want.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/platform/audio/biquad.cc
Insertions: 2, Deletions: 3.
The diff is too large to show. Please review the diff.
```
Convert to UNSAFE_TODO in third_party/blink
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. |