summarylogtreecommitdiffstats
path: root/03-Fix-segfault-extent-free.patch
diff options
context:
space:
mode:
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;
+ }