Hello community, here is the log from the commit of package zsh for openSUSE:Factory checked in at Wed Mar 16 11:21:23 CET 2011.
-------- --- zsh/zsh.changes 2010-12-29 03:16:30.000000000 +0100 +++ /mounts/work_src_done/STABLE/zsh/zsh.changes 2011-03-15 15:12:06.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Mar 15 13:40:24 UTC 2011 - [email protected] + +- Fix crash with ${foo:0:} + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- subst-crash.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zsh.spec ++++++ --- /var/tmp/diff_new_pack.LeBgrM/_old 2011-03-16 11:20:57.000000000 +0100 +++ /var/tmp/diff_new_pack.LeBgrM/_new 2011-03-16 11:20:57.000000000 +0100 @@ -20,7 +20,7 @@ Name: zsh Version: 4.3.11 -Release: 1 +Release: 2 License: Other uncritical OpenSource License Group: System/Shells BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -46,6 +46,7 @@ Patch1: %{name}-%{version}-doc_intro_paths.patch Patch2: %{name}-%{version}-run-help_pager.patch Patch3: zsh-cleanup.patch +Patch4: subst-crash.patch Summary: Shell with comprehensive completion %define do_profiling 0 @@ -67,6 +68,7 @@ %patch1 %patch2 %patch3 +%patch4 -p1 # Fix bindir path in some files perl -p -i -e 's|/usr/local/bin|%{_bindir}|' \ Functions/Misc/zcalc Functions/Example/cat \ ++++++ subst-crash.patch ++++++ >From aa58d139ff3ffa7258a6273bf279d70f9ee31916 Mon Sep 17 00:00:00 2001 From: Peter Stephenson <[email protected]> Date: Tue, 18 Jan 2011 10:29:58 +0000 Subject: [PATCH] Mikael: 28637: ${foo:0:} caused crash --- ChangeLog | 6 +++++- Src/subst.c | 14 ++++++++------ Test/D04parameter.ztst | 5 +++++ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/Src/subst.c b/Src/subst.c index 24d515d..37d63ca 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2814,12 +2814,14 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) zerr("invalid length: %s", check_offset); return NULL; } - length = mathevali(check_offset); - if (errflag) - return NULL; - if (length < (zlong)0) { - zerr("invalid length: %s", check_offset); - return NULL; + if (check_offset) { + length = mathevali(check_offset); + if (errflag) + return NULL; + if (length < (zlong)0) { + zerr("invalid length: %s", check_offset); + return NULL; + } } } if (horrible_offset_hack) { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
