Skip to content

Crash when compressing large list of negative numbers #3

Description

@fredjekrueger

Dear,

when compressing a large list (500.000 items) of only negative numbers, the compression algorithm crashes with an out of bounds exception. Simple sample program:

static void Main(string[] args)
{
    var intCompressor = new IntCompressor();

    var list = new List<int>();
    for(int i = 0; i < 500000; i++)
    {
        list.Add(-i);
    }

    var z = intCompressor.compress(list.ToArray());
}

Activity

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