CodeHealth: Replace std::unique_ptr with base::HeapArray
Code Health project. Using std::unique_ptr<T[]> does not automatically preserve the size of the allocation. This forces a need for ad-hoc bounds checks, which are easy to get wrong, leading to bugs which attackers use to compromise our users.
Bug: 40285824
Change-Id: Ie876156e400d0f35a95ff0628d52d307c60d91b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5593670
Reviewed-by: Adam Langley <agl@chromium.org>
Reviewed-by: Matt Mueller <mattm@chromium.org>
Commit-Queue: Mathijs Affourtit <maffourtit@google.com>
Cr-Commit-Position: refs/heads/main@{#1309616}
NOKEYCHECK=True
GitOrigin-RevId: 71f4871081d8c1a11e900ee164259120fa11d796
1 file changed