• Jakob Kummerow's avatar
    [bigint] Fix GC unsafety issue · 2ce122e3
    Jakob Kummerow authored
    There must not be both an allocating function call and a handle deref
    in the list of arguments to a call. Depending on the evaluation order
    that the C++ compiler chooses, the deref could happen before the call
    and the resulting raw pointer be invalidated by the GC.
    
    Bug: chromium:818424
    Change-Id: I525947252ff9d0b048a5bf82c2976e0acce739be
    Reviewed-on: https://chromium-review.googlesource.com/949782Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51746}
    2ce122e3
bigint.cc 87.6 KB