Commit ff0354e
committed
fix: address all PR review findings from bots
- HIGH: Fix multi-step patch chain corruption by alternating between
two intermediate files (A/B) instead of reading and writing the same
file. Prevents mmap invalidation for 3+ step chains.
- MEDIUM: Use versioned nightly tag (nightly-<version>) instead of
rolling :nightly tag for threshold calculation in resolveNightlyDelta.
Ensures the 60% threshold reflects the target version's binary size.
- LOW: Add missing 'await' on applyPatchChain return in
resolveNightlyDelta to preserve stack traces on rejection.
- LOW: Remove redundant chmodSync from applyPatchChain — the caller
(downloadBinaryToTemp) already sets 0o755 for both delta and full
download paths.
- CodeQL: Replace includes('api.github.com') with
startsWith('https://api.github.com/') in test mocks to prevent
incomplete URL substring sanitization.1 parent d215dd4 commit ff0354e
File tree
3 files changed
+48
-38
lines changed- src/lib
- test
- isolated
- lib
3 files changed
+48
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
625 | 628 | | |
626 | | - | |
| 629 | + | |
| 630 | + | |
627 | 631 | | |
628 | 632 | | |
629 | 633 | | |
| |||
642 | 646 | | |
643 | 647 | | |
644 | 648 | | |
645 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
646 | 661 | | |
647 | 662 | | |
648 | 663 | | |
649 | 664 | | |
650 | 665 | | |
651 | 666 | | |
652 | | - | |
653 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
654 | 674 | | |
655 | 675 | | |
656 | 676 | | |
| |||
666 | 686 | | |
667 | 687 | | |
668 | 688 | | |
669 | | - | |
670 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
671 | 693 | | |
672 | 694 | | |
673 | 695 | | |
674 | 696 | | |
675 | 697 | | |
676 | 698 | | |
677 | 699 | | |
678 | | - | |
| 700 | + | |
| 701 | + | |
679 | 702 | | |
680 | 703 | | |
681 | 704 | | |
682 | | - | |
683 | 705 | | |
684 | | - | |
| 706 | + | |
685 | 707 | | |
686 | 708 | | |
687 | 709 | | |
688 | | - | |
| 710 | + | |
689 | 711 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
| 712 | + | |
696 | 713 | | |
697 | 714 | | |
698 | 715 | | |
| |||
702 | 719 | | |
703 | 720 | | |
704 | 721 | | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | 722 | | |
711 | 723 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
| 918 | + | |
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
1374 | | - | |
| 1374 | + | |
| 1375 | + | |
1375 | 1376 | | |
1376 | 1377 | | |
1377 | 1378 | | |
| |||
1405 | 1406 | | |
1406 | 1407 | | |
1407 | 1408 | | |
1408 | | - | |
1409 | | - | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1410 | 1413 | | |
1411 | 1414 | | |
1412 | 1415 | | |
1413 | 1416 | | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
| 1417 | + | |
1419 | 1418 | | |
1420 | | - | |
| 1419 | + | |
1421 | 1420 | | |
1422 | 1421 | | |
1423 | 1422 | | |
| |||
1443 | 1442 | | |
1444 | 1443 | | |
1445 | 1444 | | |
1446 | | - | |
1447 | 1445 | | |
1448 | 1446 | | |
1449 | 1447 | | |
| |||
0 commit comments