Re: [PATCH] rbd: fix integer overflow in rbd_header_from_disk()

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

 



On Apr 18, 2012, at 2:47 PM, Alex Elder wrote:

> It may not matter in practice, but I prefer to be very
> careful.  As long as you're going out of your way to
> avoid overflow might as well make sure it works on all
> architectures in the process.

I agree.  Probably a cleaner way is to define SIZE_MAX
or use KMALLOC_MAX_SIZE.

- xi
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux