Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libpt2 for openSUSE:Factory checked in at 2021-01-21 21:54:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpt2 (Old) and /work/SRC/openSUSE:Factory/.libpt2.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpt2" Thu Jan 21 21:54:53 2021 rev:43 rq:865103 version:2.10.11 Changes: -------- --- /work/SRC/openSUSE:Factory/libpt2/libpt2.changes 2020-02-29 21:23:25.670387471 +0100 +++ /work/SRC/openSUSE:Factory/.libpt2.new.28504/libpt2.changes 2021-01-21 21:54:53.953782593 +0100 @@ -1,0 +2,6 @@ +Mon Jan 18 08:40:52 UTC 2021 - Frederic Crozat <fcro...@suse.com> + +- Add ptlib-2.10.11-signed_int_overflow.patch: fix integer overflow + (rh#1696458). + +------------------------------------------------------------------- New: ---- ptlib-2.10.11-signed_int_overflow.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpt2.spec ++++++ --- /var/tmp/diff_new_pack.D8P2TS/_old 2021-01-21 21:54:54.777782904 +0100 +++ /var/tmp/diff_new_pack.D8P2TS/_new 2021-01-21 21:54:54.777782904 +0100 @@ -50,6 +50,8 @@ Patch8: libpt2-openssl11.patch Patch9: reproducible.patch Patch10: libpt2-gnu-make-4.3.patch +# PATCH-FIX-UPSTREAM ptlib-2.10.11-signed_int_overflow.patch rh#1696458 fcro...@suse.com -- fix overflow +Patch11: ptlib-2.10.11-signed_int_overflow.patch BuildRequires: SDL-devel BuildRequires: alsa-devel BuildRequires: bison @@ -191,6 +193,7 @@ %if %{pkg_vcmp make >= 4.3} %patch10 -p1 %endif +%patch11 -p1 %build export CXXFLAGS="%optflags -fvisibility-inlines-hidden" ++++++ ptlib-2.10.11-signed_int_overflow.patch ++++++ https://github.com/joegen/opalvoip-ptlib/blame/master/src/ptlib/common/contain.cxx#L1466 --- ptlib-2.10.11/src/ptlib/common/contain.cxx 2013-08-15 01:20:26.000000000 +0200 +++ ptlib-2.10.11/src/ptlib/common/contain.cxx.signed_int_overflow 2019-05-16 19:04:17.308321710 +0200 @@ -1223,7 +1223,7 @@ if (len <= 0 || start < 0) return Empty(); - if (start+len < start) // Beware of wraparound + if (len == P_MAX_INDEX || start+len < start) // If open ended or check for wraparound return operator()(start, P_MAX_INDEX); else return operator()(start, start+len-1);