Re:Algorithmic complexity attacks and libc qsort()
by mzs on Wednesday June 11, 2014 @12:18PM
(#7878797)
I just heard about smoothsort: http://code.google.com/p/combsortcs2p-and-other-sorting-algo...
Also, nice little write-up, thanks. I also dig the extracted sort implementations you dug-out: https://github.com/matslina/qsort
Re:Algorithmic complexity attacks and libc qsort()
by tedunangst on Wednesday June 11, 2014 @12:51PM
(#7878987)
All BSD derived libcs contains mergesort(), and heapsort() as well.
Re:Algorithmic complexity attacks and libc qsort()
by mzs on Wednesday June 11, 2014 @01:40PM
(#7879283)
True, but parent meant used in the qsort and qsort_r implementations.
Re:Algorithmic complexity attacks and libc qsort()
by tedunangst on Wednesday June 11, 2014 @03:31PM
(#7879967)
Oh, of course. reading fail.
Glibc is the only libc I'm aware of that implements mergesort. It still falls back to quicksort for large inputs though.