• Anton Bikineev's avatar
    cppgc: Fix undefined behaviour when decompressing · 4f49b8a2
    Anton Bikineev authored
    Shifting negative integrals is undefined behavior. The CL simply
    switches to uint64_t when decompressing, which anyway results in
    sign-extension (in standard terms, integral promotion must preserve the
    value and the sign of the source operand).
    
    The CL doesn't have any functional changes, the generated code is the
    same. It only fixes the ubsan report.
    
    Bug: chromium:1325007
    Change-Id: I491a87b84d4e98b0225f76825dac2f9e85f168d1
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3736442
    Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
    Auto-Submit: Anton Bikineev <bikineev@chromium.org>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#81452}
    4f49b8a2
Name
Last commit
Last update
..
internal Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
allocation.h Loading commit data...
common.h Loading commit data...
cross-thread-persistent.h Loading commit data...
custom-space.h Loading commit data...
default-platform.h Loading commit data...
ephemeron-pair.h Loading commit data...
explicit-management.h Loading commit data...
garbage-collected.h Loading commit data...
heap-consistency.h Loading commit data...
heap-handle.h Loading commit data...
heap-state.h Loading commit data...
heap-statistics.h Loading commit data...
heap.h Loading commit data...
liveness-broker.h Loading commit data...
macros.h Loading commit data...
member.h Loading commit data...
name-provider.h Loading commit data...
object-size-trait.h Loading commit data...
persistent.h Loading commit data...
platform.h Loading commit data...
prefinalizer.h Loading commit data...
process-heap-statistics.h Loading commit data...
sentinel-pointer.h Loading commit data...
source-location.h Loading commit data...
testing.h Loading commit data...
trace-trait.h Loading commit data...
type-traits.h Loading commit data...
visitor.h Loading commit data...