Repository navigation
Commit ce147bf
fix(server): hash ACP registry archives while streaming
Reading the downloaded archive back to verify its SHA-256 loaded up to
1 GiB into memory. Hash each chunk as it streams with @noble/hashes,
since Effect's Crypto only digests a whole buffer.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 0197144 commit ce147bf
3 files changed
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
1412 | 1413 | | |
1413 | 1414 | | |
1414 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1415 | 1419 | | |
1416 | 1420 | | |
1417 | 1421 | | |
| |||
1424 | 1428 | | |
1425 | 1429 | | |
1426 | 1430 | | |
| 1431 | + | |
1427 | 1432 | | |
1428 | 1433 | | |
1429 | 1434 | | |
| |||
1448 | 1453 | | |
1449 | 1454 | | |
1450 | 1455 | | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
| 1456 | + | |
1462 | 1457 | | |
1463 | 1458 | | |
1464 | 1459 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments