This commit is contained in:
2025-11-08 23:44:37 +01:00
parent f335c6f329
commit 88735d1595
2 changed files with 22 additions and 8 deletions
+1
View File
@@ -632,6 +632,7 @@ process_client_create_chunk(ChunkServer *state, int conn_idx, ByteView msg)
if (mem == NULL)
return send_error(&state->tcp, conn_idx, false, MESSAGE_TYPE_CREATE_CHUNK_ERROR, S("Out of memory"));
assert(data.len <= chunk_size);
assert(target_off + data.len <= chunk_size);
memset(mem, 0, chunk_size);