forked from pool/e2fsprogs
9c3893cce8
(bsc#1038194) - Add references from old package: Fix resize2fs-Fix-32-64-bit-overflow-when-multiplying-by-blocks-cl.patch in 1.42.12 (bsc#1009532) Fix libext2fs-fix-potential-buffer-overflow-in-closefs.patch in 1.42.13 (bsc#918346 CVE-2015-1572) Fix libext2fs-avoid-buffer-overflow-if-s_first_meta_bg-i.patch in 1.42.12 (bsc#915402 CVE-2015-0247) Got specfile fix through Factory (bsc#960273) Fix libext2fs-don-t-ignore-fsync-errors.patch in 1.43.4 (bsc#1038194) Rev SUSE:SLE-12-SP4:GA/2 Md5 9ff012c479fd9bfdaa0270cb441edbaf 2018-06-08 14:13:20 rtsvetkov None
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From 876d9b0c8eac2fd80dd62bfa1b09adea62aa08f3 Mon Sep 17 00:00:00 2001
|
|
From: Theodore Ts'o <tytso@mit.edu>
|
|
Date: Wed, 3 Jan 2018 01:32:02 -0500
|
|
Subject: [PATCH] libext2fs: fix build failure in swapfs.c on big-endian
|
|
systems
|
|
References: bsc#1077420
|
|
|
|
Addresses-Debian-Bug: #886119
|
|
|
|
Reported-by: James Clarke <jrtc27@debian.org>
|
|
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
Acked-by: Jan Kara <jack@suse.cz>
|
|
---
|
|
lib/ext2fs/swapfs.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
|
|
index 6e5cff97e505..b13dc4229225 100644
|
|
--- a/lib/ext2fs/swapfs.c
|
|
+++ b/lib/ext2fs/swapfs.c
|
|
@@ -19,6 +19,7 @@
|
|
|
|
#include "ext2_fs.h"
|
|
#include "ext2fs.h"
|
|
+#include "ext2fsP.h"
|
|
#include <ext2fs/ext2_ext_attr.h>
|
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
@@ -358,7 +359,7 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
|
|
if (inode_includes(inode_size, i_projid))
|
|
t->i_projid = ext2fs_swab16(f->i_projid);
|
|
/* catch new static fields added after i_projid */
|
|
- EXT2FS_BUILD_BUG_ON(sizeof(ext2_inode_large) != 160);
|
|
+ EXT2FS_BUILD_BUG_ON(sizeof(struct ext2_inode_large) != 160);
|
|
|
|
i = sizeof(struct ext2_inode) + extra_isize + sizeof(__u32);
|
|
if (bufsize < (int) i)
|
|
--
|
|
2.13.6
|
|
|