Re: possible unintended integer truncation in fs/ext4/extents.c:get_implied_cluster_alloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux