Merge pull request #6232 from LemonBoy/fix-readall

std: Don't trust stat() size in readAllAlloc fns
This commit is contained in:
Andrew Kelley
2020-09-06 19:19:57 -04:00
committed by GitHub
7 changed files with 62 additions and 22 deletions

View File

@@ -626,6 +626,7 @@ pub const Scope = struct {
module.gpa,
self.sub_file_path,
std.math.maxInt(u32),
null,
1,
0,
);
@@ -723,6 +724,7 @@ pub const Scope = struct {
module.gpa,
self.sub_file_path,
std.math.maxInt(u32),
null,
1,
0,
);