docs: scope deletion-authority wording to bank folder + guard growing-read NUL terminator

This commit is contained in:
2026-07-29 13:06:15 -04:00
parent 75aa93f913
commit 0c39a716a5
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -82,6 +82,7 @@ GrowingExtStateRead readProjExtStateGrowing(ReadFn&& read) {
result.status = GrowingExtStateRead::Status::Absent;
return result;
}
buf[static_cast<std::size_t>(cap) - 1] = '\0'; // defensive: guard against a read() that fills the buffer without honoring NUL-termination within cap
std::string s(buf.data());
if (static_cast<int>(s.size()) + 1 < cap) {
result.status = GrowingExtStateRead::Status::Complete;