Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package calc for openSUSE:Factory checked in at 2021-11-03 17:26:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/calc (Old) and /work/SRC/openSUSE:Factory/.calc.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "calc" Wed Nov 3 17:26:25 2021 rev:29 rq:928961 version:2.14.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/calc/calc.changes 2021-10-13 18:10:10.235658693 +0200 +++ /work/SRC/openSUSE:Factory/.calc.new.1890/calc.changes 2021-11-03 17:27:21.201372908 +0100 @@ -1,0 +2,12 @@ +Wed Nov 3 08:26:40 UTC 2021 - Michael Vetter <mvet...@suse.com> + +- Update to 2.14.0.6: + * Fixed typo in cal/statistics.cal + * Fixed an old Windoz pun in README.WINDOWS + * Fixed a really obscure bug in the internal initconstants() + function of const.c that has been sitting for over 31 years! + * Fixed issues identied by the default CodeUL GitHub security code scan: + + Wrong type of arguments to printf in have_fpos_pos.c + + Multiplication result converted to larger type in zfunc.c + +------------------------------------------------------------------- Old: ---- calc-2.14.0.3.tar.bz2 New: ---- calc-2.14.0.6.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ calc.spec ++++++ --- /var/tmp/diff_new_pack.k6pa0u/_old 2021-11-03 17:27:21.649373153 +0100 +++ /var/tmp/diff_new_pack.k6pa0u/_new 2021-11-03 17:27:21.649373153 +0100 @@ -19,7 +19,7 @@ %define soname 2 %define libname libcalc%{soname} Name: calc -Version: 2.14.0.3 +Version: 2.14.0.6 Release: 0 Summary: C-style arbitrary precision calculator License: LGPL-2.1-only ++++++ calc-2.14.0.3.tar.bz2 -> calc-2.14.0.6.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/CHANGES new/calc-2.14.0.6/CHANGES --- old/calc-2.14.0.3/CHANGES 2021-09-27 11:07:34.000000000 +0200 +++ new/calc-2.14.0.6/CHANGES 2021-10-22 12:04:38.000000000 +0200 @@ -191,6 +191,25 @@ ; print hm2h(241, -25.5594); 0.57401 + Fixed typo in cal/statistics.cal thanks to a report by <GitHub user + dennisaldea>. + + Fixed an old Windoz pun in README.WINDOWS as requested by <GitHub + user marcodegio>. + + Fixed a really obscure bug in the internal initconstants() + function of const.c that has been sitting for over 31 years! + + We are amazed that nobody has encountered this bug before + now. Nevertheless, our very extensive regression and + multi-architecture testing found the bug. Now, after all + those years, it is fixed. + + Fixed issues identied by the default CodeUL GitHub security code scan: + + Wrong type of arguments to printf in have_fpos_pos.c + Multiplication result converted to larger type in zfunc.c + The following are the changes from calc version 2.13.0.1 to 2.13.0.1: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/Makefile new/calc-2.14.0.6/Makefile --- old/calc-2.14.0.3/Makefile 2021-09-27 11:30:14.000000000 +0200 +++ new/calc-2.14.0.6/Makefile 2021-10-22 12:35:30.000000000 +0200 @@ -1205,7 +1205,7 @@ # The default calc versions # -VERSION= 2.14.0.3 +VERSION= 2.14.0.6 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/Makefile.simple new/calc-2.14.0.6/Makefile.simple --- old/calc-2.14.0.3/Makefile.simple 2021-09-27 11:55:48.000000000 +0200 +++ new/calc-2.14.0.6/Makefile.simple 2021-10-22 12:39:43.000000000 +0200 @@ -1117,7 +1117,7 @@ # The default calc versions # -VERSION= 2.14.0.3 +VERSION= 2.14.0.6 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/README.WINDOWS new/calc-2.14.0.6/README.WINDOWS --- old/calc-2.14.0.3/README.WINDOWS 2021-09-07 01:36:22.000000000 +0200 +++ new/calc-2.14.0.6/README.WINDOWS 2021-10-21 21:16:16.000000000 +0200 @@ -1,4 +1,4 @@ -Dear calc user on a Windoz based system, +Dear calc user on a Windows based system, See the HOWTO.INSTALL file for information on how to build and install calc. See also the README file. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/cal/statistics.cal new/calc-2.14.0.6/cal/statistics.cal --- old/calc-2.14.0.3/cal/statistics.cal 2021-02-13 07:15:46.000000000 +0100 +++ new/calc-2.14.0.6/cal/statistics.cal 2021-10-21 21:09:40.000000000 +0200 @@ -371,7 +371,7 @@ define probit(p){ if(p<0 || p > 1) return newerror("probit: p out of domain 0<=p<=1"); - return sqrt(2)*ervinv(2*p-1); + return sqrt(2)*erfinv(2*p-1); } define normalcdfinv(p,mu,sigma){ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/const.c new/calc-2.14.0.6/const.c --- old/calc-2.14.0.3/const.c 2021-03-08 19:58:40.000000000 +0100 +++ new/calc-2.14.0.6/const.c 2021-10-22 12:07:26.000000000 +0200 @@ -44,16 +44,16 @@ { int i; - consttable = (NUMBER **) malloc(sizeof(NUMBER *) * CONSTALLOCSIZE); + consttable = (NUMBER **) calloc(sizeof(NUMBER *), CONSTALLOCSIZE); if (consttable == NULL) { math_error("Unable to allocate constant table"); /*NOTREACHED*/ } - for (i = 0; i < INITCONSTCOUNT; i++) + for (i = 0; initnumbs[i] != NULL; i++) { consttable[i] = initnumbs[i]; - consttable[INITCONSTCOUNT] = NULL; /* firewall */ - constcount = INITCONSTCOUNT; - constavail = CONSTALLOCSIZE - INITCONSTCOUNT; + } + constcount = i-1; + constavail = CONSTALLOCSIZE - constcount; } @@ -123,6 +123,9 @@ tp = consttable; for (index = 0; index < constcount; index++, tp++) { t = *tp; + if (t == NULL) { /* paranoia */ + break; + } if (t->links == 0) { if (!havefirst) { havefirst = TRUE; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/custom/Makefile new/calc-2.14.0.6/custom/Makefile --- old/calc-2.14.0.3/custom/Makefile 2021-09-27 11:55:03.000000000 +0200 +++ new/calc-2.14.0.6/custom/Makefile 2021-10-22 12:39:01.000000000 +0200 @@ -496,7 +496,7 @@ # The default calc versions # -VERSION= 2.14.0.3 +VERSION= 2.14.0.6 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/custom/Makefile.head new/calc-2.14.0.6/custom/Makefile.head --- old/calc-2.14.0.3/custom/Makefile.head 2021-09-27 11:30:14.000000000 +0200 +++ new/calc-2.14.0.6/custom/Makefile.head 2021-10-22 12:35:30.000000000 +0200 @@ -496,7 +496,7 @@ # The default calc versions # -VERSION= 2.14.0.3 +VERSION= 2.14.0.6 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/custom/Makefile.simple new/calc-2.14.0.6/custom/Makefile.simple --- old/calc-2.14.0.3/custom/Makefile.simple 2021-09-27 11:55:48.000000000 +0200 +++ new/calc-2.14.0.6/custom/Makefile.simple 2021-10-22 12:39:43.000000000 +0200 @@ -460,7 +460,7 @@ # The default calc versions # -VERSION= 2.14.0.3 +VERSION= 2.14.0.6 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/have_fpos_pos.c new/calc-2.14.0.6/have_fpos_pos.c --- old/calc-2.14.0.3/have_fpos_pos.c 2021-03-08 19:58:40.000000000 +0100 +++ new/calc-2.14.0.6/have_fpos_pos.c 2021-10-22 10:30:31.000000000 +0200 @@ -56,8 +56,8 @@ printf("#define FPOS_POS_BITS %d\n", FPOS_POS_BITS); printf("#define FPOS_POS_LEN %d\n", int(FPOS_POS_BITS/8)); # else - printf("#define FPOS_POS_BITS %d\n", sizeof(pos.__pos)*8); - printf("#define FPOS_POS_LEN %d\n", sizeof(pos.__pos)); + printf("#define FPOS_POS_BITS %lu\n", sizeof(pos.__pos)*8); + printf("#define FPOS_POS_LEN %lu\n", sizeof(pos.__pos)); # endif #else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/qmath.c new/calc-2.14.0.6/qmath.c --- old/calc-2.14.0.3/qmath.c 2021-09-26 10:47:33.000000000 +0200 +++ new/calc-2.14.0.6/qmath.c 2021-09-29 07:27:32.000000000 +0200 @@ -53,10 +53,12 @@ NUMBER _qtwentyfour = { { _twentyfourval_, 1, 0 }, { _oneval_, 1, 0 }, 1, NULL }; -NUMBER * initnumbs[INITCONSTCOUNT] = {&_qzero_, &_qone_, &_qtwo_, &_qthree_, +NUMBER * initnumbs[] = {&_qzero_, &_qone_, &_qtwo_, &_qthree_, &_qfour_, &_qten_, &_qnegone_, &_qonehalf_, &_qneghalf_, &_qonesqbase_, &_qtendivnine_, &_qninedivten_, - &_qthreesixty, &_qfourhundred, &_qtwentyfour }; + &_qthreesixty, &_qfourhundred, &_qtwentyfour, + NULL /* must be last */ +}; /* @@ -1488,7 +1490,7 @@ printf("Index Links Digits Value\n"); printf("----- ----- ------ -----\n"); - for (i = 0, k = 0; i < INITCONSTCOUNT; i++) { + for (i = 0, k = 0; initnumbs[i] != NULL; i++) { count++; vp = initnumbs[i]; printf("%6ld %4ld ", k++, vp->links); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/qmath.h new/calc-2.14.0.6/qmath.h --- old/calc-2.14.0.3/qmath.h 2021-09-26 10:47:46.000000000 +0200 +++ new/calc-2.14.0.6/qmath.h 2021-09-29 07:20:53.000000000 +0200 @@ -35,8 +35,6 @@ #endif -#define INITCONSTCOUNT 15 /* number of initnumbs[] pre-defined constants */ - /* * Rational arithmetic definitions. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/version.c new/calc-2.14.0.6/version.c --- old/calc-2.14.0.3/version.c 2021-09-27 11:21:49.000000000 +0200 +++ new/calc-2.14.0.6/version.c 2021-10-22 12:35:18.000000000 +0200 @@ -54,7 +54,7 @@ #define MAJOR_VER 2 /* major library version */ #define MINOR_VER 14 /* minor library version */ #define MAJOR_PATCH 0 /* major software version level */ -#define MINOR_PATCH 3 /* minor software version level */ +#define MINOR_PATCH 6 /* minor software version level */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.14.0.3/zfunc.c new/calc-2.14.0.6/zfunc.c --- old/calc-2.14.0.3/zfunc.c 2021-03-09 10:08:41.000000000 +0100 +++ new/calc-2.14.0.6/zfunc.c 2021-10-22 10:37:39.000000000 +0200 @@ -1034,7 +1034,7 @@ } needw = FALSE; } - g = *a0 * w; + g = (FULL) (*a0 * w); if (h < BASEB) { g &= (1 << h) - 1; } else { @@ -1044,7 +1044,7 @@ g = 1; } } else { - g = (HALF) *a0 * w; + g = (FULL) (*a0 * w); } a = a0; b = b0;