[PATCH] D124524: [demangler] Avoid nullptr UB

Nathan Sidwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 04:20:01 PDT 2022


urnathan added a comment.

alternatively could punt on the whole nullptr thing and just special case the zero-length memcpy and test comparison.  thoughts?
(For amusement value, I do know MIPS' memcpy routines segfault on `memcpy (dst, nullptr, 0)`)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124524/new/

https://reviews.llvm.org/D124524



More information about the llvm-commits mailing list