[all-commits] [llvm/llvm-project] a7d482: [profile] Fix buffer overrun when parsing %c in fi...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Wed Feb 24 14:50:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7d4826101aba8594bf5308c6a3e40c44608bca5
      https://github.com/llvm/llvm-project/commit/a7d4826101aba8594bf5308c6a3e40c44608bca5
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingFile.c
    A compiler-rt/test/profile/ContinuousSyncMode/get-filename.c

  Log Message:
  -----------
  [profile] Fix buffer overrun when parsing %c in filename string

Fix a buffer overrun that can occur when parsing '%c' at the end of a
filename pattern string.

rdar://74571261

Reviewed By: kastiglione

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




More information about the All-commits mailing list