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
bs_cmp (from options.c) is passed to qsort to compare bssplit structures. But it does not satisfy qsort symmetry requirement i.e.
bs_cmp(a, b) != - bs_cmp(b, a)
This triggers UB at runtime and may cause qsort to fail to sort the array.
The fix should be as simple as replacing the current code with
return (int)bsp1->perc - (int)->bsp2->perc;
The text was updated successfully, but these errors were encountered:
bs_cmp (from options.c) is passed to qsort to compare bssplit structures. But it does not satisfy qsort symmetry requirement i.e.
bs_cmp(a, b) != - bs_cmp(b, a)
This triggers UB at runtime and may cause qsort to fail to sort the array.
The fix should be as simple as replacing the current code with
The text was updated successfully, but these errors were encountered: