Skip to content

"ValueError: invalid parameters" for some codes. #40

Description

@erezt2

I was able to reproduce this bug with many different codes, here is one example.

b=bchlib.BCH(2, m=5, swap_bits=True)
w=b'\x00\x00\xa0'# random wordd=b'\xe0\x03'# the string you get from encodingb.decode(data=w, recv_ecc=d)
^^^^^^^^ValueError: invalidparameters

this also happens for swap_bits = False.

using python 3.10.8. version 2.1.3 of library.

For some codes, such as t=10,m=7 this doesn't happen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions