URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9ef70fce3c13d37527466ee67a47fa9bfd65f9fa
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
9ef70fc by Guy Harris (guy@xxxxxxxxxxxx):
Return the maximum or minimum value for ERANGE.
That way, for signed values, the caller knows whether ERANGE means "too
large" or "too small"; this is analogous to what the C routines return.
Change-Id: Ifc1fc4723733be606487093f8aa77ae2d89d2c40
Reviewed-on: https://code.wireshark.org/review/17512
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 97103d4 Check for signs in unsigned numbers and fail if we see one.
adds 9ef70fc Return the maximum or minimum value for ERANGE.
Summary of changes:
wsutil/strtoi.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 57 insertions(+), 5 deletions(-)