summarylogtreecommitdiffstats
path: root/03-Fix-segfault-extent-free.patch
diff options
context:
space:
mode:
authorsteffeno2023-08-05 22:19:22 +0200
committersteffeno2023-08-05 22:19:22 +0200
commitbf0d39f44938bb65906494110f39e44aece99c90 (patch)
tree9396054eb50ad18d5ce01bc16b7eb5266a76d4a5 /03-Fix-segfault-extent-free.patch
downloadaur-ext4magic-patch-extent-free.tar.gz
initial commit
Diffstat (limited to '03-Fix-segfault-extent-free.patch')
-rw-r--r--03-Fix-segfault-extent-free.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/03-Fix-segfault-extent-free.patch b/03-Fix-segfault-extent-free.patch
new file mode 100644
index 000000000000..b85bfcc23623
--- /dev/null
+++ b/03-Fix-segfault-extent-free.patch
@@ -0,0 +1,15 @@
+See [0], [1]
+[0] https://bugs.archlinux.org/task/79120?project=1&string=ext4magic
+[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854497#10
+
+--- a/src/block.c
++++ b/src/block.c
+@@ -699,7 +699,7 @@ errcode_t local_block_iterate3(ext2_fils
+ mark_extent_block(fs, (char*) inode.i_block);
+
+ extent_errout:
+- local_ext2fs_extent_free(handle);
++ ext2fs_extent_free(handle);
+ ret |= BLOCK_ERROR | BLOCK_ABORT;
+ goto errout;
+ }