Hello community, here is the log from the commit of package rebootmgr for openSUSE:Factory checked in at 2019-11-08 15:22:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rebootmgr (Old) and /work/SRC/openSUSE:Factory/.rebootmgr.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rebootmgr" Fri Nov 8 15:22:42 2019 rev:12 rq:745204 version:0.20.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rebootmgr/rebootmgr.changes 2019-09-27 14:42:56.253624570 +0200 +++ /work/SRC/openSUSE:Factory/.rebootmgr.new.2990/rebootmgr.changes 2019-11-08 15:22:47.026808032 +0100 @@ -1,0 +2,6 @@ +Mon Nov 4 15:32:45 CET 2019 - [email protected] + +- Update to version 0.20.1 + - added a memory allocation check + +------------------------------------------------------------------- Old: ---- rebootmgr-0.20.tar.xz New: ---- rebootmgr-0.20.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rebootmgr.spec ++++++ --- /var/tmp/diff_new_pack.lNGGdG/_old 2019-11-08 15:22:47.774808822 +0100 +++ /var/tmp/diff_new_pack.lNGGdG/_new 2019-11-08 15:22:47.778808827 +0100 @@ -24,7 +24,7 @@ %endif Name: rebootmgr -Version: 0.20 +Version: 0.20.1 Release: 0 Summary: Automatic controlled reboot during a maintenance window License: GPL-2.0-only AND LGPL-2.1-or-later ++++++ rebootmgr-0.20.tar.xz -> rebootmgr-0.20.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebootmgr-0.20/NEWS new/rebootmgr-0.20.1/NEWS --- old/rebootmgr-0.20/NEWS 2019-09-06 12:38:04.000000000 +0200 +++ new/rebootmgr-0.20.1/NEWS 2019-11-04 15:28:05.000000000 +0100 @@ -2,6 +2,9 @@ Copyright (C) 2016-2019 Thorsten Kukuk +Version 0.20.1 +* Added a memory allocation check + Version 0.20 * Implement writing of config options back with libeconf diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebootmgr-0.20/configure new/rebootmgr-0.20.1/configure --- old/rebootmgr-0.20/configure 2019-09-06 12:38:11.000000000 +0200 +++ new/rebootmgr-0.20.1/configure 2019-11-04 15:28:18.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for rebootmgr 0.20. +# Generated by GNU Autoconf 2.69 for rebootmgr 0.20.1. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,8 +577,8 @@ # Identity of this package. PACKAGE_NAME='rebootmgr' PACKAGE_TARNAME='rebootmgr' -PACKAGE_VERSION='0.20' -PACKAGE_STRING='rebootmgr 0.20' +PACKAGE_VERSION='0.20.1' +PACKAGE_STRING='rebootmgr 0.20.1' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1336,7 +1336,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 rebootmgr 0.20 to adapt to many kinds of systems. +\`configure' configures rebootmgr 0.20.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1406,7 +1406,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of rebootmgr 0.20:";; + short | recursive ) echo "Configuration of rebootmgr 0.20.1:";; esac cat <<\_ACEOF @@ -1529,7 +1529,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -rebootmgr configure 0.20 +rebootmgr configure 0.20.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1894,7 +1894,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by rebootmgr $as_me 0.20, which was +It was created by rebootmgr $as_me 0.20.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2758,7 +2758,7 @@ # Define the identity of the package. PACKAGE='rebootmgr' - VERSION='0.20' + VERSION='0.20.1' cat >>confdefs.h <<_ACEOF @@ -8944,7 +8944,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by rebootmgr $as_me 0.20, which was +This file was extended by rebootmgr $as_me 0.20.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -9010,7 +9010,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -rebootmgr config.status 0.20 +rebootmgr config.status 0.20.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebootmgr-0.20/configure.ac new/rebootmgr-0.20.1/configure.ac --- old/rebootmgr-0.20/configure.ac 2019-09-06 12:37:31.000000000 +0200 +++ new/rebootmgr-0.20.1/configure.ac 2019-11-04 15:28:13.000000000 +0100 @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(rebootmgr, 0.20) +AC_INIT(rebootmgr, 0.20.1) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/rebootmgrd.c]) AM_CONFIG_HEADER(config.h) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebootmgr-0.20/src/config_file.c new/rebootmgr-0.20.1/src/config_file.c --- old/rebootmgr-0.20/src/config_file.c 2019-09-06 12:22:49.000000000 +0200 +++ new/rebootmgr-0.20.1/src/config_file.c 2019-11-04 13:58:06.000000000 +0100 @@ -63,6 +63,11 @@ buf = (char*)malloc(sizeof(char)*(size_t)st.st_size+1); + if(buf == NULL){ + log_msg( LOG_INFO, "buf malloc failed in :%s\n",__func__); + goto fail; + } + if ((size = read(fd, buf, (size_t)st.st_size)) < 0) { log_msg( LOG_INFO, "read() failed: %m"); goto fail; @@ -77,8 +82,9 @@ close(fd); } - free(buf); - + if(buf){ + free(buf); + } return NULL; } Binary files old/rebootmgr-0.20/tests/test-calendarspec and new/rebootmgr-0.20.1/tests/test-calendarspec differ Binary files old/rebootmgr-0.20/tests/test-etcd and new/rebootmgr-0.20.1/tests/test-etcd differ Binary files old/rebootmgr-0.20/tests/test-json and new/rebootmgr-0.20.1/tests/test-json differ Binary files old/rebootmgr-0.20/tests/test-parse-duration and new/rebootmgr-0.20.1/tests/test-parse-duration differ
