lkml.org 
[lkml]   [2009]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Squashfs: Fix oops when reading fsfuzzer corrupted filesystems
On Wed, 04 Feb 2009 03:07:48 +0000
Phillip Lougher <phillip@lougher.demon.co.uk> wrote:

> - ERROR("sb_bread failed reading block 0x%llx\n", cur_index);
> + ERROR("squashfs_read_data failed to read block 0x%llx\n", index);

`index' has type u64. You don't know what C type is used to implement
u64, hence it must be cast to a known type before it can be passed to
printk.

In this case we use `unsigned long long'.

The code as it stands will generate compiler warnings on some
architectures.

One day, maybe before we all die, we will fix this. Then we get to
spend another five years weeding out all the casts we added.



\
 
 \ /
  Last update: 2009-02-05 21:27    [W:0.122 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site