summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2011-01-18 18:36:54 +0000
committerTorsten Veller <tove@gentoo.org>2011-01-18 18:36:54 +0000
commit820472f55f0edeaa9be5fa41598116b6317d0e02 (patch)
treece3f02c60f51acdf0485f14ee9090085080283cc /app-shells/zsh/files
parentFix for tests, #333845 (diff)
downloadhistorical-820472f55f0edeaa9be5fa41598116b6317d0e02.tar.gz
historical-820472f55f0edeaa9be5fa41598116b6317d0e02.tar.bz2
historical-820472f55f0edeaa9be5fa41598116b6317d0e02.zip
Fix crash with ${:0:} (#352056). Thanks to Christian Ruppert
Package-Manager: portage-2.2.0_alpha15/cvs/Linux x86_64
Diffstat (limited to 'app-shells/zsh/files')
-rw-r--r--app-shells/zsh/files/4.3.11-subst.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-shells/zsh/files/4.3.11-subst.patch b/app-shells/zsh/files/4.3.11-subst.patch
new file mode 100644
index 000000000000..d9544cc445bb
--- /dev/null
+++ b/app-shells/zsh/files/4.3.11-subst.patch
@@ -0,0 +1,24 @@
+Bugs-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=352056
+--- a/Src/subst.c
++++ b/Src/subst.c
+@@ -2814,12 +2814,14 @@
+ 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) {