Hello community, here is the log from the commit of package calc for openSUSE:Factory checked in at 2018-11-30 16:32:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/calc (Old) and /work/SRC/openSUSE:Factory/.calc.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "calc" Fri Nov 30 16:32:18 2018 rev:19 rq:652603 version:2.12.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/calc/calc.changes 2018-11-06 14:39:34.448579221 +0100 +++ /work/SRC/openSUSE:Factory/.calc.new.19453/calc.changes 2018-11-30 16:32:20.457366698 +0100 @@ -1,0 +2,7 @@ +Thu Nov 29 11:53:30 UTC 2018 - mvet...@suse.com + +- new stable release 2.12.7.2: + + Fixed a segfault when getpwuid() returned NULL during initialization + + Corrected Changes notes + +------------------------------------------------------------------- Old: ---- calc-2.12.7.0.tar.bz2 New: ---- calc-2.12.7.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ calc.spec ++++++ --- /var/tmp/diff_new_pack.Ehq7YV/_old 2018-11-30 16:32:21.313365575 +0100 +++ /var/tmp/diff_new_pack.Ehq7YV/_new 2018-11-30 16:32:21.317365570 +0100 @@ -19,10 +19,10 @@ %define soname 2 %define libname libcalc%{soname} Name: calc -Version: 2.12.7.0 +Version: 2.12.7.2 Release: 0 Summary: C-style arbitrary precision calculator -License: LGPL-2.1 +License: LGPL-2.1-only Group: Productivity/Scientific/Math Url: http://www.isthe.com/chongo/tech/comp/calc/index.html Source0: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2 ++++++ calc-2.12.7.0.tar.bz2 -> calc-2.12.7.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/CHANGES new/calc-2.12.7.2/CHANGES --- old/calc-2.12.7.0/CHANGES 2018-11-05 01:55:45.000000000 +0100 +++ new/calc-2.12.7.2/CHANGES 2018-11-28 21:23:08.000000000 +0100 @@ -1,4 +1,25 @@ -The following are the changes from calc version 2.12.7.0 to date: +The following are the changes from calc version 2.12.7.1 to date: + + Corrected CHANGES notes that were mixed up for TAB, VT, CR & + NL. The code in 2.12.7.0 is correct. The CHANGE notes should + have read: + + The following is a partial list of escape sequences recognized + in strings and in printf formats: + + \a audible bell byte 0x07 in ASCII encoding + \b backspace byte 0x08 in ASCII encoding + \f form feed byte 0x0c in ASCII encoding + \n newline byte 0x0a in ASCII encoding + \r return byte 0x0d in ASCII encoding + \t tab byte 0x09 in ASCII encoding + \v vertical tab byte 0x0b in ASCII encoding + + Fixed a segfault when getpwuid() returned NULL during initialization. + Thanks goes to baratharon GitHub user for reporting this issue. + + +The following are the changes from calc version 2.12.6.10: to 2.12.7.0: Added a patch to replaces the manual search for include files in $(INCDIR) in the have_*.h targets with compiler invocations. @@ -32,10 +53,10 @@ \a audible bell byte 0x07 in ASCII encoding \b backspace byte 0x08 in ASCII encoding \f form feed byte 0x0c in ASCII encoding - \n newline byte 0x0b in ASCII encoding - \r return byte 0x0a in ASCII encoding - \t tab byte 0x0d in ASCII encoding - \v vertical tab byte 0x09 in ASCII encoding + \n newline byte 0x0a in ASCII encoding + \r return byte 0x0d in ASCII encoding + \t tab byte 0x09 in ASCII encoding + \v vertical tab byte 0x0b in ASCII encoding The following are the changes from calc version 2.12.6.9 to 2.12.6.9: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/Makefile new/calc-2.12.7.2/Makefile --- old/calc-2.12.7.0/Makefile 2018-11-05 00:43:59.000000000 +0100 +++ new/calc-2.12.7.2/Makefile 2018-11-28 21:12:10.000000000 +0100 @@ -1054,7 +1054,7 @@ # The default calc versions # -VERSION= 2.12.7.0 +VERSION= 2.12.7.2 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/Makefile.simple new/calc-2.12.7.2/Makefile.simple --- old/calc-2.12.7.0/Makefile.simple 2018-11-05 02:29:38.000000000 +0100 +++ new/calc-2.12.7.2/Makefile.simple 2018-11-28 21:35:52.000000000 +0100 @@ -981,7 +981,7 @@ # The default calc versions # -VERSION= 2.12.7.0 +VERSION= 2.12.7.2 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/custom/Makefile new/calc-2.12.7.2/custom/Makefile --- old/calc-2.12.7.0/custom/Makefile 2018-11-05 02:28:51.000000000 +0100 +++ new/calc-2.12.7.2/custom/Makefile 2018-11-28 21:35:02.000000000 +0100 @@ -348,7 +348,7 @@ # The default calc versions # -VERSION= 2.12.7.0 +VERSION= 2.12.7.2 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/custom/Makefile.head new/calc-2.12.7.2/custom/Makefile.head --- old/calc-2.12.7.0/custom/Makefile.head 2018-11-05 00:43:59.000000000 +0100 +++ new/calc-2.12.7.2/custom/Makefile.head 2018-11-28 21:12:10.000000000 +0100 @@ -348,7 +348,7 @@ # The default calc versions # -VERSION= 2.12.7.0 +VERSION= 2.12.7.2 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/custom/Makefile.simple new/calc-2.12.7.2/custom/Makefile.simple --- old/calc-2.12.7.0/custom/Makefile.simple 2018-11-05 02:29:38.000000000 +0100 +++ new/calc-2.12.7.2/custom/Makefile.simple 2018-11-28 21:35:52.000000000 +0100 @@ -333,7 +333,7 @@ # The default calc versions # -VERSION= 2.12.7.0 +VERSION= 2.12.7.2 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/lib_calc.c new/calc-2.12.7.2/lib_calc.c --- old/calc-2.12.7.0/lib_calc.c 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.7.2/lib_calc.c 2018-11-28 21:32:52.000000000 +0100 @@ -1,7 +1,7 @@ /* * lib_calc - calc link library initialization and shutdown routines * - * Copyright (C) 1999-2007 Landon Curt Noll + * Copyright (C) 1999-2007,2018 Landon Curt Noll * * Calc is open software; you can redistribute it and/or modify it under * the terms of the version 2.1 of the GNU Lesser General Public License @@ -504,22 +504,36 @@ home = (c ? strdup(c) : NULL); #if defined(_WIN32) if (home == NULL || home[0] == '\0') { + /* free home if it was previously allocated, but empty */ + if (home != NULL) { + free(home); + } /* just assume . is home if all else fails */ - home = "."; + home = strdup("."); } #else /* Windoz free systems */ if (home == NULL || home[0] == '\0') { - size_t pw_dir_len; + /* free home if it was previously allocated, but empty */ + if (home != NULL) { + free(home); + } + /* try using the home directory of current effective UID */ ent = (struct passwd *)getpwuid(geteuid()); - if (ent == NULL) { + if (ent == NULL || ent->pw_dir == NULL || + ent->pw_dir[0] == '\0') { /* just assume . is home if all else fails */ - home = "."; + home = strdup("."); + } else { + /* use home directory of current effective UID */ + home = strdup(ent->pw_dir); } - pw_dir_len = strlen(ent->pw_dir); - home = (char *)malloc(pw_dir_len+1); - strncpy(home, ent->pw_dir, pw_dir_len+1); } #endif /* Windoz free systems */ + /* paranoia */ + if (home == NULL) { + math_error("Unable to allocate string for $HOME"); + /*NOTREACHED*/ + } /* determine the $PAGER value */ c = (no_env ? NULL : getenv(PAGER)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.7.0/version.c new/calc-2.12.7.2/version.c --- old/calc-2.12.7.0/version.c 2018-11-05 00:43:46.000000000 +0100 +++ new/calc-2.12.7.2/version.c 2018-11-05 17:57:47.000000000 +0100 @@ -45,7 +45,7 @@ #define MAJOR_VER 2 /* major library version */ #define MINOR_VER 12 /* minor library version */ #define MAJOR_PATCH 7 /* major software level under library version */ -#define MINOR_PATCH 0 /* minor software level or 0 if not patched */ +#define MINOR_PATCH 2 /* minor software level or 0 if not patched */ /* ++++++ checksum.sha-256 ++++++ --- /var/tmp/diff_new_pack.Ehq7YV/_old 2018-11-30 16:32:22.053364605 +0100 +++ /var/tmp/diff_new_pack.Ehq7YV/_new 2018-11-30 16:32:22.053364605 +0100 @@ -13,9 +13,19 @@ a52a53144d55fa6669ad81dd875dc1603e3df9a32a6354f0fdd6626390ec6ebe calc-2.12.7.0-12.src.rpm 3fc4cfd94a8a6ea08ac8a594a4c0679d9a0310d654bd8963080a07fd9767f8d8 calc-2.12.7.0-12.x86_64.rpm 4b48892e11adcd734db67ba135d916d29e0d07db1e32cb4a6e8b56e32e1895c2 calc-2.12.7.0.tar.bz2 +716aab14a76d4bf892a0c30c77fa0b3c6b20540b35910e2dfa7855edbc5afd94 calc-2.12.7.1-12.src.rpm +0c3810f8400481aab71ccd2bbdf753fa3eaa6ad2fabadcaadfce1fb84bf03d9a calc-2.12.7.1-12.x86_64.rpm +eb1dc5dd680019e30264109167e20539fe9ac869049d8b1639781a51d1dea84c calc-2.12.7.1.tar.bz2 +a74bebe6b73d5c51c4b2eed4ed34dff57fa8698dfb9fbb8d1d0a5c393a1001a7 calc-2.12.7.2-12.src.rpm +72d65cd2516502bcb3542286d18f8300acf0217ca93f34116064ed8250adb041 calc-2.12.7.2-12.x86_64.rpm +57af44181ca3af7348c82ee628cfd221677a09fef11a29d2e5667726d5aafc90 calc-2.12.7.2.tar.bz2 64be52e48955efb1b45055884c0059c764178b40a90689c1f46a560ce2039895 calc-debuginfo-2.12.6.10-12.x86_64.rpm 924b04b852a300b57fcda68271c58745d576ab3f4207e581c92b8037627518a7 calc-debuginfo-2.12.6.9-12.x86_64.rpm 002b67677cecd2bcd7b982019c13f3ff1c568daea972c0b78153eda0f42f8b18 calc-debuginfo-2.12.7.0-12.x86_64.rpm +d0fbe0a33f3c5f7dcbaf3f5725121feec67aa95d416b0164e92210d9dec928d2 calc-debuginfo-2.12.7.1-12.x86_64.rpm +f95d095cffe5b9e5d575c7e0338a9932f6f97b64a8eff4b5b42cfc5e36f179d3 calc-debuginfo-2.12.7.2-12.x86_64.rpm 59cdab4780206ead34254de416ccd3b3c33a3e4dd0da34424faeac272a239bc9 calc-devel-2.12.6.10-12.x86_64.rpm a27915ff307df638eedb796ba7f121da2e2ed9eb6f7fc2288128eb611951ae5a calc-devel-2.12.6.9-12.x86_64.rpm 0e2442340f70be2e2e6650fcbb0f3d23454962b68e38eb2e6349be99412fbbeb calc-devel-2.12.7.0-12.x86_64.rpm +2b39127026d5f47d4d484de0256c5913474d8309e8ffd3eea0158b4ec0fda462 calc-devel-2.12.7.1-12.x86_64.rpm +b7ecad22ca6dab0ad7a141d829e15665060e27ef85d5bf1b81b4d2c201c39f90 calc-devel-2.12.7.2-12.x86_64.rpm