...
 
Commits (5)
2018-02-05, iucode_tool v2.3.1
* iucode_tool: fix filter by revision parser on ILP32
2018-01-28, iucode_tool v2.3
* iucode_tool(8): document changes to ucode filtering
......
......@@ -2,8 +2,8 @@
iucode_tool - Intel® 64 and IA-32 processor microcode tool
Version 2.3
January 28th, 2018
Version 2.3.1
Frebruary 5th, 2018
https://gitlab.com/iucode-tool
......
......@@ -17,7 +17,7 @@ dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
AC_PREREQ([2.69])
AC_INIT([iucode_tool], [2.3],
AC_INIT([iucode_tool], [2.3.1],
[https://gitlab.com/iucode-tool/iucode-tool/issues],
[iucode-tool],
[https://gitlab.com/iucode-tool/iucode-tool/wikis/home])
......@@ -92,7 +92,7 @@ AC_TYPE_UINT8_T
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([memset strcasecmp strdup strerror strrchr strtoul timegm])
AC_CHECK_FUNCS([memset strcasecmp strdup strerror strrchr strtoul strtoull timegm])
# Allow GNU Argp as a standalone lib, as an alternative to glibc
AC_SEARCH_LIBS([argp_parse], [argp], [],
......
iucode-tool (2.3.1-1) unstable; urgency=medium
* New upstream bugfix release:
+ iucode_tool: fix filter by revision parser on i686
-- Henrique de Moraes Holschuh <hmh@debian.org> Mon, 05 Feb 2018 22:42:31 -0200
iucode-tool (2.3-1) unstable; urgency=medium
* New upstream release:
......
......@@ -268,17 +268,26 @@ static int parse_u32(const char *nptr, char **endptr, int base,
return 0;
}
/* Do the right thing on ILP32... */
#if ULONG_MAX > UINT32_MAX
typedef long int l_int_t;
#define strtol_l strtol
#else
typedef long long int l_int_t;
#define strtol_l strtoll
#endif
static int parse_s32e(const char *nptr, char **endptr, int base,
int32_t * const res)
{
long int l;
l_int_t l; /* ILP32 requires long long */
assert(nptr);
assert(endptr);
assert(res);
errno = 0;
l = strtol(nptr, endptr, base);
l = strtol_l(nptr, endptr, base); /* strotl or strotll */
if (errno || nptr == *endptr)
return errno ? errno : EINVAL;
if (l > UINT32_MAX || l < INT32_MIN)
......@@ -293,6 +302,8 @@ static int parse_s32e(const char *nptr, char **endptr, int base,
return 0;
}
#undef strtol_l
static int is_valid_fd(const int fd)
{
return fcntl(fd, F_GETFD) != -1 || errno != EBADF;
......