vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
613 stars 70 forks source link

Synchronize maximum copy bits count with the fieldset limit #53

Closed SwiftPengu closed 4 years ago

SwiftPengu commented 4 years ago

Synchronize maximum copy bits count with the fieldset limit the config. This assertion prevented me from rewriting sets of 256 raw bits due to the 128-bit limit.

The size limit when yielding an instance of RawBits is 256 bits, so imho it makes sense to synchronize with that value.

vstinner commented 4 years ago

Merged, thanks!