jam1garner / binrw

A Rust crate for helping parse and rebuild binary data using ✨macro magic✨.
https://binrw.rs
MIT License
585 stars 35 forks source link

Handle out-of-range `count` directives without panicking #198

Closed csnover closed 1 year ago

csnover commented 1 year ago

This supersedes #194 by making it so that, between binrw and myself, I am the only one who will ever continue to panic at big numbers.

Since I have not been in this code in a while I am PRing this since I probably made some silly mistake or overcomplicated something.