summaryrefslogtreecommitdiff
path: root/pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-01-29 14:01:15 -0800
committerMichael Forney <mforney@mforney.org>2021-01-29 14:01:15 -0800
commitd545550d4d2a92b6dfdfa3a20e4509c72e0ba9f3 (patch)
tree75747751453027b4a3f8d298822f7f068e472e38 /pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch
parent5a2f2d11116a20beffa1b278c4b56c07833f7b1d (diff)
e2fsprogs: Update to 1.45.7
Diffstat (limited to 'pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch')
-rw-r--r--pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch b/pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch
deleted file mode 100644
index 5e026447..00000000
--- a/pkg/e2fsprogs/patch/0001-libext2fs-avoid-pointer-arithmetic-on-void.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 01d05e00694f0488236ac766a5fcfa37a17bec64 Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Sat, 4 Apr 2020 21:38:29 -0700
-Subject: [PATCH] libext2fs: avoid pointer arithmetic on `void *`
-
-The pointer operand to the binary `+` operator must be to a complete
-object type.
-
-Signed-off-by: Michael Forney <mforney@mforney.org>
----
- lib/ext2fs/csum.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/ext2fs/csum.c b/lib/ext2fs/csum.c
-index a7172580..54b53a3c 100644
---- a/lib/ext2fs/csum.c
-+++ b/lib/ext2fs/csum.c
-@@ -274,7 +274,7 @@ static errcode_t __get_dirent_tail(ext2_filsys fs,
- rec_len = translate(d->rec_len);
- }
-
-- if ((void *)d > ((void *)dirent + fs->blocksize))
-+ if ((char *)d > ((char *)dirent + fs->blocksize))
- return EXT2_ET_DIR_CORRUPTED;
- if (d != top)
- return EXT2_ET_DIR_NO_SPACE_FOR_CSUM;
---
-2.26.0
-