Re: [PATCH] squash! reftable: reading/writing blocks

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

 



On Thu, Sep 30, 2021 at 2:24 PM Carlo Marcelo Arenas Belón
<carenas@xxxxxxxxx> wrote:
> Avoid a possible infinite loop in platforms where size_t > long
> by using instead the required type and checking for overflow
> before doubling.

Thanks for your attention to detail. Folded in.

I think the loop is rather hypothetical, though: the block size is
limited to 2²⁴, so I think you can´t make blocks that large.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux