summaryrefslogtreecommitdiff
path: root/internal/eventloop_security_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 22:19:57 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 22:19:57 +0300
commitdb7c18b976c6bb87ca3dbbfdf436c1945aab3289 (patch)
treed0b4990f76c1b64e9a8f0841b97b4dde9d7c8894 /internal/eventloop_security_test.go
parentc5ef17c2b728eae057fae43db020d1023e5cc634 (diff)
test(generate): lock in pwritev WRITE byte-count classification
Audit of pwritev(2) confirmed the existing classification is correct: pwritev returns the number of bytes written, so its exit is WRITE_CLASSIFIED (matching write/pwrite64/writev/pwritev2), fd is at args[0] (KindFd), and it lives in the FS family. The read-side sibling preadv stays READ_CLASSIFIED. No implementation changes were needed. Add TestClassifyPwritevWriteByteCount as a lock-in test mirroring the prior pwritev2/pwrite64 audits, with a preadv off-by-one contrast guard and transfer/unclassified negative checks across the whole p/readv/writev family so any stray reclassification trips the test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/eventloop_security_test.go')
0 files changed, 0 insertions, 0 deletions