Skip to content

122 nicp cdk icstabletable btree 初期化不具合の修正 - #123

Merged
dumblepy merged 2 commits into
mainfrom
122-nicp_cdk-icstabletable-btree-初期化不具合の修正
Aug 27, 2026

Hidden character warning

The head ref may contain hidden characters: "122-nicp_cdk-icstabletable-btree-\u521d\u671f\u5316\u4e0d\u5177\u5408\u306e\u4fee\u6b63"
Merged

dumblepy merged 2 commits into
mainfrom
122-nicp_cdk-icstabletable-btree-初期化不具合の修正

Conversation

@dumblepy

Copy link
Copy Markdown
Owner

No description provided.

空の IcStableTable への初回 []= が allocator の
"alignment must be a power of two" で失敗する不具合を修正。

- スーパーブロック magic を "SBT2" から 3 バイト "SBT" (+reserved) に変更
- ensureValidNodeSize ヘルパーを追加し、新規初期化・readHeader・newNode の
  3 箇所で node size (256 以上の 2 のべき乗) を検証
- 不正なスーパーブロックは allocator 呼び出し前に明示エラーにする
- 初回 insert / reopen 後の継続 insert / node size 0 の拒否 /
  オブジェクト型 value の reopen 復元のテストを追加
- docs/en/stable_memory.md の layout 記述とブランチ設計メモを更新
@dumblepy dumblepy linked an issue Aug 27, 2026 that may be closed by this pull request
@dumblepy
dumblepy merged commit 1214db8 into main Aug 27, 2026
1 check passed
@dumblepy
dumblepy deleted the 122-nicp_cdk-icstabletable-btree-初期化不具合の修正 branch August 27, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nicp_cdk IcStableTable B+Tree 初期化不具合の修正

1 participant