Skip to content

Commit f60c24c

Browse files
authored
Merge pull request #19155 from ianic/tar_max_file_size
std.tar: error on insufficient buffers provided to iterator
2 parents 26e895e + c974e19 commit f60c24c

File tree

5 files changed

+633
-449
lines changed

5 files changed

+633
-449
lines changed

lib/docs/wasm/main.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ fn unpack_inner(tar_bytes: []u8) !void {
767767
});
768768
while (try it.next()) |tar_file| {
769769
switch (tar_file.kind) {
770-
.normal => {
770+
.file => {
771771
if (tar_file.size == 0 and tar_file.name.len == 0) break;
772772
if (std.mem.endsWith(u8, tar_file.name, ".zig")) {
773773
log.debug("found file: '{s}'", .{tar_file.name});
@@ -790,7 +790,6 @@ fn unpack_inner(tar_bytes: []u8) !void {
790790
tar_file.name,
791791
});
792792
}
793-
try tar_file.skip();
794793
},
795794
else => continue,
796795
}

0 commit comments

Comments
 (0)