Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH segfaults with huge command
- X-seq: zsh-workers 19193
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Julien CROUZET" <julien@xxxxxxxxxx>
- Subject: Re: ZSH segfaults with huge command
- Date: Wed, 15 Oct 2003 16:32:25 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: ""Julien CROUZET""'s message of "Wed, 15 Oct 2003 17:06:47 +0200." <00f501c3932d$f40e5fe0$6900000a@julien>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I think we're going to need a backtrace from zsh, but here's one shot in
the dark which is the nearest I can guess. I don't think it's the
problem, though, and in any case I'd refer to know the root cause.
Index: Src/glob.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/glob.c,v
retrieving revision 1.31
diff -u -r1.31 glob.c
--- Src/glob.c 6 Oct 2003 22:42:39 -0000 1.31
+++ Src/glob.c 15 Oct 2003 15:31:54 -0000
@@ -245,8 +245,8 @@
{
char buf[PATH_MAX];
- DPUTS(strlen(s) + !*s + pathpos - pathbufcwd >= PATH_MAX,
- "BUG: statfullpath(): pathname too long");
+ if (strlen(s) + !*s + pathpos - pathbufcwd >= PATH_MAX)
+ return 1;
strcpy(buf, pathbuf + pathbufcwd);
strcpy(buf + pathpos - pathbufcwd, s);
if (!*s && *buf) {
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author