[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5699) lutil_str2bin fails for certain hex values

Full_Name: Pierangelo Masarati
Version: HEAD
OS: Linux x86
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: ando

When passed "'E31ED28BA060532F'H", lutil_str2bin() fails because calls strtol()
passing it the first 8 hex digits ("E31ED28B"), which is larger than the largest
long it can handle.  Not sure about how to fix it (probably, it should use
strtoul instead).