about summary refs log tree commit diff
path: root/stdlib/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-12-04 06:35:56 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-12-04 06:35:56 +0100
commitb9390ba93676c4b1e87e218af5e7e4bb596312ac (patch)
treef694a007f883e7234e2f698b3f508a9cf1f9a600 /stdlib/Makefile
parentd776a59723b22192d33557d2127e13cb31905382 (diff)
downloadglibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.tar.gz
glibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.tar.xz
glibc-b9390ba93676c4b1e87e218af5e7e4bb596312ac.zip
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/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 6194d1cb22..0b154e57c5 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 \