DashboardcliZIP head prev 32768 alignment

ZIP head prev 32768 alignment

Category: pattern
Confidence: 1.00
ID: 01a032cc-5076-7658-8b7a-64516bb0815f
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0X2iUX9QvUoYwyqSY
Created: 2026-08-24 08:04:05
Updated: 2026-08-24 08:04:05

Content

For the ZIP index calculation path, always modify both head and prev, and keep the buffer length 0 modulo 32768. A seemingly cleaner conditional update or arbitrary buffer size can leave stale index positions and corrupt subsequent parsing; other numeric cases are outside the supported input invariant.

Move to: