skia2/include
John Stiles ef7c45a0fa Revert "Disable Control-Flow Integrity in SkTArray when casting buffer to T*."
This reverts commit 0b1384de5a.

Reason for revert: visible impact on performance: http://screen/4N7DNCQNSgtzzBo http://go/crb/1330618

Original change's description:
> Disable Control-Flow Integrity in SkTArray when casting buffer to T*.
>
> We disable Control-Flow Integrity sanitization (go/cfi) when updating
> the item-array buffer. CFI flags this code as dangerous because we are
> casting `buffer` to a T* while the buffer's contents might still be
> uninitialized memory. When T has a vtable, this is especially risky
> because we could hypothetically access a virtual method on fItemArray
> and jump to an unpredictable location in memory. Of course, SkTArray
> won't actually use fItemArray in this way, and we don't want to
> construct a T before the user requests one. There's no real risk here,
> so disable CFI when doing these casts.
>
> Change-Id: I5708053339f4a600b12c841fcd38880f9932f7d6
> Bug: skia:13339
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/542643
> Commit-Queue: Ben Wagner <bungeman@google.com>
> Auto-Submit: John Stiles <johnstiles@google.com>
> Reviewed-by: Ben Wagner <bungeman@google.com>

Bug: skia:13339
Change-Id: I9f39100fc4a03359fa7712b0a8d8cbe3bc7de625
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545365
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-05-31 18:50:22 +00:00
..
android [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
c [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
codec [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
config [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
core [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
docs [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
effects Constify the uniform value SkDatas in runtime effects 2022-05-31 16:59:10 +00:00
encode [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
gpu [bazel] Get GPU examples working 2022-05-31 14:14:54 +00:00
pathops [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
ports [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
private Revert "Disable Control-Flow Integrity in SkTArray when casting buffer to T*." 2022-05-31 18:50:22 +00:00
sksl Remove pending-error support from the ErrorReporter. 2022-05-31 15:46:10 +00:00
svg [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
third_party [bazel] Get GPU examples working 2022-05-31 14:14:54 +00:00
utils [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
BUILD.bazel [bazel] Add in hierarchical filegroup Bazel rules. 2022-05-31 14:14:54 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00