trifectatechfoundation / zlib-rs

A safer zlib
zlib License
139 stars 15 forks source link

add `COPY_` mode #206

Open folkertdev opened 1 month ago

folkertdev commented 1 month ago

this does not seem required

        case COPY_:
            state->mode = COPY;
            Z_FALLTHROUGH;

        case COPY:

but similar cases in the past did run into incorrect behavior when the input/output runs out at an inconvenient moment