Skip to content

Overlapping arrays in copy #71

Open

Description

@yannick

sometimes my app crashes when unpacking huge amounts of msgpack packets.
unfortunately i can't reproduce it. i get the following trace:

object.Error@(0): Overlapping arrays in copy: 4065435 byte(s) overlap of 4843686
----------------
5   filters                             0x0000000109721731 _d_arraycopy + 149
6   filters                             0x00000001096f4fa5 @safe void msgpack.StreamingUnpacker.__mixin12.feed(const(ubyte[])) + 153

why is the buffer array copied?

Activity

  1. repeatedly commented on Sep 23, 2015

    @repeatedly
    Member

    That's weird. msgpack-d checks array overlap in this line >

    unparsed = area.overlap(unparsed) ? unparsed.dup : unparsed;

    Hmm... how about removing overlap check and returns always dupped array in above line?

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

      Development

      No branches or pull requests

      Issue actions