diff options
Diffstat (limited to 'app-shells/zsh/files/4.3.11-subst.patch')
-rw-r--r-- | app-shells/zsh/files/4.3.11-subst.patch | 24 |
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) { |