Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trng for openSUSE:Factory checked in at 2021-02-15 23:18:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trng (Old) and /work/SRC/openSUSE:Factory/.trng.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trng" Mon Feb 15 23:18:48 2021 rev:2 rq:872004 version:4.23.1 Changes: -------- --- /work/SRC/openSUSE:Factory/trng/trng.changes 2020-11-10 13:45:02.547807196 +0100 +++ /work/SRC/openSUSE:Factory/.trng.new.28504/trng.changes 2021-02-15 23:21:01.859819745 +0100 @@ -1,0 +2,6 @@ +Sat Feb 13 14:21:34 UTC 2021 - Atri Bhattacharya <[email protected]> + +- Update to version 4.23.1: + * Fix uninitialized-memory read access. + +------------------------------------------------------------------- Old: ---- trng-4.23.tar.gz New: ---- trng-4.23.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trng.spec ++++++ --- /var/tmp/diff_new_pack.izmVyj/_old 2021-02-15 23:21:02.407820564 +0100 +++ /var/tmp/diff_new_pack.izmVyj/_new 2021-02-15 23:21:02.407820564 +0100 @@ -1,7 +1,7 @@ # # spec file for package trng # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %global shlib libtrng4-22 Name: trng -Version: 4.23 +Version: 4.23.1 Release: 0 Summary: A Random Number Generator Library License: BSD-3-Clause URL: https://www.numbercrunch.de/trng/ -Source: https://github.com/rabauke/trng4/archive/v4.23.tar.gz#/%{name}-%{version}.tar.gz +Source: https://github.com/rabauke/trng4/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libboost_headers-devel ++++++ trng-4.23.tar.gz -> trng-4.23.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trng4-4.23/CMakeLists.txt new/trng4-4.23.1/CMakeLists.txt --- old/trng4-4.23/CMakeLists.txt 2020-06-01 16:11:52.000000000 +0200 +++ new/trng4-4.23.1/CMakeLists.txt 2021-01-28 22:51:30.000000000 +0100 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(trng4 VERSION 4.22 DESCRIPTION "pseudo random number generator library") +project(trng4 VERSION 4.23.1 DESCRIPTION "pseudo random number generator library") include(GNUInstallDirs) Binary files old/trng4-4.23/doc/trng.pdf and new/trng4-4.23.1/doc/trng.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trng4-4.23/trng/utility.hpp new/trng4-4.23.1/trng/utility.hpp --- old/trng4-4.23/trng/utility.hpp 2020-06-01 16:11:52.000000000 +0200 +++ new/trng4-4.23.1/trng/utility.hpp 2021-01-28 22:51:30.000000000 +0100 @@ -89,9 +89,9 @@ template<typename char_t, typename traits_t> friend std::basic_istream<char_t, traits_t> &operator>>( std::basic_istream<char_t, traits_t> &in, const delim_str &d) { - char c; + char c{0}; std::size_t len{std::strlen(d.str)}, i{0}; - while (i < len and !(in.get(c) and c != d.str[i])) { + while (i < len and not(in.get(c) and c != d.str[i])) { ++i; } if (i < len) @@ -108,9 +108,8 @@ template<typename char_t, typename traits_t> friend std::basic_istream<char_t, traits_t> &operator>>( std::basic_istream<char_t, traits_t> &in, const delim_c &d) { - char c; - in.get(c); - if (c != d.c) + char c{0}; + if (not in.get(c).good() or c != d.c) in.setstate(std::ios::failbit); return in; } @@ -127,9 +126,9 @@ template<typename char_t, typename traits_t> friend std::basic_istream<char_t, traits_t> &operator>>( std::basic_istream<char_t, traits_t> &in, const ignore_spaces_cl &) { - while (true) { + while (in.good()) { const int c(in.peek()); - if (c == EOF or !(c == ' ' or c == '\t' or c == '\n')) + if (c == traits_t::eof() or not(c == ' ' or c == '\t' or c == '\n')) break; in.get(); }
