by goalieca · 2y ago · 0 comments
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?
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.