Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: vared bug
- X-seq: zsh-workers 12621
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Bernd Eggink <eggink@xxxxxxxxxxxxxx>
- Subject: PATCH: Re: vared bug
- Date: Mon, 14 Aug 2000 16:49:15 +0000
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <1000814161218.ZM31224@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000814100208.A21719@xxxxxxxxxxxxxxxxxxxxxxxxxx> <1000814085333.ZM22802@xxxxxxxxxxxxxxxxxxxxxxx> <20000814113707.A22120@xxxxxxxxxxxxxxxxxxxxxxxxxx> <1000814161218.ZM31224@xxxxxxxxxxxxxxxxxxxxxxx>
On Aug 14, 4:12pm, Bart Schaefer wrote:
}
} On Aug 14, 11:37am, Bernd Eggink wrote:
} }
} } vared -cp prompt var
} }
} } where 'var' is unset.
}
} I get "BUG: attempt to free storage at invalid address". It happens at
} zsfree() at Src/Zle/zle_main.c line 531.
This appears to have come from the changes to remove PERMALLOC/LASTALLOC
and friends.
Index: Src/Zle/zle_main.c
===================================================================
@@ -877,6 +877,8 @@
} else if (*s) {
zwarnnam(name, "invalid parameter name: %s", args[0], 0);
return 1;
+ } else {
+ s = ztrdup(s);
}
if (SHTTY == -1) {
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author