| author | |
| committer | |
| log | fc310ee7bcbe7b96cc46f993277cc3933e4a0fda |
| tree | bf7521f7c77e092f56e477b979055c3cef7971cd |
| parent | 4bca5faca60df971712e538758315a0e0afe89a0 |
2 files changed, 6 insertions(+), 3 deletions(-)
lib/std/Build/Cache.zig+5-1| ... | ... | @@ -690,7 +690,11 @@ pub const Manifest = struct { |
| 690 | 690 | const size = iter.next() orelse return error.InvalidFormat; |
| 691 | 691 | const inode = iter.next() orelse return error.InvalidFormat; |
| 692 | 692 | const mtime_nsec_str = iter.next() orelse return error.InvalidFormat; |
| 693 | const digest_str = iter.next() orelse return error.InvalidFormat; | |
| 693 | const digest_str = iter.next() orelse { | |
| 694 | std.debug.print("contents:\n{s}\n", .{file_contents}); | |
| 695 | @breakpoint(); | |
| 696 | return error.InvalidFormat; | |
| 697 | }; | |
| 694 | 698 | const prefix_str = iter.next() orelse return error.InvalidFormat; |
| 695 | 699 | const file_path = iter.rest(); |
| 696 | 700 |
lib/std/io/Reader.zig+1-2| ... | ... | @@ -266,10 +266,9 @@ pub fn appendRemaining( |
| 266 | 266 | error.EndOfStream => break, |
| 267 | 267 | error.ReadFailed => return error.ReadFailed, |
| 268 | 268 | }; |
| 269 | if (n >= dest.len) { | |
| 269 | if (n > dest.len) { | |
| 270 | 270 | r.end = n - dest.len; |
| 271 | 271 | list.items.len += dest.len; |
| 272 | if (n == dest.len) return; | |
| 273 | 272 | return error.StreamTooLong; |
| 274 | 273 | } |
| 275 | 274 | list.items.len += n; |