[PATCH 0/2] stdlib: Fix and verify heapsort for two-element cases
Andreas K. Huettel
dilfridge@gentoo.org
Wed Jan 17 20:06:03 GMT 2024
Am Dienstag, 16. Januar 2024, 03:16:55 CET schrieb Kuan-Wei Chiu:
> Ensure correct behavior in cases with exactly two elements, and malloc
> fails when allocating a buffer. Additionally, adjust the testing
> approach to validate the correctness of heapsort for such cases.
>
> Thanks,
> Kuan-Wei
>
> Kuan-Wei Chiu (2):
> stdlib: Fix heapsort for cases with exactly two elements
> stdlib: Verify heapsort for two-element cases
>
> stdlib/qsort.c | 2 +-
> stdlib/tst-qsort4.c | 4 +---
> 2 files changed, 2 insertions(+), 4 deletions(-)
OK
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20240117/f467969a/attachment.sig>
More information about the Libc-alpha
mailing list