Re: [PATCH 6/7] [D] libiberty: Fixes for decoding numbers.

2017-04-25 Thread Jeff Law
On 04/15/2017 09:27 AM, Iain Buclaw wrote: This fixes two main problems found in the use of strtol(). First that it returns `0' if nothing is decoded, and none of the callers checked whether nothing was consumed. Second that it just returns `LONG_MAX' on overflow. Rather than updating each

[PATCH 6/7] [D] libiberty: Fixes for decoding numbers.

2017-04-15 Thread Iain Buclaw
This fixes two main problems found in the use of strtol(). First that it returns `0' if nothing is decoded, and none of the callers checked whether nothing was consumed. Second that it just returns `LONG_MAX' on overflow. Rather than updating each individual call site, have solved [1] by