News for hackers. Stuff that matters.
Re:“People who implement new and improved interfaces always ... by mikeash on Friday September 11, 2015 @12:41PM (#10204681)
Returning an error is fine, but the code that calls the function doesn't check for errors, and just blindly applies the return value as an offset to a pointer. When the function returns -ERANGE to indicate that the value was too large for the requested data type, entertaining things will occur.

There are no comments on this comment yet.