From: Sami Liedes <sami.liedes@iki.fi>
To: linux-ext4@vger.kernel.org
Subject: [PATCH 0/8] e2fsprogs: Fix various cases of undefined behavior
Date: Fri, 14 Dec 2012 00:04:02 +0200 [thread overview]
Message-ID: <20121213220402.GH9713@sli.dy.fi> (raw)
This set of patches fixes a number of issues causing undefined
behavior. These were caught by running the test suite after
compiling e2fsprogs with the Clang compiler and -fsanitize=undefined.
Sami Liedes (8):
lib/blkid/list.h: Fix undefined behavior in list_entry() macro
lib/ext2fs/rbtree.h: Fix container_of() undefined behavior
e2fsck/pass1.c: Fix undefined behavior in check_blocks()
lib/ext2fs/block.c: Fix undefined behavior in block_iterate_tind()
e2fsck/revoke.c: Fix undefined behavior in hash()
lib/ext2fs/kernel-list.h: Fix undefined behavior in list_entry()
macro
lib/ext2fs/qcow2.h: Fix #defined 1<<63 values to be unsigned.
e2fsck/jfs_user.h: Fix b_data alignment in struct buffer_head
e2fsck/jfs_user.h | 2 +-
e2fsck/pass1.c | 2 +-
e2fsck/revoke.c | 2 +-
lib/blkid/list.h | 5 +++--
lib/ext2fs/block.c | 2 +-
lib/ext2fs/kernel-list.h | 6 ++++--
lib/ext2fs/qcow2.h | 4 ++--
lib/ext2fs/rbtree.h | 2 ++
misc/e2image.c | 2 +-
9 files changed, 16 insertions(+), 11 deletions(-)
--
1.7.10.4
reply other threads:[~2012-12-13 22:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121213220402.GH9713@sli.dy.fi \
--to=sami.liedes@iki.fi \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.