DashboardclipeekHeader ZIP scan boundaries

peekHeader ZIP scan boundaries

Category: gotcha
Confidence: 1.00
ID: 01a08a9b-9b29-7d6a-9c7f-24b8333aa025
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0vrldJoMSuN7C6ZoX
Created: 2026-09-10 09:17:28
Updated: 2026-09-10 09:17:28

Content

Trap: returning PeekResult.format = "unknown" or recursively scanning nested ZIPs looks thorough because every object gets a format and scanZips suggests recursive discovery. Fix: peekHeader() returns null for unrecognized formats, and ZIP contents are scanned only one level regardless of scanZips; recursion changes the established DIF scan boundary and can amplify untrusted archive work.

Move to: