<div dir="ltr">Hi!<div><br></div><div>UBSan bootstrap bot fails with error report on 5 llvm-cov and llvm-profdata lit-tests:</div><div><a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/4526/steps/check-llvm%20ubsan/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/4526/steps/check-llvm%20ubsan/logs/stdio</a></div><div>Also seeĀ <a href="http://llvm.org/bugs/show_bug.cgi?id=20815">http://llvm.org/bugs/show_bug.cgi?id=20815</a>.</div><div><br></div><div>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?</div><div><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</div></div>