Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.69k stars 1.67k forks source link

`BitPolynom.__init__` does not allow bytes type #2385

Closed marinelay closed 2 months ago

marinelay commented 3 months ago

It is the same issue as #2384 that occurs in other method BitPolynom.__init__:

https://github.com/Gallopsled/pwntools/blob/5981c7290dd5190733c1f2e9ccf08633869f8b31/pwnlib/util/crc/__init__.py#L33-L80

This code handles that n is bytes, but it always raise the type error at line 80. The way to fix it will be the same as #2384.

Thank you.