diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-12-04 06:35:56 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-12-04 06:35:56 +0100 |
commit | b9390ba93676c4b1e87e218af5e7e4bb596312ac (patch) | |
tree | f694a007f883e7234e2f698b3f508a9cf1f9a600 /stdlib/Makefile | |
parent | d776a59723b22192d33557d2127e13cb31905382 (diff) | |
download | glibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.zip glibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.tar.gz glibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.tar.bz2 |
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 e4d8117b82065dc72e8df80097360e7c05a349b9
("stdlib: Avoid another self-comparison in qsort").
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdlib/Makefile')
-rw-r--r-- | stdlib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile index 6194d1c..0b154e5 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -216,6 +216,7 @@ tests := \ tst-qsort2 \ tst-qsort3 \ tst-qsort5 \ + tst-qsort6 \ tst-quick_exit \ tst-rand48 \ tst-rand48-2 \ |