[all-commits] [llvm/llvm-project] 7f22ce: [gcov] Don't skip leading zeros when reading a string

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun May 10 10:18:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f22ceeaae74911d97773644a1058659f329887e
      https://github.com/llvm/llvm-project/commit/7f22ceeaae74911d97773644a1058659f329887e
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-05-10 (Sun, 10 May 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h

  Log Message:
  -----------
  [gcov] Don't skip leading zeros when reading a string

Even a 2003 version of gcov_read_string does not have the behavior
described by rL204881. The wrong impression might come from
libclang_rt.profile (GCDAProfiling.c)'s corrupted output (since the
initial import rL144865). Note, the corrupted output crashes gcov.




More information about the All-commits mailing list