macho: temp hash buffer has to live as long as pread error resolution
This commit is contained in:
@@ -289,12 +289,12 @@ pub fn writeAdhocSignature(
|
||||
// Calculate hash for each page (in file) and write it to the buffer
|
||||
var wg: WaitGroup = .{};
|
||||
{
|
||||
const buffer = try gpa.alloc(u8, self.page_size * total_pages);
|
||||
defer gpa.free(buffer);
|
||||
|
||||
const results = try gpa.alloc(fs.File.PReadError!usize, total_pages);
|
||||
defer gpa.free(results);
|
||||
{
|
||||
const buffer = try gpa.alloc(u8, self.page_size * total_pages);
|
||||
defer gpa.free(buffer);
|
||||
|
||||
wg.reset();
|
||||
defer wg.wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user