Re: [PATCH] last-modified: fix bug caused by inproper initialized memory
- From
Anders Kaseorg <andersk@mit.edu>
- Date
- Nov 28, 2025, 22:20 UTC
- Message-ID
- <5699f2cc-5157-441e-af98-4d8df492ec72@mit.edu>
- In-Reply-To
- <20251128205514.GA605489@coredump.intra.peff.net>
On 11/28/25 12:55, Jeff King wrote:
> In the same vein, probably using "sizeof(lm->scratch->words)" is > better than "sizeof(eword_t)". But again, I find it an unlikely > detail for us to catch under the hood.
As words is a pointer, you must have meant sizeof *lm->scratch->words or sizeof lm->scratch->words[0].
Anders