This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit 05ada9b
authored
Fix bug in ZipArchiveEntry data descriptor (#37601)
* Prevent data corruption (can't drag drop files using external zip tools) when data descriptor bit is turned on in a seekable file that is being updated.
* Add unit test to verify data descriptor is off after updating a zip file that was created with an unseekable stream.1 parent bffb2a1 commit 05ada9b
2 files changed
Lines changed: 53 additions & 1 deletion
File tree
- src/System.IO.Compression
- src/System/IO/Compression
- tests/ZipArchive
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
| 827 | + | |
826 | 828 | | |
827 | 829 | | |
828 | 830 | | |
| |||
1020 | 1022 | | |
1021 | 1023 | | |
1022 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1023 | 1028 | | |
1024 | 1029 | | |
1025 | 1030 | | |
| |||
1231 | 1236 | | |
1232 | 1237 | | |
1233 | 1238 | | |
1234 | | - | |
1235 | 1239 | | |
1236 | 1240 | | |
1237 | 1241 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
152 | 186 | | |
153 | 187 | | |
154 | 188 | | |
155 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
156 | 204 | | |
157 | 205 | | |
158 | 206 | | |
0 commit comments