The string and bytes decode functions (py_dec_string() and rxrpc_dec_bytes())
need to advance the extraction cursor after extracting so the data doesn't get
reused.
Signed-off-by: David Howells <dhowells@redhat.com>
count = needed;
memcpy(call->bulk_item + call->bulk_index, call->data_cursor, count);
call->bulk_index += count;
+ call->data_cursor += count;
if (call->bulk_index >= call->bulk_count)
return;
}
count = needed;
memcpy(PyUnicode_DATA(str) + call->bulk_index, call->data_cursor, count);
call->bulk_index += count;
+ call->data_cursor += count;
rxrpc_dec_align(call);
if (call->bulk_count <= call->bulk_index)
return;