Skip to content

liballoc broken w/o jemalloc #16687

Closed
@pnkfelix

Description

@pnkfelix
Member

In alloc::heap::reallocate there is this line:

    ptr::copy_memory(new_ptr, ptr as *const u8, old_size);

It is completely busted when new_size < old_size

Activity

added a commit that references this issue on Aug 23, 2014
b1f7d3a
added a commit that references this issue on Aug 24, 2014

auto merge of #16706 : pnkfelix/rust/fsk-fix-nojem-realloc, r=thestinger

16d538c
added a commit that references this issue on Mar 3, 2024

Auto merge of rust-lang#16687 - kilpkonn:master, r=Veykril

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @pnkfelix

      Issue actions

        liballoc broken w/o jemalloc · Issue #16687 · rust-lang/rust