commit | 7049d966b5b24bcd4ce0a27312a366592019f1e8 | [log] [tgz] |
---|---|---|
author | Avi Drissman <avi@chromium.org> | Fri Dec 08 21:12:43 2023 |
committer | Crashpad LUCI CQ <crashpad-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 08 22:15:17 2023 |
tree | 67ca112bbba8535a0e6d6c9017209517f9d5bdc4 | |
parent | 5fc60aeb3b57824b607488fadfd2d5b99f24984d [diff] |
Fix improper use of bit_cast bit_cast should never be used on pointers, as it doesn't avoid UB and can lose qualifiers. Fortunately, the only use of bit_cast on a pointer was to cast nullptr into a function pointer, and because nullptr will implicitly behave as any kind of pointer, that cast isn't needed. Bug: none Change-Id: I3ad79b36b7fb5ab53d4b4b6dfc82dea883ec8b53 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5106728 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org>
Crashpad is a crash-reporting system.
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.