It's not new. They are just passing in an invalid parameter. If you pass random parameters into a function like memcpy it will do bad stuff too.
C APIs were not all designed to be safe to call and can commonly crash or introduce a vulnerability.
C APIs were not all designed to be safe to call and can commonly crash or introduce a vulnerability.
So what I mean is: how much performance are we giving up with this "fix" for qsort?
Unfortunately, qsort is really slow and sometimes barely usable.
Maybe what's notable from a security perspective is that here's a contract about the behavior of an algorithm (comparison function) as opposed to the value of an argument (null pointer, negative, bigger than N, etc.).
Still qualifies as passing an invalid parameter.