[PATCH] [BZ 20628] make mallinfo saturating
DJ Delorie
dj@redhat.com
Tue Sep 27 19:17:00 GMT 2016
I considered that, but given that a 64-bit address space wraps "int" 4
billion times, I doubt allowing unsigned conversions adds much value. I
chose INT_MAX because it's still "biggest" of the valid ABI-compliant
return values. The ABI is broken anyway on 64-bit size_t systems, I
think the only real value in this type of patch is making sure the user
knows the value is "wrong", rather than trying to return useful data.
But yeah, just as easy to do it either way. I'll get some popcorn and
let you regulars argue it out :-)
More information about the Libc-alpha
mailing list