[LLVMdev] UBSan detects misaligned memory accesses in llvm-profdata and llvm-cov

Alexey Samsonov vonosmas at gmail.com
Fri Sep 12 13:48:13 PDT 2014


Hi!

UBSan bootstrap bot fails with error report on 5 llvm-cov and llvm-profdata
lit-tests:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/4526/steps/check-llvm%20ubsan/logs/stdio
Also see http://llvm.org/bugs/show_bug.cgi?id=20815.

The error reports look vaild: in general it's incorrect to load uint64_t,
or even structures like "RawHeader" or "CoverageMappingTURecord" from a
random address. Also, if you parse files stored on disk, it would certainly
help to know endianness of data in these files and, e.g., use routines from
Support/Endian.h. Can you take a look at this?

-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140912/0837b9e8/attachment.html>


More information about the llvm-dev mailing list