cultcache-ts: previewPayload reads through decodeBoundedPayload (the inspector's one walk site); the map32 and array32 counts are pinned above 65535
The wide-count test announced map32 as 32770 pairs, which fits in 16 bits, so a count read as its low 16 bits survived. map32 now announces 65537 pairs and array32 65540 children; both low halves close the container early. Builds: yes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0451e4afc1
commit
3b2af2b232
2 changed files with 8 additions and 4 deletions
|
|
@ -295,8 +295,7 @@ function decodeBoundedPayload(payload: Uint8Array): unknown {
|
|||
|
||||
function previewPayload(payload: Uint8Array): Pick<InspectedRecord, "payloadPreview" | "payloadDecodeError"> {
|
||||
try {
|
||||
checkPayloadDepth(payload);
|
||||
return { payloadPreview: toJsonSafe(decode(payload)) };
|
||||
return { payloadPreview: toJsonSafe(decodeBoundedPayload(payload)) };
|
||||
} catch (error) {
|
||||
return {
|
||||
payloadPreview: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue