3 ms·
Glibc’s one does and it caused a security vulnerability: https://www.qualys.com/2024/01/30/qsort.txt https://www.qualys.com/2024/01/30/qsort.txt TBH it was als
by broken_broken_ 1y ago
Glibc’s one does and it caused a security vulnerability:
https://www.qualys.com/2024/01/30/qsort.txt https://www.qualys.com/2024/01/30/qsort.txt
TBH it was also news to me, I discovered it randomly while browsing vulnerabilities…
Printf also allocates, and a ton of other stdlib functions as well.
- uecker 1y agoI now remember that I saw this before. But somehow I do not feel like it is a language problem when a standard library implementation allocates a temporary buffer using malloc under the hood as performance optimization.