[all-commits] [llvm/llvm-project] 512568: [llvm-dwp] Fix a possible out of bound access.

Igor Kudrin via All-commits all-commits at lists.llvm.org
Mon Apr 6 00:32:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5125685e915afe4d12961f5b3394918d04d49783
      https://github.com/llvm/llvm-project/commit/5125685e915afe4d12961f5b3394918d04d49783
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    A llvm/test/tools/llvm-dwp/X86/unknown-section-id.s
    M llvm/tools/llvm-dwp/llvm-dwp.cpp

  Log Message:
  -----------
  [llvm-dwp] Fix a possible out of bound access.

llvm-dwp did not check section identifiers read from input files.
In the case of an unexpected identifier, the calculated index for
Contributions[] pointed outside the array. This fix avoids the issue
by skipping unsupported identifiers.

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




More information about the All-commits mailing list