Re: [PATCH] stack: occasional crash due to uninitialized variable

2025-03-06 Thread David Marchand
On Tue, Feb 4, 2025 at 2:24 AM Andre Muezerie wrote: > > Variable "success" was not being initialized and there was a code > path where the last do/while loop in __rte_stack_lf_pop_elems > looked at the value of this variable before it was set to any. > > Compiling with msvc resulted in stack_lf_a

Re: [PATCH] stack: occasional crash due to uninitialized variable

2025-02-04 Thread David Marchand
On Tue, Feb 4, 2025 at 2:24 AM Andre Muezerie wrote: > > Variable "success" was not being initialized and there was a code > path where the last do/while loop in __rte_stack_lf_pop_elems > looked at the value of this variable before it was set to any. > > Compiling with msvc resulted in stack_lf_a

[PATCH] stack: occasional crash due to uninitialized variable

2025-02-03 Thread Andre Muezerie
Variable "success" was not being initialized and there was a code path where the last do/while loop in __rte_stack_lf_pop_elems looked at the value of this variable before it was set to any. Compiling with msvc resulted in stack_lf_autotest sometimes crashing. The fix is to initialize the variabl