[all-commits] [llvm/llvm-project] 67220c: [ORC] Fix serialization / deserialization of defau...

lhames via All-commits all-commits at lists.llvm.org
Mon Jul 18 20:39:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67220c2ad72e32cea18bb261366e64fe5de75b16
      https://github.com/llvm/llvm-project/commit/67220c2ad72e32cea18bb261366e64fe5de75b16
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
    M llvm/unittests/ExecutionEngine/Orc/SimplePackedSerializationTest.cpp

  Log Message:
  -----------
  [ORC] Fix serialization / deserialization of default-constructed ArrayRef<char>.

Avoids a zero-length memcpy from a null src, which caused errors on some of the
sanitizer bots. Also uses null when deserializing an empty ArrayRef (rather
than pointing to a zero length range in the middle of the input buffer).




More information about the All-commits mailing list