Red Hat Bugzilla – Bug 591377
buffer overflow with zsh
Last modified: 2011-12-18 07:05:55 EST
Created attachment 413321 [details]
The backtrace and the memory map returned by the terminal.
Description of problem: when I execute a command in zsh, I have this message:
*** buffer overflow detected ***: zsh terminated
zsh: abort (core dumped) zsh -V
Version-Release number of selected component (if applicable): 4.3.10-4.fc12.x86_64
Steps to Reproduce:
2.Copy and past the fallowing command in zsh:
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '12'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 12's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 12 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
*** Bug 636512 has been marked as a duplicate of this bug. ***
Hi, I've reproduced this bug. It turns out that spelling correction (setopt CORRECT) needed to be enabled for it to happen.
I think the following patch (which I'm sending upstream) fixes it the problem:
Additionally, the latest release I tested seems to limit the length of user input better, which makes this error less likely (although still possible with pretty esoteric configurations).
Upstream pushed a different patch:
Moving to F15 - zsh-4.3.11-2.fc15.x86_64 still appears to be affected.
thanks very much for your investigations so far. I lately updated the zsh package to 4.3.14 (it's available in updates-testing) and tried reproducing the issue with that version. I was not able to reproduce the issue... can you confirm the update fixes the issue also for you?
Now zsh says 'zsh: command too long'. So the update fixes the issue for me.
Great! I close this bug then. :)