Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when compressing large list of negative numbers #3

Open
fredjekrueger opened this issue Jul 4, 2022 · 0 comments
Open

Crash when compressing large list of negative numbers #3

fredjekrueger opened this issue Jul 4, 2022 · 0 comments

Comments

@fredjekrueger
Copy link

fredjekrueger commented Jul 4, 2022

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());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant