]> sourceware.org Git - glibc.git/commit
stdlib: Fix array bounds protection in insertion sort phase of qsort
authorFlorian Weimer <fweimer@redhat.com>
Mon, 4 Dec 2023 05:35:56 +0000 (06:35 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 4 Dec 2023 05:35:56 +0000 (06:35 +0100)
commitb9390ba93676c4b1e87e218af5e7e4bb596312ac
treef694a007f883e7234e2f698b3f508a9cf1f9a600
parentd776a59723b22192d33557d2127e13cb31905382
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>
stdlib/Makefile
stdlib/qsort.c
stdlib/tst-qsort6.c [new file with mode: 0644]
This page took 0.041674 seconds and 5 git commands to generate.