Hello community, here is the log from the commit of package slang for openSUSE:Factory checked in at 2014-07-15 16:25:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/slang (Old) and /work/SRC/openSUSE:Factory/.slang.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "slang" Changes: -------- --- /work/SRC/openSUSE:Factory/slang/slang.changes 2012-05-26 13:07:04.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.slang.new/slang.changes 2014-07-15 16:25:45.000000000 +0200 @@ -1,0 +2,8 @@ +Wed Jul 2 15:28:46 UTC 2014 - kkaempf@suse.com + +- fix for running in non-utf-8 environments (bnc#885624) + add sprintf-bug-concerning-c-for-8-bit-character-in-non-.patch + +- drop slang-2.2.2-makefile.patch, obsolete + +------------------------------------------------------------------- Old: ---- slang-2.2.2-makefile.patch New: ---- sprintf-bug-concerning-c-for-8-bit-character-in-non-.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ slang.spec ++++++ --- /var/tmp/diff_new_pack.3ESFLV/_old 2014-07-15 16:25:46.000000000 +0200 +++ /var/tmp/diff_new_pack.3ESFLV/_new 2014-07-15 16:25:46.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package slang # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,8 +28,9 @@ Patch0: slang.patch Patch1: slang-autoconf.patch Patch2: slang-fsuid.patch -Patch3: slang-2.2.2-makefile.patch Patch4: slang-libpng12-linker-flag.patch +# PATCH-FIX-UPSTREAM, sprintf bug (concerning %c for 8-bit character in non-UTF8 mode) fixed +Patch5: sprintf-bug-concerning-c-for-8-bit-character-in-non-.patch %if 0%{?suse_version} >= 1210 BuildRequires: oniguruma-devel >= 5.9.0 %endif @@ -110,8 +111,8 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 -#%%patch3 -p1 %patch4 -p1 +%patch5 -p1 %build mv autoconf/configure.ac . ++++++ sprintf-bug-concerning-c-for-8-bit-character-in-non-.patch ++++++
From 3a05d1a920140e9f2c72791c12f664213feb46df Mon Sep 17 00:00:00 2001 From: Manfred Hanke
Date: Thu, 20 Jun 2013 10:24:12 +0200 Subject: [PATCH 04/41] sprintf bug (concerning %c for 8-bit character in non-UTF8 mode) fixed
char *str points to SLuchar_Type utf8_buf[], which had too small scope src/test/strops.sl failed in the following environment: - compiler: gcc (Debian 4.7.2-5) 4.7.2 - CFLAGS: -g -O2 - libc: GNU C Library (Debian EGLIBC 2.13-38) stable release version 2.13 - kernel: 3.2.0-4-686-pae #1 SMP Debian 3.2.39-2 i686 GNU/Linux --- src/slstrops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slstrops.c b/src/slstrops.c index ce6acb0bc631..cbbbb0183246 100644 --- a/src/slstrops.c +++ b/src/slstrops.c @@ -1884,6 +1884,7 @@ static char *SLdo_sprintf (char *fmt) /*{{{*/ #endif unsigned char uch; int use_long = 0, use_alt_format = 0; + SLuchar_Type utf8_buf[SLUTF8_MAX_MBLEN+1]; while (1) { @@ -2071,7 +2072,6 @@ static char *SLdo_sprintf (char *fmt) /*{{{*/ #endif { SLwchar_Type wc; - SLuchar_Type utf8_buf[SLUTF8_MAX_MBLEN+1]; if (-1 == SLang_pop_wchar (&wc)) return out; -- 1.8.4.5 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org