![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package flac for openSUSE:Factory checked in at 2012-03-19 10:03:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/flac (Old) and /work/SRC/openSUSE:Factory/.flac.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "flac", Maintainer is "tiwai@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/flac/flac.changes 2012-03-09 21:22:32.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.flac.new/flac.changes 2012-03-19 10:03:36.000000000 +0100 @@ -1,0 +2,9 @@ +Tue Mar 13 20:45:17 UTC 2012 - dimstar@opensuse.org + +- Add flac-gcc47.patch: Replacing strcpy without 'lenght + limitation' with strncpy, limited to 4 chars. This is safe, as we + check the length already to be sure it is 4 chars, yet do not + suffer from the problem that strcpy wants to add a '\0' char in + plus to the target string. + +------------------------------------------------------------------- New: ---- flac-gcc47.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ flac.spec ++++++ --- /var/tmp/diff_new_pack.pgTlo2/_old 2012-03-19 10:03:37.000000000 +0100 +++ /var/tmp/diff_new_pack.pgTlo2/_new 2012-03-19 10:03:37.000000000 +0100 @@ -16,7 +16,6 @@ # - Name: flac BuildRequires: gcc-c++ BuildRequires: libogg-devel @@ -30,12 +29,12 @@ Obsoletes: flac-64bit %endif Version: 1.2.1 -Release: 83 -License: BSD-3-Clause +Release: 0 # Summary: Free Lossless Audio Codec -Url: http://flac.sourceforge.net/ +License: BSD-3-Clause Group: Productivity/Multimedia/Sound/Utilities +Url: http://flac.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 Source2: baselibs.conf # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines @@ -53,13 +52,14 @@ Patch6: flac-visibility.patch Patch7: flac-leaks.patch Patch8: flac-disable-hidden-visibility-for-ppc.patch +# PATCH-FIX-UPSTREAM flac-gcc47.patch dimstar@opensuse.org -- Fix build with gcc 4.7 +Patch9: flac-gcc47.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description FLAC is an open source lossless audio codec developed by Josh Coalson. %package -n libFLAC8 -License: BSD-3-Clause Summary: Free Lossless Audio Codec Library Group: System/Libraries Obsoletes: libflac <= %{version} @@ -70,7 +70,6 @@ developed by Josh Coalson. %package -n libFLAC++6 -License: BSD-3-Clause Summary: Free Lossless Audio Codec Library Group: System/Libraries @@ -79,7 +78,6 @@ Codec) developed by Josh Coalson. %package devel -License: BSD-3-Clause Summary: FLAC Library Development Package Group: Development/Libraries/C and C++ Requires: glibc-devel @@ -104,6 +102,7 @@ %ifarch ppc ppc64 %patch8 -p1 %endif +%patch9 -p1 %build autoreconf --force --install ++++++ flac-gcc47.patch ++++++ Index: flac-1.2.1/src/metaflac/options.c =================================================================== --- flac-1.2.1.orig/src/metaflac/options.c +++ flac-1.2.1/src/metaflac/options.c @@ -1041,7 +1041,7 @@ FLAC__bool parse_block_type(const char * out->entries[entry].filter_application_by_id = (0 != r); if(0 != r) { if(strlen(r) == 4) { - strcpy(out->entries[entry].application_id, r); + memcpy(out->entries[entry].application_id, r, 4); } else if(strlen(r) == 10 && strncmp(r, "0x", 2) == 0 && strspn(r+2, "0123456789ABCDEFabcdef") == 8) { FLAC__uint32 x = strtoul(r+2, 0, 16); -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org