[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20131220051256.GD23508@thunk.org>
Date: Fri, 20 Dec 2013 00:12:56 -0500
From: Theodore Ts'o <tytso@....edu>
To: PaX Team <pageexec@...email.hu>
Cc: linux-ext4@...r.kernel.org, re.emese@...il.com
Subject: Re: possible unintended integer truncation in
fs/ext4/extents.c:get_implied_cluster_alloc
On Thu, Dec 19, 2013 at 11:59:20PM -0500, Theodore Ts'o wrote:
> So C's integer promotion and sign extension rules are very obscure and
> confusing, and that may be a reason why we should put in an explicit
> cast, but it looks like the right thing is happening here. Here's a
> test program --- what am I missing?
Never mind, I see the problem. It works if cr is a short, but not if
it is an unsigned int. Sigh...
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists