Thread (100 messages) flat view 100 messages, 4 authors, 2022-01-13

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

From: Han-Wen Nienhuys <hidden>
Date: 2021-10-07 16:34:45

On Thu, Sep 30, 2021 at 2:24 PM Carlo Marcelo Arenas Belón
[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help