At Tue, 22 Nov 2022 16:04:56 -0600, Justin Pryzby <pryzby@telsasoft.com> wrote in
> On Fri, Nov 18, 2022 at 05:25:37PM +0900, Kyotaro Horiguchi wrote:
> > + while (*p == 0 && p < pe)
> > + p++;
>
> The bug reported by Andres/cfbot/ubsan is here.
>
> Fixed in attached.
Ur..ou..
- while (*p == 0 && p < pe)
+ while (p < pe && *p == 0)
It was an off-by-one error. Thanks!
> I didn't try to patch the test case to output the failing stderr, but
> that might be good.
I have made use of Cluster::wait_for_log(), but still find_in_log() is
there since it is used to check if a message that should not be logged
is not logged.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center