You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
out_azure_kusto: fix SIGSEGV in nested mk_list_foreach_safe loops
The ingest_all_chunks() function had nested mk_list_foreach_safe loops
that both used the same 'tmp' variable as the iterator. The macro stores
the 'next' pointer in its second argument for safe iteration during list
modification. When the inner loop overwrote 'tmp', it corrupted the outer
loop's iteration state, causing undefined behavior and a SIGSEGV crash
when processing buffered backlog data on startup.
Fix: Add a dedicated 'f_tmp' variable for the inner loop to prevent
iterator corruption.
Also adds a regression test (buffering_backlog) that exercises the
buffering/backlog restart code path to guard against future regressions.
Signed-off-by: Yash Ananth <[email protected]>
0 commit comments