[all-commits] [llvm/llvm-project] 189428: [Profile] Handle invalid profile data

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jun 10 16:12:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 189428c8fc2465c25efbf4f0bb73e26fecf150ce
      https://github.com/llvm/llvm-project/commit/189428c8fc2465c25efbf4f0bb73e26fecf150ce
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-06-10 (Thu, 10 Jun 2021)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M compiler-rt/lib/profile/InstrProfilingMerge.c
    A compiler-rt/test/profile/Linux/corrupted-profile.c
    M compiler-rt/test/profile/Linux/instrprof-merge-vp.c
    M compiler-rt/test/profile/instrprof-merge.c
    M compiler-rt/test/profile/instrprof-without-libc.c

  Log Message:
  -----------
  [Profile] Handle invalid profile data

This mostly follows LLVM's InstrProfReader.cpp error handling.
Previously, attempting to merge corrupted profile data would result in
crashes. See https://crbug.com/1216811#c4.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D104050




More information about the All-commits mailing list