> From: Stephen Hemminger [mailto:[email protected]]
> Sent: Saturday, 1 August 2026 17.00
> 
> On Sat,  1 Aug 2026 06:53:58 +0000
> Morten Brørup <[email protected]> wrote:
> 
> > +__rte_diagnostic_push
> > +#pragma GCC diagnostic ignored "-Warray-bounds"
> > +#pragma GCC diagnostic ignored "-Wstringop-overread"
> 
> Ugh, no please don't fight the compiler.
> 
> > +   if (!(s->flags & RTE_STACK_F_PILE)) {
> > +           ret = rte_stack_push(s, obj_table, 2 * STACK_SIZE);
> > +           if (ret != 0) {
> > +                   printf("[%s():%u] Excess objects push succeeded\n",
> > +                          __func__, __LINE__);
> > +                   goto fail_test;
> > +           }
> >     }

Yeah. It's also difficult to sneak those pragmas through the CI.
I'll try to rework the test case instead, so the compiler cannot see that we're 
overflowing the stack.

Reply via email to