[all-commits] [llvm/llvm-project] b9826c: [CGP] Ensure address scaled offset is representabl...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri May 29 04:26:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b9826c10866997a8869a7356a37aade759338b08
      https://github.com/llvm/llvm-project/commit/b9826c10866997a8869a7356a37aade759338b08
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/CodeGen/X86/pr46004.ll

  Log Message:
  -----------
  [CGP] Ensure address scaled offset is representable as int64_t

AddressingModeMatcher::matchScaledValue was calling getSExtValue for a constant before ensuring that we can actually represent the value as int64_t

Fixes OSSFuzz#22723 which is a followup to rGc479052a74b2 (PR46004 / OSSFuzz#22357)




More information about the All-commits mailing list