On Sun, Jul 31, 2022 at 03:31:25AM +0200, Jason A. Donenfeld wrote: > + batch_len = min_t(size_t, sizeof(state->batch) - state->pos, len); > + if (batch_len) { > + memcpy_and_zero(buffer, state->batch, batch_len); Should be state->batch + state->pos, of course. > + state->pos += batch_len; > + buffer += batch_len; > + len -= batch_len; > + }