This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Integer overflow in wcswidth


On 09/19/2016 02:02 PM, Andreas Schwab wrote:
On Sep 19 2016, Florian Weimer <fweimer@redhat.com> wrote:

But in the end, this interface is just broken (we can't even report and
EOVERFLOW error).

POSIX leaves us the backdoor of returning -1 though.

-1 does not seem to be a generic error result to me.

We could also return INT_MAX.  But that's equally wrong.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]