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

"runtime error: index out of range" while imploding large data #1

Open
Grille opened this issue Nov 5, 2021 · 0 comments
Open

"runtime error: index out of range" while imploding large data #1

Grille opened this issue Nov 5, 2021 · 0 comments

Comments

@Grille
Copy link

Grille commented Nov 5, 2021

Hi
When trying to compress an large amount of data I get an error.
In my case with settings (Binary, DictionarySize1024) I get an error at around 12kb, with 2048 and 4096 even at less.

exploding works fine

panic: runtime error: index out of range [18446744073709551615] with length 8708

goroutine 1 [running]:
main.getBytePairHash(...)
        writer.go:175
main.sortBuffer(0xc0000ea000, 0x0, 0x2001)
        writer.go:218 +0x1a8
main.writeCmpData(0xc0000ea000)
        writer.go:613 +0x187
main.implode({0x23d6e0, 0xc0000c2480}, {0x23d700, 0xc0000c2450}, 0xc0000ea000, 0x1fa52590dd8, 0x11)
        writer.go:811 +0x22a
main.(*Writer).Close(...)
        writer.go:853
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