summaryrefslogtreecommitdiff
path: root/core/Query.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 16:13:35 -0300
committerGabriel Schneider <[email protected]>2026-11-23 16:28:34 -0300
commit2aa977777fca277eba401ac0c1ebbd6e9049d6f9 (patch)
treed2180e8d48ddf0b182397962cd72745b2d5835f7 /core/Query.zig
parent8ee2339f0224000c48d23eca94e31d7c59fedd4c (diff)
downloadpardes-2aa977777fca277eba401ac0c1ebbd6e9049d6f9.tar.gz
pardes-2aa977777fca277eba401ac0c1ebbd6e9049d6f9.zip
the tape's reader holds every record to its type: a unit a client replays (from its session, a far link, a recorded tape) is cut, flipped or hostile, and each read of it is checked, the client diverging (and joining again) in words where it panicked: a record's kind byte (core/tape.zig Tape.next, peek, nextRecord, describe: `@fromBackingInt`: `invalid enum value` at tape.zig:458 on main, the fuzz's client side), a payload cut short after its head (replayUnit, finishInput: `next().?`), a host record under two bytes (finishInput, expectHost: new Tape.hostId), an input's tag (apply), and in core/walk.zig's decode, the tape's decoder for every type: an enum's bytes (new walk.enumFrom: its number held to a name, as std.enums.fromInt holds it), a run of enums copied whole (`named`), a slice's count held to the bytes left before it is allocated (`least`, the fewest bytes encode writes for a type, derived from the same walk); the one generic decoder checked, every type the tape carries is, and every type added; a user could hit it only by a corrupt or hostile peer
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Query.zig')
0 files changed, 0 insertions, 0 deletions