diff -Nru iucode-tool-2.3/ChangeLog iucode-tool-2.3.1/ChangeLog --- iucode-tool-2.3/ChangeLog 2018-01-28 14:59:32.000000000 +0000 +++ iucode-tool-2.3.1/ChangeLog 2018-02-05 21:58:28.000000000 +0000 @@ -1,3 +1,6 @@ +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 diff -Nru iucode-tool-2.3/configure iucode-tool-2.3.1/configure --- iucode-tool-2.3/configure 2018-01-28 15:01:27.000000000 +0000 +++ iucode-tool-2.3.1/configure 2018-02-05 22:03:28.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for iucode_tool 2.3. +# Generated by GNU Autoconf 2.69 for iucode_tool 2.3.1. # # Report bugs to . # @@ -582,8 +582,8 @@ # Identity of this package. PACKAGE_NAME='iucode_tool' PACKAGE_TARNAME='iucode-tool' -PACKAGE_VERSION='2.3' -PACKAGE_STRING='iucode_tool 2.3' +PACKAGE_VERSION='2.3.1' +PACKAGE_STRING='iucode_tool 2.3.1' PACKAGE_BUGREPORT='https://gitlab.com/iucode-tool/iucode-tool/issues' PACKAGE_URL='https://gitlab.com/iucode-tool/iucode-tool/wikis/home' @@ -1299,7 +1299,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures iucode_tool 2.3 to adapt to many kinds of systems. +\`configure' configures iucode_tool 2.3.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1370,7 +1370,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of iucode_tool 2.3:";; + short | recursive ) echo "Configuration of iucode_tool 2.3.1:";; esac cat <<\_ACEOF @@ -1482,7 +1482,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -iucode_tool configure 2.3 +iucode_tool configure 2.3.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2037,7 +2037,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by iucode_tool $as_me 2.3, which was +It was created by iucode_tool $as_me 2.3.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2974,7 +2974,7 @@ # Define the identity of the package. PACKAGE='iucode-tool' - VERSION='2.3' + VERSION='2.3.1' cat >>confdefs.h <<_ACEOF @@ -6043,7 +6043,7 @@ fi -for ac_func in memset strcasecmp strdup strerror strrchr strtoul timegm +for ac_func in memset strcasecmp strdup strerror strrchr strtoul strtoull timegm do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -7441,7 +7441,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by iucode_tool $as_me 2.3, which was +This file was extended by iucode_tool $as_me 2.3.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7508,7 +7508,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -iucode_tool config.status 2.3 +iucode_tool config.status 2.3.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -Nru iucode-tool-2.3/configure.ac iucode-tool-2.3.1/configure.ac --- iucode-tool-2.3/configure.ac 2018-01-28 14:59:32.000000000 +0000 +++ iucode-tool-2.3.1/configure.ac 2018-02-05 21:57:06.000000000 +0000 @@ -17,7 +17,7 @@ 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_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], [], diff -Nru iucode-tool-2.3/debian/changelog iucode-tool-2.3.1/debian/changelog --- iucode-tool-2.3/debian/changelog 2018-01-28 15:46:14.000000000 +0000 +++ iucode-tool-2.3.1/debian/changelog 2018-02-06 00:42:31.000000000 +0000 @@ -1,3 +1,10 @@ +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 Mon, 05 Feb 2018 22:42:31 -0200 + iucode-tool (2.3-1) unstable; urgency=medium * New upstream release: diff -Nru iucode-tool-2.3/iucode_tool.c iucode-tool-2.3.1/iucode_tool.c --- iucode-tool-2.3/iucode_tool.c 2018-01-28 14:59:12.000000000 +0000 +++ iucode-tool-2.3.1/iucode_tool.c 2018-02-05 21:56:56.000000000 +0000 @@ -268,17 +268,26 @@ 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 @@ return 0; } +#undef strtol_l + static int is_valid_fd(const int fd) { return fcntl(fd, F_GETFD) != -1 || errno != EBADF; diff -Nru iucode-tool-2.3/iucode_tool_config.h.in iucode-tool-2.3.1/iucode_tool_config.h.in --- iucode-tool-2.3/iucode_tool_config.h.in 2018-01-28 15:01:27.000000000 +0000 +++ iucode-tool-2.3.1/iucode_tool_config.h.in 2018-02-05 22:03:28.000000000 +0000 @@ -70,6 +70,9 @@ /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL +/* Define to 1 if you have the `strtoull' function. */ +#undef HAVE_STRTOULL + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H diff -Nru iucode-tool-2.3/README iucode-tool-2.3.1/README --- iucode-tool-2.3/README 2018-01-28 14:59:32.000000000 +0000 +++ iucode-tool-2.3.1/README 2018-02-05 21:57:40.000000000 +0000 @@ -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