It's unlikely that strbuf_reset_length() will fail