commit | c5e2b0313cbc4f2d930d061cf31cff9800047a22 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Sat Oct 28 15:53:15 2023 |
committer | Crashpad LUCI CQ <crashpad-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 30 19:33:13 2023 |
tree | 689916c259bfd0ad1364879b69630cfcf3962a93 | |
parent | 41f6ad560f41cd43ee989897704457b595483f44 [diff] |
Fix UB when saving an StringAnnotation memcpy and memchr on NULL, 0 is UB due to a C language bug. Instead, use the C++ functions, which do not have this bug. Bug: chromium:1394755 Change-Id: I82023aa038c53905f9867c635b26f3b26d9994f5 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4987148 Commit-Queue: David Benjamin <davidben@chromium.org> Reviewed-by: Robert Sesek <rsesek@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.