mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-01 14:56:05 +00:00
Fix segfault while patching dtb
This commit is contained in:
@@ -72,8 +72,10 @@ int patch_verity(void **buf, uint32_t *size, int patch) {
|
||||
if (patch)
|
||||
patched[write] = src[read];
|
||||
}
|
||||
free(*buf);
|
||||
*buf = patched;
|
||||
if (patch) {
|
||||
free(*buf);
|
||||
*buf = patched;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user