fix(apple): reject empty caches and bind digests to resolution traces

This commit is contained in:
morluto
2026-10-08 16:06:51 +08:00
parent d5921db039
commit e1597a6f3d
3 changed files with 17 additions and 9 deletions
@@ -187,6 +187,7 @@ const readHeader = async (file: CacheFile): Promise<ParsedHeader> => {
if (
mappingOffset < 0x20 ||
mappingOffset > MAX_HEADER_BYTES ||
mappingCount === 0 ||
mappingCount > MAX_MAPPINGS
)
throw new ArtifactReaderFailure(