4 ms·
I've seen a few programs that misbehave due to a comparison function that doesn't have all of the necessary properties. Maybe what's notable from a security pe
by MathMonkeyMan 3y ago
I've seen a few programs that misbehave due to a comparison function that doesn't have all of the necessary properties.
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.