[all-commits] [llvm/llvm-project] 1dcbe0: [Binary] Further improve malformed input handling ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Jun 24 06:59:07 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1dcbe03c32c197324e840717bb8dbf0b925ca433
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

  Changed paths:
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
    M llvm/include/llvm/Object/OffloadBinary.h
    M llvm/lib/Object/OffloadBinary.cpp

  Log Message:
  [Binary] Further improve malformed input handling for the OffloadBinary

This patch adds some new sanity checks to make sure that the sizes of
the offsets are within the bounds of the file or what is expected by the
binary. This also improves the error handling of the version structure
to be built into the binary itself so we can change it easier.

More information about the All-commits mailing list