Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2017 19:53:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 216117] clang 4.0.0 crashes trying to build lld on i386
Message-ID:  <bug-216117-29464-5dqulSwWxq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216117-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216117-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216117

--- Comment #6 from commit-hook@freebsd.org ---
A commit references this bug:

Author: dim
Date: Mon Jan 16 19:53:19 UTC 2017
New revision: 312308
URL: https://svnweb.freebsd.org/changeset/base/312308

Log:
  Pull in r292133 from upstream llvm trunk (by Hal Finkel):

    Fix use-after-free bug in AffectedValueCallbackVH::allUsesReplacedWith

    When transferring affected values in the cache from an old value,
    identified by the value of the current callback, to the specified new
    value we might need to insert a new entry into the DenseMap which
    constitutes the cache. Doing so might delete the current callback
    object. Move the copying logic into a new function, a member of the
    assumption cache itself, so that we don't run into UB should the
    callback handle itself be removed mid-copy.

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

  This should fix crashes when building lld (as part of the llvmXY ports).

  Reported by:  jbeich
  PR:           216117

Changes:
  projects/clang400-import/contrib/llvm/include/llvm/Analysis/AssumptionCac=
he.h
  projects/clang400-import/contrib/llvm/lib/Analysis/AssumptionCache.cpp

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216117-29464-5dqulSwWxq>