This patch will upgrade Sudo version 1.8.14 to Sudo version 1.8.14 patchlevel 1. To apply: $ cd sudo-1.8.14 $ patch -p1 < sudo-1.8.14p1.patch diff -urNa sudo-1.8.14/ChangeLog sudo-1.8.14p1/ChangeLog --- sudo-1.8.14/ChangeLog Wed Jul 15 12:45:08 2015 +++ sudo-1.8.14p1/ChangeLog Fri Jul 17 20:09:00 2015 @@ -1,3 +1,14 @@ +2015-07-17 Todd C. Miller + + * NEWS, configure, configure.ac: + Sudo 1.8.14p1 + [973705806759] + + * plugins/sudoers/sssd.c: + Fix typo in sudo_sss_attrcpy() that caused a memory allocation + error. + [0fa324a7bb56] + 2015-07-15 Todd C. Miller * plugins/sudoers/po/ja.mo, plugins/sudoers/po/uk.mo, diff -urNa sudo-1.8.14/NEWS sudo-1.8.14p1/NEWS --- sudo-1.8.14/NEWS Wed Jul 15 12:44:07 2015 +++ sudo-1.8.14p1/NEWS Fri Jul 17 15:29:01 2015 @@ -1,3 +1,8 @@ +What's new in Sudo 1.8.14p1 + + * Fixed a bug introduced in sudo 1.8.14 that prevented the sssd + backend from working. Bug #703. + What's new in Sudo 1.8.14 * Log messages on Mac OS X now respect sudoers_locale when sudo diff -urNa sudo-1.8.14/configure sudo-1.8.14p1/configure --- sudo-1.8.14/configure Wed Jul 15 12:44:07 2015 +++ sudo-1.8.14p1/configure Fri Jul 17 15:29:01 2015 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sudo 1.8.14. +# Generated by GNU Autoconf 2.69 for sudo 1.8.14p1. # # Report bugs to . # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.8.14' -PACKAGE_STRING='sudo 1.8.14' +PACKAGE_VERSION='1.8.14p1' +PACKAGE_STRING='sudo 1.8.14p1' PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' PACKAGE_URL='' @@ -1524,7 +1524,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 sudo 1.8.14 to adapt to many kinds of systems. +\`configure' configures sudo 1.8.14p1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1589,7 +1589,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.8.14:";; + short | recursive ) echo "Configuration of sudo 1.8.14p1:";; esac cat <<\_ACEOF @@ -1835,7 +1835,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.8.14 +sudo configure 1.8.14p1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2361,7 +2361,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sudo $as_me 1.8.14, which was +It was created by sudo $as_me 1.8.14p1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -25089,7 +25089,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sudo $as_me 1.8.14, which was +This file was extended by sudo $as_me 1.8.14p1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -25155,7 +25155,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sudo config.status 1.8.14 +sudo config.status 1.8.14p1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urNa sudo-1.8.14/configure.ac sudo-1.8.14p1/configure.ac --- sudo-1.8.14/configure.ac Wed Jul 15 12:44:07 2015 +++ sudo-1.8.14p1/configure.ac Fri Jul 17 15:29:01 2015 @@ -4,7 +4,7 @@ dnl Copyright (c) 1994-1996,1998-2015 Todd C. Miller dnl AC_PREREQ([2.59]) -AC_INIT([sudo], [1.8.14], [http://www.sudo.ws/bugs/], [sudo]) +AC_INIT([sudo], [1.8.14p1], [http://www.sudo.ws/bugs/], [sudo]) AC_CONFIG_HEADER([config.h pathnames.h]) AC_CONFIG_SRCDIR([src/sudo.c]) dnl diff -urNa sudo-1.8.14/plugins/sudoers/sssd.c sudo-1.8.14p1/plugins/sudoers/sssd.c --- sudo-1.8.14/plugins/sudoers/sssd.c Wed Jul 15 12:44:07 2015 +++ sudo-1.8.14p1/plugins/sudoers/sssd.c Fri Jul 17 15:29:01 2015 @@ -142,7 +142,7 @@ sudo_debug_printf(SUDO_DEBUG_INFO, "malloc: cnt=%d", src->num_values); dst->name = strdup(src->name); - dst->values = reallocarray(NULL, dst->num_values, sizeof(char *)); + dst->values = reallocarray(NULL, src->num_values, sizeof(char *)); if (dst->name == NULL || dst->values == NULL) goto oom; dst->num_values = src->num_values; @@ -195,7 +195,6 @@ for (i = 0; i < src->num_attrs; ++i) { if (!sudo_sss_attrcpy(dst->attrs + i, src->attrs + i)) { - sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); dst->num_attrs = i; sudo_sss_rulefree(dst); debug_return_bool(false);