zsh-workers
 help / color / mirror / code / Atom feed
* zsh 4.2.5 segfaults when substituting on $match
@ 2005-08-15 20:38 DervishD
  2005-08-17 23:42 ` PATCH: " Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: DervishD @ 2005-08-15 20:38 UTC (permalink / raw)
  To: Zsh Workers

    Hi all :)

    zsh segfaults with this:

    $ zsh -f
    $ emulate -L zsh
    $ setopt extendedglob
    $ file="a"
    $ print ${file//(#b)(*)/${match//a/}}

    But not with this:

    $ zsh -f
    $ emulate -L zsh
    $ setopt extendedglob
    $ file="a"
    $ print ${file//(#b)(*)/${match/a/}}

    Both gdb and valgrind says it crashes in a memcpy call, maybe due
to an initialized pointer :? Happens on my 4.2.5 (self compiled), AND
in an old 4.0.9 I have around here (self compiled too).

    If anyone wants me to carry any additional tests, just tell ;)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-18 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15 20:38 zsh 4.2.5 segfaults when substituting on $match DervishD
2005-08-17 23:42 ` PATCH: " Peter Stephenson
2005-08-18  7:07   ` Mikael Magnusson
2005-08-18 10:06     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).