Re: [PATCH 02/20] packfile.c: prevent overflow in `load_idx()` From: Junio C Hamano <hidden> Date: 2023-07-13 16:14:12 Phillip Wood [off-list ref] writes: quoted- p->crc_offset = 8 + 4 * 256 + nr * hashsz; + p->crc_offset = st_add(8 + 4 * 256, st_mult(nr, hashsz)); p->crc_offset is a uint32_t so we're still prone to truncation here Good eyes. Thanks.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help