Re: [RFC] coccinelle: detect struct strbuf passed by value
- From
Deveshi Dwivedi <deveshigurgaon@gmail.com>
- Date
- Mar 15, 2026, 07:29 UTC
- Message-ID
- <CAG7UgETB7uPvWuZL08i48JvVgefJAoUqjt96C0dPNV_Qpj8jfw@mail.gmail.com>
- In-Reply-To
- <20260315025508.GA926820@coredump.intra.peff.net>
Show 6 quoted lines
> So the only question to me is whether people who hit the coccinelle > suggestion might be confused by the patch output, since it doesn't carry > any rationale. But I would rather catch the problem and risk confusion > then have it go unnoticed. > > -Peff
Thanks for the review. I agree that the patch output may be a bit confusing, but it still seems useful to flag these cases. I will send a follow-up patch adding the rule and fixing the stash case.
Thanks, Deveshi