Skip to content
Commit b9390ba9 authored by Florian Weimer's avatar Florian Weimer
Browse files

stdlib: Fix array bounds protection in insertion sort phase of qsort



The previous check did not do anything because tmp_ptr already
points before run_ptr due to the way it is initialized.

Fixes commit e4d8117b
("stdlib: Avoid another self-comparison in qsort").

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent d776a597
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment