Skip to content

Crashing due to invalid index #2

@berlincount

Description

@berlincount

Hello,

first of all: thanks for the software!

It has a problem, though - on some specific string-length combinations it seems to run into problems:

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

goroutine 43 [running]:
github.com/cloud-maker-ai/go-unique-string.murmurHash64({0xc0004bac00?, 0xc0004baba0?, 0x52?})
        github.com/cloud-maker-ai/[email protected]/unique_string.go:56 +0x2e6
github.com/cloud-maker-ai/go-unique-string.GenerateUniqueString({0xc0004bca60?, 0xc00049dde8?, 0xc0004bca40?})
        github.com/cloud-maker-ai/[email protected]/unique_string.go:113 +0x3a

... and I don't seem to be the first person running into it, as there's already a fix submitted per #1 ...

could I kindly ask to verify, test, and apply it? not sure whether anyone else but @metaxasa can do so ...

Thank you very much in advance!

count

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