Integer overflow in wcswidth
Florian Weimer
fweimer@redhat.com
Mon Sep 19 15:26:00 GMT 2016
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
More information about the Libc-alpha
mailing list