Commit 986c294
committed
fix(file): exclude skipped entries from caps and reject multi-archive decompress
- Resolve safe (sanitized) zip entries up front so unsafe/skipped entries
no longer count toward the per-entry and total uncompressed-size caps (cursor)
- Reject decompress input that resolves to more than one archive with a clear
error instead of silently extracting only the first (cursor)1 parent aae3d46 commit 986c294
2 files changed
Lines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
749 | 763 | | |
750 | 764 | | |
751 | 765 | | |
752 | | - | |
| 766 | + | |
753 | 767 | | |
754 | 768 | | |
755 | 769 | | |
| |||
760 | 774 | | |
761 | 775 | | |
762 | 776 | | |
763 | | - | |
764 | 777 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
| 778 | + | |
773 | 779 | | |
774 | 780 | | |
775 | 781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1110 | 1114 | | |
1111 | | - | |
| 1115 | + | |
1112 | 1116 | | |
1113 | 1117 | | |
1114 | 1118 | | |
1115 | 1119 | | |
1116 | | - | |
1117 | | - | |
| 1120 | + | |
| 1121 | + | |
1118 | 1122 | | |
1119 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1120 | 1127 | | |
1121 | 1128 | | |
1122 | | - | |
| 1129 | + | |
1123 | 1130 | | |
1124 | 1131 | | |
1125 | 1132 | | |
| |||
0 commit comments