Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a UBSan warning in ObfuscatedFileUtilMemoryDelegate
Due to a C language bug, memcpy is UB with NULL, 0. The C++ types avoid this bug and are slightly more bounds-aware. Bug: 1394755 Change-Id: Id9a152727914bff099d95f350040f02927c58961 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4986624 Auto-Submit: David Benjamin <[email protected]> Commit-Queue: Austin Sullivan <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1217115}
- Loading branch information